[2025-03-25 00:00:04] Production.INFO: next invoice date [2025-03-25 00:00:04] Production.INFO: 2025-04-25 [2025-03-25 00:00:04] Production.INFO: getdaysdiff [2025-03-25 00:00:04] Production.INFO: +31 [2025-03-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,31,31,'RMScheduler',2025-03-25 00:00:04,1,0,,,0) [2025-03-25 00:00:04] Production.INFO: next invoice date [2025-03-25 00:00:04] Production.INFO: 2025-04-25 [2025-03-25 00:00:04] Production.INFO: getdaysdiff [2025-03-25 00:00:04] Production.INFO: +31 [2025-03-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,31,31,'RMScheduler',2025-03-25 00:00:04,1,0,,,0) [2025-03-25 00:00:05] Production.INFO: next invoice date [2025-03-25 00:00:05] Production.INFO: 2025-04-08 [2025-03-25 00:00:05] Production.INFO: getdaysdiff [2025-03-25 00:00:05] Production.INFO: +14 [2025-03-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-03-25 00:00:04,1,0,,,0) [2025-03-25 00:00:05] Production.INFO: next invoice date [2025-03-25 00:00:05] Production.INFO: 2025-04-08 [2025-03-25 00:00:05] Production.INFO: getdaysdiff [2025-03-25 00:00:05] Production.INFO: +14 [2025-03-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-03-25 00:00:04,1,0,,,0) [2025-03-25 00:00:05] Production.INFO: next invoice date [2025-03-25 00:00:05] Production.INFO: 2025-04-08 [2025-03-25 00:00:05] Production.INFO: getdaysdiff [2025-03-25 00:00:05] Production.INFO: +14 [2025-03-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-03-25 00:00:04,0,0,,,0) [2025-03-25 00:00:05] Production.INFO: next invoice date [2025-03-25 00:00:05] Production.INFO: 2025-04-08 [2025-03-25 00:00:05] Production.INFO: getdaysdiff [2025-03-25 00:00:05] Production.INFO: +14 [2025-03-25 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-03-25 00:00:04,0,0,,,0) [2025-03-25 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:00:06 [end_date_ymd] => 2025-03-25 00:00:06 [RateCDR] => 1 ) [2025-03-25 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:00:06' and `end` < '2025-03-25 00: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-03-25 00:00:19] Production.INFO: count ==697 [2025-03-25 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 21:00:06 - End Time 2025-03-25 00:00:06 [2025-03-25 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755676', 'tblTempUsageDetail_20' ) start [2025-03-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755676', 'tblTempUsageDetail_20' ) end [2025-03-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755676', 'tblTempVendorCDR_20' ) start [2025-03-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755676', 'tblTempVendorCDR_20' ) end [2025-03-25 00:00:19] Production.INFO: ProcessCDR(1,14755676,1,1,2) [2025-03-25 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755676', 'tblTempUsageDetail_20' ) start [2025-03-25 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755676', 'tblTempUsageDetail_20' ) end [2025-03-25 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:00:25] Production.INFO: ==1780== Releasing lock... [2025-03-25 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:00:25] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:01:06 [end_date_ymd] => 2025-03-25 00:01:06 [RateCDR] => 1 ) [2025-03-25 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:01:06' and `end` < '2025-03-25 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:01:19] Production.INFO: count ==362 [2025-03-25 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-24 21:01:06 - End Time 2025-03-25 00:01:06 [2025-03-25 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755681', 'tblTempUsageDetail_20' ) start [2025-03-25 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755681', 'tblTempUsageDetail_20' ) end [2025-03-25 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755681', 'tblTempVendorCDR_20' ) start [2025-03-25 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755681', 'tblTempVendorCDR_20' ) end [2025-03-25 00:01:19] Production.INFO: ProcessCDR(1,14755681,1,1,2) [2025-03-25 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755681', 'tblTempUsageDetail_20' ) start [2025-03-25 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755681', 'tblTempUsageDetail_20' ) end [2025-03-25 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:01:25] Production.INFO: ==1909== Releasing lock... [2025-03-25 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:01:25] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:02:05 [end_date_ymd] => 2025-03-25 00:02:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:02:05' and `end` < '2025-03-25 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-03-25 00:02:19] Production.INFO: count ==362 [2025-03-25 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-24 21:02:05 - End Time 2025-03-25 00:02:05 [2025-03-25 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755686', 'tblTempUsageDetail_20' ) start [2025-03-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755686', 'tblTempUsageDetail_20' ) end [2025-03-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755686', 'tblTempVendorCDR_20' ) start [2025-03-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755686', 'tblTempVendorCDR_20' ) end [2025-03-25 00:02:19] Production.INFO: ProcessCDR(1,14755686,1,1,2) [2025-03-25 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755686', 'tblTempUsageDetail_20' ) start [2025-03-25 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755686', 'tblTempUsageDetail_20' ) end [2025-03-25 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:02:23] Production.INFO: ==2014== Releasing lock... [2025-03-25 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:02:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:03:05 [end_date_ymd] => 2025-03-25 00:03:05 [RateCDR] => 1 ) [2025-03-25 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:03:05' and `end` < '2025-03-25 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:03:18] Production.INFO: count ==363 [2025-03-25 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:03:05 - End Time 2025-03-25 00:03:05 [2025-03-25 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755691', 'tblTempUsageDetail_20' ) start [2025-03-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755691', 'tblTempUsageDetail_20' ) end [2025-03-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755691', 'tblTempVendorCDR_20' ) start [2025-03-25 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755691', 'tblTempVendorCDR_20' ) end [2025-03-25 00:03:18] Production.INFO: ProcessCDR(1,14755691,1,1,2) [2025-03-25 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755691', 'tblTempUsageDetail_20' ) start [2025-03-25 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755691', 'tblTempUsageDetail_20' ) end [2025-03-25 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:03:23] Production.INFO: ==2123== Releasing lock... [2025-03-25 00:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:03:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:04:05 [end_date_ymd] => 2025-03-25 00:04:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:04:05' and `end` < '2025-03-25 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-03-25 00:04:22] Production.INFO: count ==365 [2025-03-25 00:04:22] Production.ERROR: pbx CDR StartTime 2025-03-24 21:04:05 - End Time 2025-03-25 00:04:05 [2025-03-25 00:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755696', 'tblTempUsageDetail_20' ) start [2025-03-25 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755696', 'tblTempUsageDetail_20' ) end [2025-03-25 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755696', 'tblTempVendorCDR_20' ) start [2025-03-25 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755696', 'tblTempVendorCDR_20' ) end [2025-03-25 00:04:22] Production.INFO: ProcessCDR(1,14755696,1,1,2) [2025-03-25 00:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755696', 'tblTempUsageDetail_20' ) start [2025-03-25 00:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755696', 'tblTempUsageDetail_20' ) end [2025-03-25 00:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:04:27] Production.INFO: ==2230== Releasing lock... [2025-03-25 00:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:04:27] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:05:06 [end_date_ymd] => 2025-03-25 00:05:06 [RateCDR] => 1 ) [2025-03-25 00:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:05:06' and `end` < '2025-03-25 00:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:05:33] Production.INFO: count ==365 [2025-03-25 00:05:33] Production.ERROR: pbx CDR StartTime 2025-03-24 21:05:06 - End Time 2025-03-25 00:05:06 [2025-03-25 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755701', 'tblTempUsageDetail_20' ) start [2025-03-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755701', 'tblTempUsageDetail_20' ) end [2025-03-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755701', 'tblTempVendorCDR_20' ) start [2025-03-25 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755701', 'tblTempVendorCDR_20' ) end [2025-03-25 00:05:33] Production.INFO: ProcessCDR(1,14755701,1,1,2) [2025-03-25 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755701', 'tblTempUsageDetail_20' ) start [2025-03-25 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755701', 'tblTempUsageDetail_20' ) end [2025-03-25 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:05:37] Production.INFO: ==2337== Releasing lock... [2025-03-25 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:05:37] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:06:05 [end_date_ymd] => 2025-03-25 00:06:05 [RateCDR] => 1 ) [2025-03-25 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:06:05' and `end` < '2025-03-25 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:06:23] Production.INFO: count ==364 [2025-03-25 00:06:23] Production.ERROR: pbx CDR StartTime 2025-03-24 21:06:05 - End Time 2025-03-25 00:06:05 [2025-03-25 00:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755706', 'tblTempUsageDetail_20' ) start [2025-03-25 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755706', 'tblTempUsageDetail_20' ) end [2025-03-25 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755706', 'tblTempVendorCDR_20' ) start [2025-03-25 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755706', 'tblTempVendorCDR_20' ) end [2025-03-25 00:06:23] Production.INFO: ProcessCDR(1,14755706,1,1,2) [2025-03-25 00:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755706', 'tblTempUsageDetail_20' ) start [2025-03-25 00:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755706', 'tblTempUsageDetail_20' ) end [2025-03-25 00:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:06:27] Production.INFO: ==2442== Releasing lock... [2025-03-25 00:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:06:27] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:07:05 [end_date_ymd] => 2025-03-25 00:07:05 [RateCDR] => 1 ) [2025-03-25 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:07:05' and `end` < '2025-03-25 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:07:27] Production.INFO: count ==367 [2025-03-25 00:07:27] Production.ERROR: pbx CDR StartTime 2025-03-24 21:07:05 - End Time 2025-03-25 00:07:05 [2025-03-25 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755711', 'tblTempUsageDetail_20' ) start [2025-03-25 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755711', 'tblTempUsageDetail_20' ) end [2025-03-25 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755711', 'tblTempVendorCDR_20' ) start [2025-03-25 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755711', 'tblTempVendorCDR_20' ) end [2025-03-25 00:07:27] Production.INFO: ProcessCDR(1,14755711,1,1,2) [2025-03-25 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755711', 'tblTempUsageDetail_20' ) start [2025-03-25 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755711', 'tblTempUsageDetail_20' ) end [2025-03-25 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:07:30] Production.INFO: ==2549== Releasing lock... [2025-03-25 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:07:30] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:08:05 [end_date_ymd] => 2025-03-25 00:08:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:08:05' and `end` < '2025-03-25 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-03-25 00:08:18] Production.INFO: count ==368 [2025-03-25 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:08:05 - End Time 2025-03-25 00:08:05 [2025-03-25 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755716', 'tblTempUsageDetail_20' ) start [2025-03-25 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755716', 'tblTempUsageDetail_20' ) end [2025-03-25 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755716', 'tblTempVendorCDR_20' ) start [2025-03-25 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755716', 'tblTempVendorCDR_20' ) end [2025-03-25 00:08:18] Production.INFO: ProcessCDR(1,14755716,1,1,2) [2025-03-25 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755716', 'tblTempUsageDetail_20' ) start [2025-03-25 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755716', 'tblTempUsageDetail_20' ) end [2025-03-25 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:08:22] Production.INFO: ==2658== Releasing lock... [2025-03-25 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:08:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:09:05 [end_date_ymd] => 2025-03-25 00:09:05 [RateCDR] => 1 ) [2025-03-25 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:09:05' and `end` < '2025-03-25 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:09:18] Production.INFO: count ==372 [2025-03-25 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:09:05 - End Time 2025-03-25 00:09:05 [2025-03-25 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755721', 'tblTempUsageDetail_20' ) start [2025-03-25 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755721', 'tblTempUsageDetail_20' ) end [2025-03-25 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755721', 'tblTempVendorCDR_20' ) start [2025-03-25 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755721', 'tblTempVendorCDR_20' ) end [2025-03-25 00:09:18] Production.INFO: ProcessCDR(1,14755721,1,1,2) [2025-03-25 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755721', 'tblTempUsageDetail_20' ) start [2025-03-25 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755721', 'tblTempUsageDetail_20' ) end [2025-03-25 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:09:21] Production.INFO: ==2760== Releasing lock... [2025-03-25 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:10:06 [end_date_ymd] => 2025-03-25 00:10:06 [RateCDR] => 1 ) [2025-03-25 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:10:06' and `end` < '2025-03-25 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:10:18] Production.INFO: count ==384 [2025-03-25 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:10:06 - End Time 2025-03-25 00:10:06 [2025-03-25 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755726', 'tblTempUsageDetail_20' ) start [2025-03-25 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755726', 'tblTempUsageDetail_20' ) end [2025-03-25 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755726', 'tblTempVendorCDR_20' ) start [2025-03-25 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755726', 'tblTempVendorCDR_20' ) end [2025-03-25 00:10:18] Production.INFO: ProcessCDR(1,14755726,1,1,2) [2025-03-25 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755726', 'tblTempUsageDetail_20' ) start [2025-03-25 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755726', 'tblTempUsageDetail_20' ) end [2025-03-25 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:10:22] Production.INFO: ==2876== Releasing lock... [2025-03-25 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:11:05 [end_date_ymd] => 2025-03-25 00:11:05 [RateCDR] => 1 ) [2025-03-25 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:11:05' and `end` < '2025-03-25 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-03-25 00:11:17] Production.INFO: count ==391 [2025-03-25 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:11:05 - End Time 2025-03-25 00:11:05 [2025-03-25 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755732', 'tblTempUsageDetail_20' ) start [2025-03-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755732', 'tblTempUsageDetail_20' ) end [2025-03-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755732', 'tblTempVendorCDR_20' ) start [2025-03-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755732', 'tblTempVendorCDR_20' ) end [2025-03-25 00:11:18] Production.INFO: ProcessCDR(1,14755732,1,1,2) [2025-03-25 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755732', 'tblTempUsageDetail_20' ) start [2025-03-25 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755732', 'tblTempUsageDetail_20' ) end [2025-03-25 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:11:21] Production.INFO: ==2984== Releasing lock... [2025-03-25 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:12:06 [end_date_ymd] => 2025-03-25 00:12:06 [RateCDR] => 1 ) [2025-03-25 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:12:06' and `end` < '2025-03-25 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:12:18] Production.INFO: count ==391 [2025-03-25 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:12:06 - End Time 2025-03-25 00:12:06 [2025-03-25 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755737', 'tblTempUsageDetail_20' ) start [2025-03-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755737', 'tblTempUsageDetail_20' ) end [2025-03-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755737', 'tblTempVendorCDR_20' ) start [2025-03-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755737', 'tblTempVendorCDR_20' ) end [2025-03-25 00:12:18] Production.INFO: ProcessCDR(1,14755737,1,1,2) [2025-03-25 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755737', 'tblTempUsageDetail_20' ) start [2025-03-25 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755737', 'tblTempUsageDetail_20' ) end [2025-03-25 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:12:21] Production.INFO: ==3090== Releasing lock... [2025-03-25 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:13:05 [end_date_ymd] => 2025-03-25 00:13:05 [RateCDR] => 1 ) [2025-03-25 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:13:05' and `end` < '2025-03-25 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:13:17] Production.INFO: count ==384 [2025-03-25 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:13:05 - End Time 2025-03-25 00:13:05 [2025-03-25 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755742', 'tblTempUsageDetail_20' ) start [2025-03-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755742', 'tblTempUsageDetail_20' ) end [2025-03-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755742', 'tblTempVendorCDR_20' ) start [2025-03-25 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755742', 'tblTempVendorCDR_20' ) end [2025-03-25 00:13:17] Production.INFO: ProcessCDR(1,14755742,1,1,2) [2025-03-25 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755742', 'tblTempUsageDetail_20' ) start [2025-03-25 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755742', 'tblTempUsageDetail_20' ) end [2025-03-25 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:13:21] Production.INFO: ==3199== Releasing lock... [2025-03-25 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:14:05 [end_date_ymd] => 2025-03-25 00:14:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:14:05' and `end` < '2025-03-25 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-03-25 00:14:18] Production.INFO: count ==374 [2025-03-25 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:14:05 - End Time 2025-03-25 00:14:05 [2025-03-25 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755747', 'tblTempUsageDetail_20' ) start [2025-03-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755747', 'tblTempUsageDetail_20' ) end [2025-03-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755747', 'tblTempVendorCDR_20' ) start [2025-03-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755747', 'tblTempVendorCDR_20' ) end [2025-03-25 00:14:18] Production.INFO: ProcessCDR(1,14755747,1,1,2) [2025-03-25 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755747', 'tblTempUsageDetail_20' ) start [2025-03-25 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755747', 'tblTempUsageDetail_20' ) end [2025-03-25 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:14:22] Production.INFO: ==3304== Releasing lock... [2025-03-25 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:15:05 [end_date_ymd] => 2025-03-25 00:15:05 [RateCDR] => 1 ) [2025-03-25 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:15:05' and `end` < '2025-03-25 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:15:17] Production.INFO: count ==377 [2025-03-25 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:15:05 - End Time 2025-03-25 00:15:05 [2025-03-25 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755752', 'tblTempUsageDetail_20' ) start [2025-03-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755752', 'tblTempUsageDetail_20' ) end [2025-03-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755752', 'tblTempVendorCDR_20' ) start [2025-03-25 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755752', 'tblTempVendorCDR_20' ) end [2025-03-25 00:15:17] Production.INFO: ProcessCDR(1,14755752,1,1,2) [2025-03-25 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755752', 'tblTempUsageDetail_20' ) start [2025-03-25 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755752', 'tblTempUsageDetail_20' ) end [2025-03-25 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:15:21] Production.INFO: ==3409== Releasing lock... [2025-03-25 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:16:05 [end_date_ymd] => 2025-03-25 00:16:05 [RateCDR] => 1 ) [2025-03-25 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:16:05' and `end` < '2025-03-25 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:16:18] Production.INFO: count ==370 [2025-03-25 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:16:05 - End Time 2025-03-25 00:16:05 [2025-03-25 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755757', 'tblTempUsageDetail_20' ) start [2025-03-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755757', 'tblTempUsageDetail_20' ) end [2025-03-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755757', 'tblTempVendorCDR_20' ) start [2025-03-25 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755757', 'tblTempVendorCDR_20' ) end [2025-03-25 00:16:18] Production.INFO: ProcessCDR(1,14755757,1,1,2) [2025-03-25 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755757', 'tblTempUsageDetail_20' ) start [2025-03-25 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755757', 'tblTempUsageDetail_20' ) end [2025-03-25 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:16:21] Production.INFO: ==3542== Releasing lock... [2025-03-25 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:17:05 [end_date_ymd] => 2025-03-25 00:17:05 [RateCDR] => 1 ) [2025-03-25 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:17:05' and `end` < '2025-03-25 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:17:17] Production.INFO: count ==365 [2025-03-25 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:17:05 - End Time 2025-03-25 00:17:05 [2025-03-25 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755762', 'tblTempUsageDetail_20' ) start [2025-03-25 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755762', 'tblTempUsageDetail_20' ) end [2025-03-25 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755762', 'tblTempVendorCDR_20' ) start [2025-03-25 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755762', 'tblTempVendorCDR_20' ) end [2025-03-25 00:17:17] Production.INFO: ProcessCDR(1,14755762,1,1,2) [2025-03-25 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755762', 'tblTempUsageDetail_20' ) start [2025-03-25 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755762', 'tblTempUsageDetail_20' ) end [2025-03-25 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:17:21] Production.INFO: ==3630== Releasing lock... [2025-03-25 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:18:05 [end_date_ymd] => 2025-03-25 00:18:05 [RateCDR] => 1 ) [2025-03-25 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:18:05' and `end` < '2025-03-25 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:18:18] Production.INFO: count ==348 [2025-03-25 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:18:05 - End Time 2025-03-25 00:18:05 [2025-03-25 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755767', 'tblTempUsageDetail_20' ) start [2025-03-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755767', 'tblTempUsageDetail_20' ) end [2025-03-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755767', 'tblTempVendorCDR_20' ) start [2025-03-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755767', 'tblTempVendorCDR_20' ) end [2025-03-25 00:18:18] Production.INFO: ProcessCDR(1,14755767,1,1,2) [2025-03-25 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755767', 'tblTempUsageDetail_20' ) start [2025-03-25 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755767', 'tblTempUsageDetail_20' ) end [2025-03-25 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:18:21] Production.INFO: ==3717== Releasing lock... [2025-03-25 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:19:05 [end_date_ymd] => 2025-03-25 00:19:05 [RateCDR] => 1 ) [2025-03-25 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:19:05' and `end` < '2025-03-25 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:19:17] Production.INFO: count ==342 [2025-03-25 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:19:05 - End Time 2025-03-25 00:19:05 [2025-03-25 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755772', 'tblTempUsageDetail_20' ) start [2025-03-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755772', 'tblTempUsageDetail_20' ) end [2025-03-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755772', 'tblTempVendorCDR_20' ) start [2025-03-25 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755772', 'tblTempVendorCDR_20' ) end [2025-03-25 00:19:18] Production.INFO: ProcessCDR(1,14755772,1,1,2) [2025-03-25 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755772', 'tblTempUsageDetail_20' ) start [2025-03-25 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755772', 'tblTempUsageDetail_20' ) end [2025-03-25 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:19:21] Production.INFO: ==3801== Releasing lock... [2025-03-25 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:20:05 [end_date_ymd] => 2025-03-25 00:20:05 [RateCDR] => 1 ) [2025-03-25 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:20:05' and `end` < '2025-03-25 00: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-03-25 00:20:18] Production.INFO: count ==347 [2025-03-25 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:20:05 - End Time 2025-03-25 00:20:05 [2025-03-25 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755777', 'tblTempUsageDetail_20' ) start [2025-03-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755777', 'tblTempUsageDetail_20' ) end [2025-03-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755777', 'tblTempVendorCDR_20' ) start [2025-03-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755777', 'tblTempVendorCDR_20' ) end [2025-03-25 00:20:18] Production.INFO: ProcessCDR(1,14755777,1,1,2) [2025-03-25 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755777', 'tblTempUsageDetail_20' ) start [2025-03-25 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755777', 'tblTempUsageDetail_20' ) end [2025-03-25 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:20:21] Production.INFO: ==3890== Releasing lock... [2025-03-25 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:20:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:21:05 [end_date_ymd] => 2025-03-25 00:21:05 [RateCDR] => 1 ) [2025-03-25 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:21:05' and `end` < '2025-03-25 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:21:18] Production.INFO: count ==348 [2025-03-25 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:21:05 - End Time 2025-03-25 00:21:05 [2025-03-25 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755783', 'tblTempUsageDetail_20' ) start [2025-03-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755783', 'tblTempUsageDetail_20' ) end [2025-03-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755783', 'tblTempVendorCDR_20' ) start [2025-03-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755783', 'tblTempVendorCDR_20' ) end [2025-03-25 00:21:18] Production.INFO: ProcessCDR(1,14755783,1,1,2) [2025-03-25 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755783', 'tblTempUsageDetail_20' ) start [2025-03-25 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755783', 'tblTempUsageDetail_20' ) end [2025-03-25 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:21:21] Production.INFO: ==3979== Releasing lock... [2025-03-25 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:21:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:22:05 [end_date_ymd] => 2025-03-25 00:22:05 [RateCDR] => 1 ) [2025-03-25 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:22:05' and `end` < '2025-03-25 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-03-25 00:22:17] Production.INFO: count ==338 [2025-03-25 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:22:05 - End Time 2025-03-25 00:22:05 [2025-03-25 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755788', 'tblTempUsageDetail_20' ) start [2025-03-25 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755788', 'tblTempUsageDetail_20' ) end [2025-03-25 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755788', 'tblTempVendorCDR_20' ) start [2025-03-25 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755788', 'tblTempVendorCDR_20' ) end [2025-03-25 00:22:17] Production.INFO: ProcessCDR(1,14755788,1,1,2) [2025-03-25 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755788', 'tblTempUsageDetail_20' ) start [2025-03-25 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755788', 'tblTempUsageDetail_20' ) end [2025-03-25 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:22:21] Production.INFO: ==4065== Releasing lock... [2025-03-25 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:23:05 [end_date_ymd] => 2025-03-25 00:23:05 [RateCDR] => 1 ) [2025-03-25 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:23:05' and `end` < '2025-03-25 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-03-25 00:23:18] Production.INFO: count ==335 [2025-03-25 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:23:05 - End Time 2025-03-25 00:23:05 [2025-03-25 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755793', 'tblTempUsageDetail_20' ) start [2025-03-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755793', 'tblTempUsageDetail_20' ) end [2025-03-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755793', 'tblTempVendorCDR_20' ) start [2025-03-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755793', 'tblTempVendorCDR_20' ) end [2025-03-25 00:23:18] Production.INFO: ProcessCDR(1,14755793,1,1,2) [2025-03-25 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755793', 'tblTempUsageDetail_20' ) start [2025-03-25 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755793', 'tblTempUsageDetail_20' ) end [2025-03-25 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:23:21] Production.INFO: ==4154== Releasing lock... [2025-03-25 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:24:05 [end_date_ymd] => 2025-03-25 00:24:05 [RateCDR] => 1 ) [2025-03-25 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:24:05' and `end` < '2025-03-25 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:24:18] Production.INFO: count ==336 [2025-03-25 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:24:05 - End Time 2025-03-25 00:24:05 [2025-03-25 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755798', 'tblTempUsageDetail_20' ) start [2025-03-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755798', 'tblTempUsageDetail_20' ) end [2025-03-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755798', 'tblTempVendorCDR_20' ) start [2025-03-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755798', 'tblTempVendorCDR_20' ) end [2025-03-25 00:24:18] Production.INFO: ProcessCDR(1,14755798,1,1,2) [2025-03-25 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755798', 'tblTempUsageDetail_20' ) start [2025-03-25 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755798', 'tblTempUsageDetail_20' ) end [2025-03-25 00:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:24:23] Production.INFO: ==4259== Releasing lock... [2025-03-25 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:24:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:25:05 [end_date_ymd] => 2025-03-25 00:25:05 [RateCDR] => 1 ) [2025-03-25 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:25:05' and `end` < '2025-03-25 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:25:17] Production.INFO: count ==336 [2025-03-25 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:25:05 - End Time 2025-03-25 00:25:05 [2025-03-25 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755803', 'tblTempUsageDetail_20' ) start [2025-03-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755803', 'tblTempUsageDetail_20' ) end [2025-03-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755803', 'tblTempVendorCDR_20' ) start [2025-03-25 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755803', 'tblTempVendorCDR_20' ) end [2025-03-25 00:25:17] Production.INFO: ProcessCDR(1,14755803,1,1,2) [2025-03-25 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755803', 'tblTempUsageDetail_20' ) start [2025-03-25 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755803', 'tblTempUsageDetail_20' ) end [2025-03-25 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:25:21] Production.INFO: ==4342== Releasing lock... [2025-03-25 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:25:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:26:05 [end_date_ymd] => 2025-03-25 00:26:05 [RateCDR] => 1 ) [2025-03-25 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:26:05' and `end` < '2025-03-25 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:26:18] Production.INFO: count ==334 [2025-03-25 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:26:05 - End Time 2025-03-25 00:26:05 [2025-03-25 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755808', 'tblTempUsageDetail_20' ) start [2025-03-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755808', 'tblTempUsageDetail_20' ) end [2025-03-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755808', 'tblTempVendorCDR_20' ) start [2025-03-25 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755808', 'tblTempVendorCDR_20' ) end [2025-03-25 00:26:18] Production.INFO: ProcessCDR(1,14755808,1,1,2) [2025-03-25 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755808', 'tblTempUsageDetail_20' ) start [2025-03-25 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755808', 'tblTempUsageDetail_20' ) end [2025-03-25 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:26:23] Production.INFO: ==4432== Releasing lock... [2025-03-25 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:27:05 [end_date_ymd] => 2025-03-25 00:27:05 [RateCDR] => 1 ) [2025-03-25 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:27:05' and `end` < '2025-03-25 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:27:18] Production.INFO: count ==327 [2025-03-25 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:27:05 - End Time 2025-03-25 00:27:05 [2025-03-25 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755813', 'tblTempUsageDetail_20' ) start [2025-03-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755813', 'tblTempUsageDetail_20' ) end [2025-03-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755813', 'tblTempVendorCDR_20' ) start [2025-03-25 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755813', 'tblTempVendorCDR_20' ) end [2025-03-25 00:27:18] Production.INFO: ProcessCDR(1,14755813,1,1,2) [2025-03-25 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755813', 'tblTempUsageDetail_20' ) start [2025-03-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755813', 'tblTempUsageDetail_20' ) end [2025-03-25 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:27:21] Production.INFO: ==4520== Releasing lock... [2025-03-25 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:28:06 [end_date_ymd] => 2025-03-25 00:28:06 [RateCDR] => 1 ) [2025-03-25 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:28:06' and `end` < '2025-03-25 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:28:18] Production.INFO: count ==328 [2025-03-25 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:28:06 - End Time 2025-03-25 00:28:06 [2025-03-25 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755818', 'tblTempUsageDetail_20' ) start [2025-03-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755818', 'tblTempUsageDetail_20' ) end [2025-03-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755818', 'tblTempVendorCDR_20' ) start [2025-03-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755818', 'tblTempVendorCDR_20' ) end [2025-03-25 00:28:18] Production.INFO: ProcessCDR(1,14755818,1,1,2) [2025-03-25 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755818', 'tblTempUsageDetail_20' ) start [2025-03-25 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755818', 'tblTempUsageDetail_20' ) end [2025-03-25 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:28:23] Production.INFO: ==4611== Releasing lock... [2025-03-25 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:28:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:29:05 [end_date_ymd] => 2025-03-25 00:29:05 [RateCDR] => 1 ) [2025-03-25 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:29:05' and `end` < '2025-03-25 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:29:18] Production.INFO: count ==335 [2025-03-25 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:29:05 - End Time 2025-03-25 00:29:05 [2025-03-25 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755823', 'tblTempUsageDetail_20' ) start [2025-03-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755823', 'tblTempUsageDetail_20' ) end [2025-03-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755823', 'tblTempVendorCDR_20' ) start [2025-03-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755823', 'tblTempVendorCDR_20' ) end [2025-03-25 00:29:18] Production.INFO: ProcessCDR(1,14755823,1,1,2) [2025-03-25 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755823', 'tblTempUsageDetail_20' ) start [2025-03-25 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755823', 'tblTempUsageDetail_20' ) end [2025-03-25 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:29:21] Production.INFO: ==4700== Releasing lock... [2025-03-25 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:30:07 [end_date_ymd] => 2025-03-25 00:30:07 [RateCDR] => 1 ) [2025-03-25 00: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-03-24 21:30:07' and `end` < '2025-03-25 00: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-03-25 00:30:19] Production.INFO: count ==346 [2025-03-25 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-24 21:30:07 - End Time 2025-03-25 00:30:07 [2025-03-25 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755829', 'tblTempUsageDetail_20' ) start [2025-03-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755829', 'tblTempUsageDetail_20' ) end [2025-03-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755829', 'tblTempVendorCDR_20' ) start [2025-03-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755829', 'tblTempVendorCDR_20' ) end [2025-03-25 00:30:19] Production.INFO: ProcessCDR(1,14755829,1,1,2) [2025-03-25 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755829', 'tblTempUsageDetail_20' ) start [2025-03-25 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755829', 'tblTempUsageDetail_20' ) end [2025-03-25 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:30:23] Production.INFO: ==4802== Releasing lock... [2025-03-25 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:30:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:31:05 [end_date_ymd] => 2025-03-25 00:31:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:31:05' and `end` < '2025-03-25 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-03-25 00:31:18] Production.INFO: count ==360 [2025-03-25 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:31:05 - End Time 2025-03-25 00:31:05 [2025-03-25 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755834', 'tblTempUsageDetail_20' ) start [2025-03-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755834', 'tblTempUsageDetail_20' ) end [2025-03-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755834', 'tblTempVendorCDR_20' ) start [2025-03-25 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755834', 'tblTempVendorCDR_20' ) end [2025-03-25 00:31:18] Production.INFO: ProcessCDR(1,14755834,1,1,2) [2025-03-25 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755834', 'tblTempUsageDetail_20' ) start [2025-03-25 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755834', 'tblTempUsageDetail_20' ) end [2025-03-25 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:31:21] Production.INFO: ==4948== Releasing lock... [2025-03-25 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:32:05 [end_date_ymd] => 2025-03-25 00:32:05 [RateCDR] => 1 ) [2025-03-25 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:32:05' and `end` < '2025-03-25 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:32:18] Production.INFO: count ==355 [2025-03-25 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:32:05 - End Time 2025-03-25 00:32:05 [2025-03-25 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755839', 'tblTempUsageDetail_20' ) start [2025-03-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755839', 'tblTempUsageDetail_20' ) end [2025-03-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755839', 'tblTempVendorCDR_20' ) start [2025-03-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755839', 'tblTempVendorCDR_20' ) end [2025-03-25 00:32:18] Production.INFO: ProcessCDR(1,14755839,1,1,2) [2025-03-25 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755839', 'tblTempUsageDetail_20' ) start [2025-03-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755839', 'tblTempUsageDetail_20' ) end [2025-03-25 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:32:21] Production.INFO: ==5036== Releasing lock... [2025-03-25 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:33:05 [end_date_ymd] => 2025-03-25 00:33:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:33:05' and `end` < '2025-03-25 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-03-25 00:33:18] Production.INFO: count ==354 [2025-03-25 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:33:05 - End Time 2025-03-25 00:33:05 [2025-03-25 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755844', 'tblTempUsageDetail_20' ) start [2025-03-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755844', 'tblTempUsageDetail_20' ) end [2025-03-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755844', 'tblTempVendorCDR_20' ) start [2025-03-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755844', 'tblTempVendorCDR_20' ) end [2025-03-25 00:33:18] Production.INFO: ProcessCDR(1,14755844,1,1,2) [2025-03-25 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755844', 'tblTempUsageDetail_20' ) start [2025-03-25 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755844', 'tblTempUsageDetail_20' ) end [2025-03-25 00:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:33:23] Production.INFO: ==5123== Releasing lock... [2025-03-25 00:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:33:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:34:05 [end_date_ymd] => 2025-03-25 00:34:05 [RateCDR] => 1 ) [2025-03-25 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:34:05' and `end` < '2025-03-25 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:34:18] Production.INFO: count ==354 [2025-03-25 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:34:05 - End Time 2025-03-25 00:34:05 [2025-03-25 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755849', 'tblTempUsageDetail_20' ) start [2025-03-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755849', 'tblTempUsageDetail_20' ) end [2025-03-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755849', 'tblTempVendorCDR_20' ) start [2025-03-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755849', 'tblTempVendorCDR_20' ) end [2025-03-25 00:34:18] Production.INFO: ProcessCDR(1,14755849,1,1,2) [2025-03-25 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755849', 'tblTempUsageDetail_20' ) start [2025-03-25 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755849', 'tblTempUsageDetail_20' ) end [2025-03-25 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:34:21] Production.INFO: ==5212== Releasing lock... [2025-03-25 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:34:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:35:05 [end_date_ymd] => 2025-03-25 00:35:05 [RateCDR] => 1 ) [2025-03-25 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:35:05' and `end` < '2025-03-25 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:35:17] Production.INFO: count ==355 [2025-03-25 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:35:05 - End Time 2025-03-25 00:35:05 [2025-03-25 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755854', 'tblTempUsageDetail_20' ) start [2025-03-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755854', 'tblTempUsageDetail_20' ) end [2025-03-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755854', 'tblTempVendorCDR_20' ) start [2025-03-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755854', 'tblTempVendorCDR_20' ) end [2025-03-25 00:35:17] Production.INFO: ProcessCDR(1,14755854,1,1,2) [2025-03-25 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755854', 'tblTempUsageDetail_20' ) start [2025-03-25 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755854', 'tblTempUsageDetail_20' ) end [2025-03-25 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:35:22] Production.INFO: ==5299== Releasing lock... [2025-03-25 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:35:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:36:05 [end_date_ymd] => 2025-03-25 00:36:05 [RateCDR] => 1 ) [2025-03-25 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:36:05' and `end` < '2025-03-25 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:36:18] Production.INFO: count ==347 [2025-03-25 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:36:05 - End Time 2025-03-25 00:36:05 [2025-03-25 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755859', 'tblTempUsageDetail_20' ) start [2025-03-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755859', 'tblTempUsageDetail_20' ) end [2025-03-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755859', 'tblTempVendorCDR_20' ) start [2025-03-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755859', 'tblTempVendorCDR_20' ) end [2025-03-25 00:36:18] Production.INFO: ProcessCDR(1,14755859,1,1,2) [2025-03-25 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755859', 'tblTempUsageDetail_20' ) start [2025-03-25 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755859', 'tblTempUsageDetail_20' ) end [2025-03-25 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:36:21] Production.INFO: ==5389== Releasing lock... [2025-03-25 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:37:05 [end_date_ymd] => 2025-03-25 00:37:05 [RateCDR] => 1 ) [2025-03-25 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:37:05' and `end` < '2025-03-25 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-03-25 00:37:17] Production.INFO: count ==337 [2025-03-25 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:37:05 - End Time 2025-03-25 00:37:05 [2025-03-25 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755864', 'tblTempUsageDetail_20' ) start [2025-03-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755864', 'tblTempUsageDetail_20' ) end [2025-03-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755864', 'tblTempVendorCDR_20' ) start [2025-03-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755864', 'tblTempVendorCDR_20' ) end [2025-03-25 00:37:18] Production.INFO: ProcessCDR(1,14755864,1,1,2) [2025-03-25 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755864', 'tblTempUsageDetail_20' ) start [2025-03-25 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755864', 'tblTempUsageDetail_20' ) end [2025-03-25 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:37:21] Production.INFO: ==5486== Releasing lock... [2025-03-25 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:38:05 [end_date_ymd] => 2025-03-25 00:38:05 [RateCDR] => 1 ) [2025-03-25 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:38:05' and `end` < '2025-03-25 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:38:18] Production.INFO: count ==331 [2025-03-25 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:38:05 - End Time 2025-03-25 00:38:05 [2025-03-25 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755869', 'tblTempUsageDetail_20' ) start [2025-03-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755869', 'tblTempUsageDetail_20' ) end [2025-03-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755869', 'tblTempVendorCDR_20' ) start [2025-03-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755869', 'tblTempVendorCDR_20' ) end [2025-03-25 00:38:18] Production.INFO: ProcessCDR(1,14755869,1,1,2) [2025-03-25 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755869', 'tblTempUsageDetail_20' ) start [2025-03-25 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755869', 'tblTempUsageDetail_20' ) end [2025-03-25 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:38:21] Production.INFO: ==5578== Releasing lock... [2025-03-25 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:38:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:39:05 [end_date_ymd] => 2025-03-25 00:39:05 [RateCDR] => 1 ) [2025-03-25 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:39:05' and `end` < '2025-03-25 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:39:17] Production.INFO: count ==320 [2025-03-25 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:39:05 - End Time 2025-03-25 00:39:05 [2025-03-25 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755874', 'tblTempUsageDetail_20' ) start [2025-03-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755874', 'tblTempUsageDetail_20' ) end [2025-03-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755874', 'tblTempVendorCDR_20' ) start [2025-03-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755874', 'tblTempVendorCDR_20' ) end [2025-03-25 00:39:17] Production.INFO: ProcessCDR(1,14755874,1,1,2) [2025-03-25 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755874', 'tblTempUsageDetail_20' ) start [2025-03-25 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755874', 'tblTempUsageDetail_20' ) end [2025-03-25 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:39:20] Production.INFO: ==5666== Releasing lock... [2025-03-25 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:39:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:40:06 [end_date_ymd] => 2025-03-25 00:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-24 21:40:06' and `end` < '2025-03-25 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-03-25 00:40:18] Production.INFO: count ==323 [2025-03-25 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:40:06 - End Time 2025-03-25 00:40:06 [2025-03-25 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755879', 'tblTempUsageDetail_20' ) start [2025-03-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755879', 'tblTempUsageDetail_20' ) end [2025-03-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755879', 'tblTempVendorCDR_20' ) start [2025-03-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755879', 'tblTempVendorCDR_20' ) end [2025-03-25 00:40:18] Production.INFO: ProcessCDR(1,14755879,1,1,2) [2025-03-25 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755879', 'tblTempUsageDetail_20' ) start [2025-03-25 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755879', 'tblTempUsageDetail_20' ) end [2025-03-25 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:40:22] Production.INFO: ==5760== Releasing lock... [2025-03-25 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:41:05 [end_date_ymd] => 2025-03-25 00:41:05 [RateCDR] => 1 ) [2025-03-25 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:41:05' and `end` < '2025-03-25 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:41:17] Production.INFO: count ==334 [2025-03-25 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:41:05 - End Time 2025-03-25 00:41:05 [2025-03-25 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755885', 'tblTempUsageDetail_20' ) start [2025-03-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755885', 'tblTempUsageDetail_20' ) end [2025-03-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755885', 'tblTempVendorCDR_20' ) start [2025-03-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755885', 'tblTempVendorCDR_20' ) end [2025-03-25 00:41:18] Production.INFO: ProcessCDR(1,14755885,1,1,2) [2025-03-25 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755885', 'tblTempUsageDetail_20' ) start [2025-03-25 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755885', 'tblTempUsageDetail_20' ) end [2025-03-25 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:41:23] Production.INFO: ==5849== Releasing lock... [2025-03-25 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:41:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:42:05 [end_date_ymd] => 2025-03-25 00:42:05 [RateCDR] => 1 ) [2025-03-25 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:42:05' and `end` < '2025-03-25 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-03-25 00:42:17] Production.INFO: count ==332 [2025-03-25 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:42:05 - End Time 2025-03-25 00:42:05 [2025-03-25 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755890', 'tblTempUsageDetail_20' ) start [2025-03-25 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755890', 'tblTempUsageDetail_20' ) end [2025-03-25 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755890', 'tblTempVendorCDR_20' ) start [2025-03-25 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755890', 'tblTempVendorCDR_20' ) end [2025-03-25 00:42:17] Production.INFO: ProcessCDR(1,14755890,1,1,2) [2025-03-25 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755890', 'tblTempUsageDetail_20' ) start [2025-03-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755890', 'tblTempUsageDetail_20' ) end [2025-03-25 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:42:21] Production.INFO: ==5939== Releasing lock... [2025-03-25 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:43:05 [end_date_ymd] => 2025-03-25 00:43:05 [RateCDR] => 1 ) [2025-03-25 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:43:05' and `end` < '2025-03-25 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-03-25 00:43:17] Production.INFO: count ==330 [2025-03-25 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:43:05 - End Time 2025-03-25 00:43:05 [2025-03-25 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755895', 'tblTempUsageDetail_20' ) start [2025-03-25 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755895', 'tblTempUsageDetail_20' ) end [2025-03-25 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755895', 'tblTempVendorCDR_20' ) start [2025-03-25 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755895', 'tblTempVendorCDR_20' ) end [2025-03-25 00:43:17] Production.INFO: ProcessCDR(1,14755895,1,1,2) [2025-03-25 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755895', 'tblTempUsageDetail_20' ) start [2025-03-25 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755895', 'tblTempUsageDetail_20' ) end [2025-03-25 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:43:21] Production.INFO: ==6028== Releasing lock... [2025-03-25 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:44:05 [end_date_ymd] => 2025-03-25 00:44:05 [RateCDR] => 1 ) [2025-03-25 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:44:05' and `end` < '2025-03-25 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:44:18] Production.INFO: count ==329 [2025-03-25 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:44:05 - End Time 2025-03-25 00:44:05 [2025-03-25 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755900', 'tblTempUsageDetail_20' ) start [2025-03-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755900', 'tblTempUsageDetail_20' ) end [2025-03-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755900', 'tblTempVendorCDR_20' ) start [2025-03-25 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755900', 'tblTempVendorCDR_20' ) end [2025-03-25 00:44:18] Production.INFO: ProcessCDR(1,14755900,1,1,2) [2025-03-25 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755900', 'tblTempUsageDetail_20' ) start [2025-03-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755900', 'tblTempUsageDetail_20' ) end [2025-03-25 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:44:21] Production.INFO: ==6123== Releasing lock... [2025-03-25 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:44:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:45:05 [end_date_ymd] => 2025-03-25 00:45:05 [RateCDR] => 1 ) [2025-03-25 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:45:05' and `end` < '2025-03-25 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-03-25 00:45:18] Production.INFO: count ==329 [2025-03-25 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:45:05 - End Time 2025-03-25 00:45:05 [2025-03-25 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755905', 'tblTempUsageDetail_20' ) start [2025-03-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755905', 'tblTempUsageDetail_20' ) end [2025-03-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755905', 'tblTempVendorCDR_20' ) start [2025-03-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755905', 'tblTempVendorCDR_20' ) end [2025-03-25 00:45:18] Production.INFO: ProcessCDR(1,14755905,1,1,2) [2025-03-25 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755905', 'tblTempUsageDetail_20' ) start [2025-03-25 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755905', 'tblTempUsageDetail_20' ) end [2025-03-25 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:45:21] Production.INFO: ==6217== Releasing lock... [2025-03-25 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:45:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:46:05 [end_date_ymd] => 2025-03-25 00:46:05 [RateCDR] => 1 ) [2025-03-25 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:46:05' and `end` < '2025-03-25 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:46:17] Production.INFO: count ==331 [2025-03-25 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:46:05 - End Time 2025-03-25 00:46:05 [2025-03-25 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755910', 'tblTempUsageDetail_20' ) start [2025-03-25 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755910', 'tblTempUsageDetail_20' ) end [2025-03-25 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755910', 'tblTempVendorCDR_20' ) start [2025-03-25 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755910', 'tblTempVendorCDR_20' ) end [2025-03-25 00:46:17] Production.INFO: ProcessCDR(1,14755910,1,1,2) [2025-03-25 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755910', 'tblTempUsageDetail_20' ) start [2025-03-25 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755910', 'tblTempUsageDetail_20' ) end [2025-03-25 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:46:21] Production.INFO: ==6306== Releasing lock... [2025-03-25 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:47:06 [end_date_ymd] => 2025-03-25 00:47:06 [RateCDR] => 1 ) [2025-03-25 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:47:06' and `end` < '2025-03-25 00: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-03-25 00:47:18] Production.INFO: count ==326 [2025-03-25 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:47:06 - End Time 2025-03-25 00:47:06 [2025-03-25 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755915', 'tblTempUsageDetail_20' ) start [2025-03-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755915', 'tblTempUsageDetail_20' ) end [2025-03-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755915', 'tblTempVendorCDR_20' ) start [2025-03-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755915', 'tblTempVendorCDR_20' ) end [2025-03-25 00:47:18] Production.INFO: ProcessCDR(1,14755915,1,1,2) [2025-03-25 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755915', 'tblTempUsageDetail_20' ) start [2025-03-25 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755915', 'tblTempUsageDetail_20' ) end [2025-03-25 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:47:22] Production.INFO: ==6432== Releasing lock... [2025-03-25 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:47:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:48:05 [end_date_ymd] => 2025-03-25 00:48:05 [RateCDR] => 1 ) [2025-03-25 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:48:05' and `end` < '2025-03-25 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-03-25 00:48:17] Production.INFO: count ==324 [2025-03-25 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:48:05 - End Time 2025-03-25 00:48:05 [2025-03-25 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755920', 'tblTempUsageDetail_20' ) start [2025-03-25 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755920', 'tblTempUsageDetail_20' ) end [2025-03-25 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755920', 'tblTempVendorCDR_20' ) start [2025-03-25 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755920', 'tblTempVendorCDR_20' ) end [2025-03-25 00:48:18] Production.INFO: ProcessCDR(1,14755920,1,1,2) [2025-03-25 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755920', 'tblTempUsageDetail_20' ) start [2025-03-25 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755920', 'tblTempUsageDetail_20' ) end [2025-03-25 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:48:21] Production.INFO: ==6519== Releasing lock... [2025-03-25 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:48:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:49:06 [end_date_ymd] => 2025-03-25 00:49:06 [RateCDR] => 1 ) [2025-03-25 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:49:06' and `end` < '2025-03-25 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:49:18] Production.INFO: count ==324 [2025-03-25 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:49:06 - End Time 2025-03-25 00:49:06 [2025-03-25 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755925', 'tblTempUsageDetail_20' ) start [2025-03-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755925', 'tblTempUsageDetail_20' ) end [2025-03-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755925', 'tblTempVendorCDR_20' ) start [2025-03-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755925', 'tblTempVendorCDR_20' ) end [2025-03-25 00:49:18] Production.INFO: ProcessCDR(1,14755925,1,1,2) [2025-03-25 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755925', 'tblTempUsageDetail_20' ) start [2025-03-25 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755925', 'tblTempUsageDetail_20' ) end [2025-03-25 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:49:22] Production.INFO: ==6618== Releasing lock... [2025-03-25 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:49:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:50:06 [end_date_ymd] => 2025-03-25 00:50:06 [RateCDR] => 1 ) [2025-03-25 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:50:06' and `end` < '2025-03-25 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:50:19] Production.INFO: count ==318 [2025-03-25 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 21:50:06 - End Time 2025-03-25 00:50:06 [2025-03-25 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755931', 'tblTempUsageDetail_20' ) start [2025-03-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755931', 'tblTempUsageDetail_20' ) end [2025-03-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755931', 'tblTempVendorCDR_20' ) start [2025-03-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755931', 'tblTempVendorCDR_20' ) end [2025-03-25 00:50:19] Production.INFO: ProcessCDR(1,14755931,1,1,2) [2025-03-25 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755931', 'tblTempUsageDetail_20' ) start [2025-03-25 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755931', 'tblTempUsageDetail_20' ) end [2025-03-25 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:50:22] Production.INFO: ==6706== Releasing lock... [2025-03-25 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:50:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:51:06 [end_date_ymd] => 2025-03-25 00:51:06 [RateCDR] => 1 ) [2025-03-25 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:51:06' and `end` < '2025-03-25 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:51:18] Production.INFO: count ==316 [2025-03-25 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:51:06 - End Time 2025-03-25 00:51:06 [2025-03-25 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755936', 'tblTempUsageDetail_20' ) start [2025-03-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755936', 'tblTempUsageDetail_20' ) end [2025-03-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755936', 'tblTempVendorCDR_20' ) start [2025-03-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755936', 'tblTempVendorCDR_20' ) end [2025-03-25 00:51:18] Production.INFO: ProcessCDR(1,14755936,1,1,2) [2025-03-25 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755936', 'tblTempUsageDetail_20' ) start [2025-03-25 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755936', 'tblTempUsageDetail_20' ) end [2025-03-25 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:51:22] Production.INFO: ==6812== Releasing lock... [2025-03-25 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:52:05 [end_date_ymd] => 2025-03-25 00:52:05 [RateCDR] => 1 ) [2025-03-25 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:52:05' and `end` < '2025-03-25 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:52:18] Production.INFO: count ==313 [2025-03-25 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:52:05 - End Time 2025-03-25 00:52:05 [2025-03-25 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755941', 'tblTempUsageDetail_20' ) start [2025-03-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755941', 'tblTempUsageDetail_20' ) end [2025-03-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755941', 'tblTempVendorCDR_20' ) start [2025-03-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755941', 'tblTempVendorCDR_20' ) end [2025-03-25 00:52:18] Production.INFO: ProcessCDR(1,14755941,1,1,2) [2025-03-25 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755941', 'tblTempUsageDetail_20' ) start [2025-03-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755941', 'tblTempUsageDetail_20' ) end [2025-03-25 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:52:21] Production.INFO: ==6904== Releasing lock... [2025-03-25 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:53:05 [end_date_ymd] => 2025-03-25 00:53:05 [RateCDR] => 1 ) [2025-03-25 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:53:05' and `end` < '2025-03-25 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-03-25 00:53:18] Production.INFO: count ==311 [2025-03-25 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:53:05 - End Time 2025-03-25 00:53:05 [2025-03-25 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755946', 'tblTempUsageDetail_20' ) start [2025-03-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755946', 'tblTempUsageDetail_20' ) end [2025-03-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755946', 'tblTempVendorCDR_20' ) start [2025-03-25 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755946', 'tblTempVendorCDR_20' ) end [2025-03-25 00:53:18] Production.INFO: ProcessCDR(1,14755946,1,1,2) [2025-03-25 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755946', 'tblTempUsageDetail_20' ) start [2025-03-25 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755946', 'tblTempUsageDetail_20' ) end [2025-03-25 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:53:21] Production.INFO: ==7002== Releasing lock... [2025-03-25 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:53:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:54:05 [end_date_ymd] => 2025-03-25 00:54:05 [RateCDR] => 1 ) [2025-03-25 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:54:05' and `end` < '2025-03-25 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:54:17] Production.INFO: count ==314 [2025-03-25 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:54:05 - End Time 2025-03-25 00:54:05 [2025-03-25 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755951', 'tblTempUsageDetail_20' ) start [2025-03-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755951', 'tblTempUsageDetail_20' ) end [2025-03-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755951', 'tblTempVendorCDR_20' ) start [2025-03-25 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755951', 'tblTempVendorCDR_20' ) end [2025-03-25 00:54:17] Production.INFO: ProcessCDR(1,14755951,1,1,2) [2025-03-25 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755951', 'tblTempUsageDetail_20' ) start [2025-03-25 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755951', 'tblTempUsageDetail_20' ) end [2025-03-25 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:54:20] Production.INFO: ==7087== Releasing lock... [2025-03-25 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:54:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:55:05 [end_date_ymd] => 2025-03-25 00:55:05 [RateCDR] => 1 ) [2025-03-25 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:55:05' and `end` < '2025-03-25 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-03-25 00:55:18] Production.INFO: count ==314 [2025-03-25 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:55:05 - End Time 2025-03-25 00:55:05 [2025-03-25 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755956', 'tblTempUsageDetail_20' ) start [2025-03-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755956', 'tblTempUsageDetail_20' ) end [2025-03-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755956', 'tblTempVendorCDR_20' ) start [2025-03-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755956', 'tblTempVendorCDR_20' ) end [2025-03-25 00:55:18] Production.INFO: ProcessCDR(1,14755956,1,1,2) [2025-03-25 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755956', 'tblTempUsageDetail_20' ) start [2025-03-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755956', 'tblTempUsageDetail_20' ) end [2025-03-25 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:55:21] Production.INFO: ==7176== Releasing lock... [2025-03-25 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:56:05 [end_date_ymd] => 2025-03-25 00:56:05 [RateCDR] => 1 ) [2025-03-25 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:56:05' and `end` < '2025-03-25 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:56:17] Production.INFO: count ==315 [2025-03-25 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:56:05 - End Time 2025-03-25 00:56:05 [2025-03-25 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755961', 'tblTempUsageDetail_20' ) start [2025-03-25 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755961', 'tblTempUsageDetail_20' ) end [2025-03-25 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755961', 'tblTempVendorCDR_20' ) start [2025-03-25 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755961', 'tblTempVendorCDR_20' ) end [2025-03-25 00:56:17] Production.INFO: ProcessCDR(1,14755961,1,1,2) [2025-03-25 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755961', 'tblTempUsageDetail_20' ) start [2025-03-25 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755961', 'tblTempUsageDetail_20' ) end [2025-03-25 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:56:22] Production.INFO: ==7262== Releasing lock... [2025-03-25 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:57:05 [end_date_ymd] => 2025-03-25 00:57:05 [RateCDR] => 1 ) [2025-03-25 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:57:05' and `end` < '2025-03-25 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:57:18] Production.INFO: count ==315 [2025-03-25 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:57:05 - End Time 2025-03-25 00:57:05 [2025-03-25 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755966', 'tblTempUsageDetail_20' ) start [2025-03-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755966', 'tblTempUsageDetail_20' ) end [2025-03-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755966', 'tblTempVendorCDR_20' ) start [2025-03-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755966', 'tblTempVendorCDR_20' ) end [2025-03-25 00:57:18] Production.INFO: ProcessCDR(1,14755966,1,1,2) [2025-03-25 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755966', 'tblTempUsageDetail_20' ) start [2025-03-25 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755966', 'tblTempUsageDetail_20' ) end [2025-03-25 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:57:21] Production.INFO: ==7353== Releasing lock... [2025-03-25 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:58:05 [end_date_ymd] => 2025-03-25 00:58:05 [RateCDR] => 1 ) [2025-03-25 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:58:05' and `end` < '2025-03-25 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:58:17] Production.INFO: count ==312 [2025-03-25 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-24 21:58:05 - End Time 2025-03-25 00:58:05 [2025-03-25 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755971', 'tblTempUsageDetail_20' ) start [2025-03-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755971', 'tblTempUsageDetail_20' ) end [2025-03-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755971', 'tblTempVendorCDR_20' ) start [2025-03-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755971', 'tblTempVendorCDR_20' ) end [2025-03-25 00:58:18] Production.INFO: ProcessCDR(1,14755971,1,1,2) [2025-03-25 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755971', 'tblTempUsageDetail_20' ) start [2025-03-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755971', 'tblTempUsageDetail_20' ) end [2025-03-25 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:58:21] Production.INFO: ==7458== Releasing lock... [2025-03-25 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:58:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 21:59:05 [end_date_ymd] => 2025-03-25 00:59:05 [RateCDR] => 1 ) [2025-03-25 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 21:59:05' and `end` < '2025-03-25 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 00:59:18] Production.INFO: count ==324 [2025-03-25 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-24 21:59:05 - End Time 2025-03-25 00:59:05 [2025-03-25 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755976', 'tblTempUsageDetail_20' ) start [2025-03-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755976', 'tblTempUsageDetail_20' ) end [2025-03-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755976', 'tblTempVendorCDR_20' ) start [2025-03-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755976', 'tblTempVendorCDR_20' ) end [2025-03-25 00:59:18] Production.INFO: ProcessCDR(1,14755976,1,1,2) [2025-03-25 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755976', 'tblTempUsageDetail_20' ) start [2025-03-25 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755976', 'tblTempUsageDetail_20' ) end [2025-03-25 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 00:59:21] Production.INFO: ==7546== Releasing lock... [2025-03-25 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 00:59:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:00:05 [end_date_ymd] => 2025-03-25 01:00:05 [RateCDR] => 1 ) [2025-03-25 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:00:05' and `end` < '2025-03-25 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:00:18] Production.INFO: count ==335 [2025-03-25 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:00:05 - End Time 2025-03-25 01:00:05 [2025-03-25 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755982', 'tblTempUsageDetail_20' ) start [2025-03-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755982', 'tblTempUsageDetail_20' ) end [2025-03-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755982', 'tblTempVendorCDR_20' ) start [2025-03-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755982', 'tblTempVendorCDR_20' ) end [2025-03-25 01:00:18] Production.INFO: ProcessCDR(1,14755982,1,1,2) [2025-03-25 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755982', 'tblTempUsageDetail_20' ) start [2025-03-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755982', 'tblTempUsageDetail_20' ) end [2025-03-25 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:00:21] Production.INFO: ==7637== Releasing lock... [2025-03-25 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:00:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:01:05 [end_date_ymd] => 2025-03-25 01:01:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 22:01:05' and `end` < '2025-03-25 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-03-25 01:01:17] Production.INFO: count ==335 [2025-03-25 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:01:05 - End Time 2025-03-25 01:01:05 [2025-03-25 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755987', 'tblTempUsageDetail_20' ) start [2025-03-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755987', 'tblTempUsageDetail_20' ) end [2025-03-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755987', 'tblTempVendorCDR_20' ) start [2025-03-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755987', 'tblTempVendorCDR_20' ) end [2025-03-25 01:01:18] Production.INFO: ProcessCDR(1,14755987,1,1,2) [2025-03-25 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755987', 'tblTempUsageDetail_20' ) start [2025-03-25 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755987', 'tblTempUsageDetail_20' ) end [2025-03-25 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:01:21] Production.INFO: ==7741== Releasing lock... [2025-03-25 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:02:06 [end_date_ymd] => 2025-03-25 01:02:06 [RateCDR] => 1 ) [2025-03-25 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:02:06' and `end` < '2025-03-25 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:02:18] Production.INFO: count ==336 [2025-03-25 01:02:19] Production.ERROR: pbx CDR StartTime 2025-03-24 22:02:06 - End Time 2025-03-25 01:02:06 [2025-03-25 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755992', 'tblTempUsageDetail_20' ) start [2025-03-25 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755992', 'tblTempUsageDetail_20' ) end [2025-03-25 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755992', 'tblTempVendorCDR_20' ) start [2025-03-25 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755992', 'tblTempVendorCDR_20' ) end [2025-03-25 01:02:19] Production.INFO: ProcessCDR(1,14755992,1,1,2) [2025-03-25 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755992', 'tblTempUsageDetail_20' ) start [2025-03-25 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755992', 'tblTempUsageDetail_20' ) end [2025-03-25 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:02:22] Production.INFO: ==7894== Releasing lock... [2025-03-25 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:02:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:03:05 [end_date_ymd] => 2025-03-25 01:03:05 [RateCDR] => 1 ) [2025-03-25 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:03:05' and `end` < '2025-03-25 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-03-25 01:03:17] Production.INFO: count ==337 [2025-03-25 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:03:05 - End Time 2025-03-25 01:03:05 [2025-03-25 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755997', 'tblTempUsageDetail_20' ) start [2025-03-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14755997', 'tblTempUsageDetail_20' ) end [2025-03-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755997', 'tblTempVendorCDR_20' ) start [2025-03-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14755997', 'tblTempVendorCDR_20' ) end [2025-03-25 01:03:18] Production.INFO: ProcessCDR(1,14755997,1,1,2) [2025-03-25 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14755997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14755997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14755997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14755997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755997', 'tblTempUsageDetail_20' ) start [2025-03-25 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14755997', 'tblTempUsageDetail_20' ) end [2025-03-25 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:03:23] Production.INFO: ==7982== Releasing lock... [2025-03-25 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:03:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:04:06 [end_date_ymd] => 2025-03-25 01:04:06 [RateCDR] => 1 ) [2025-03-25 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-03-24 22:04:06' and `end` < '2025-03-25 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-03-25 01:04:18] Production.INFO: count ==328 [2025-03-25 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:04:06 - End Time 2025-03-25 01:04:06 [2025-03-25 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756002', 'tblTempUsageDetail_20' ) start [2025-03-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756002', 'tblTempUsageDetail_20' ) end [2025-03-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756002', 'tblTempVendorCDR_20' ) start [2025-03-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756002', 'tblTempVendorCDR_20' ) end [2025-03-25 01:04:18] Production.INFO: ProcessCDR(1,14756002,1,1,2) [2025-03-25 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756002', 'tblTempUsageDetail_20' ) start [2025-03-25 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756002', 'tblTempUsageDetail_20' ) end [2025-03-25 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:04:22] Production.INFO: ==8075== Releasing lock... [2025-03-25 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:05:05 [end_date_ymd] => 2025-03-25 01:05:05 [RateCDR] => 1 ) [2025-03-25 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:05:05' and `end` < '2025-03-25 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-03-25 01:05:17] Production.INFO: count ==323 [2025-03-25 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:05:05 - End Time 2025-03-25 01:05:05 [2025-03-25 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756007', 'tblTempUsageDetail_20' ) start [2025-03-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756007', 'tblTempUsageDetail_20' ) end [2025-03-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756007', 'tblTempVendorCDR_20' ) start [2025-03-25 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756007', 'tblTempVendorCDR_20' ) end [2025-03-25 01:05:17] Production.INFO: ProcessCDR(1,14756007,1,1,2) [2025-03-25 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756007', 'tblTempUsageDetail_20' ) start [2025-03-25 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756007', 'tblTempUsageDetail_20' ) end [2025-03-25 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:05:21] Production.INFO: ==8179== Releasing lock... [2025-03-25 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:06:06 [end_date_ymd] => 2025-03-25 01:06:06 [RateCDR] => 1 ) [2025-03-25 01:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:06:06' and `end` < '2025-03-25 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-03-25 01:06:18] Production.INFO: count ==318 [2025-03-25 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:06:06 - End Time 2025-03-25 01:06:06 [2025-03-25 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756012', 'tblTempUsageDetail_20' ) start [2025-03-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756012', 'tblTempUsageDetail_20' ) end [2025-03-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756012', 'tblTempVendorCDR_20' ) start [2025-03-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756012', 'tblTempVendorCDR_20' ) end [2025-03-25 01:06:18] Production.INFO: ProcessCDR(1,14756012,1,1,2) [2025-03-25 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756012', 'tblTempUsageDetail_20' ) start [2025-03-25 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756012', 'tblTempUsageDetail_20' ) end [2025-03-25 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:06:22] Production.INFO: ==8274== Releasing lock... [2025-03-25 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:07:05 [end_date_ymd] => 2025-03-25 01:07:05 [RateCDR] => 1 ) [2025-03-25 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:07:05' and `end` < '2025-03-25 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:07:17] Production.INFO: count ==313 [2025-03-25 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:07:05 - End Time 2025-03-25 01:07:05 [2025-03-25 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756017', 'tblTempUsageDetail_20' ) start [2025-03-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756017', 'tblTempUsageDetail_20' ) end [2025-03-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756017', 'tblTempVendorCDR_20' ) start [2025-03-25 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756017', 'tblTempVendorCDR_20' ) end [2025-03-25 01:07:17] Production.INFO: ProcessCDR(1,14756017,1,1,2) [2025-03-25 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756017', 'tblTempUsageDetail_20' ) start [2025-03-25 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756017', 'tblTempUsageDetail_20' ) end [2025-03-25 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:07:21] Production.INFO: ==8361== Releasing lock... [2025-03-25 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:08:06 [end_date_ymd] => 2025-03-25 01:08:06 [RateCDR] => 1 ) [2025-03-25 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:08:06' and `end` < '2025-03-25 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-03-25 01:08:18] Production.INFO: count ==313 [2025-03-25 01:08:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:08:06 - End Time 2025-03-25 01:08:06 [2025-03-25 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756022', 'tblTempUsageDetail_20' ) start [2025-03-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756022', 'tblTempUsageDetail_20' ) end [2025-03-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756022', 'tblTempVendorCDR_20' ) start [2025-03-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756022', 'tblTempVendorCDR_20' ) end [2025-03-25 01:08:18] Production.INFO: ProcessCDR(1,14756022,1,1,2) [2025-03-25 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756022', 'tblTempUsageDetail_20' ) start [2025-03-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756022', 'tblTempUsageDetail_20' ) end [2025-03-25 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:08:21] Production.INFO: ==8458== Releasing lock... [2025-03-25 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:09:05 [end_date_ymd] => 2025-03-25 01:09:05 [RateCDR] => 1 ) [2025-03-25 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:09:05' and `end` < '2025-03-25 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:09:18] Production.INFO: count ==313 [2025-03-25 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:09:05 - End Time 2025-03-25 01:09:05 [2025-03-25 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756027', 'tblTempUsageDetail_20' ) start [2025-03-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756027', 'tblTempUsageDetail_20' ) end [2025-03-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756027', 'tblTempVendorCDR_20' ) start [2025-03-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756027', 'tblTempVendorCDR_20' ) end [2025-03-25 01:09:18] Production.INFO: ProcessCDR(1,14756027,1,1,2) [2025-03-25 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756027', 'tblTempUsageDetail_20' ) start [2025-03-25 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756027', 'tblTempUsageDetail_20' ) end [2025-03-25 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:09:21] Production.INFO: ==8545== Releasing lock... [2025-03-25 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:09:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:10:07 [end_date_ymd] => 2025-03-25 01:10:07 [RateCDR] => 1 ) [2025-03-25 01: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-03-24 22:10:07' and `end` < '2025-03-25 01: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-03-25 01:10:19] Production.INFO: count ==313 [2025-03-25 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-24 22:10:07 - End Time 2025-03-25 01:10:07 [2025-03-25 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756033', 'tblTempUsageDetail_20' ) start [2025-03-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756033', 'tblTempUsageDetail_20' ) end [2025-03-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756033', 'tblTempVendorCDR_20' ) start [2025-03-25 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756033', 'tblTempVendorCDR_20' ) end [2025-03-25 01:10:19] Production.INFO: ProcessCDR(1,14756033,1,1,2) [2025-03-25 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756033', 'tblTempUsageDetail_20' ) start [2025-03-25 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756033', 'tblTempUsageDetail_20' ) end [2025-03-25 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:10:22] Production.INFO: ==8634== Releasing lock... [2025-03-25 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:10:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:11:05 [end_date_ymd] => 2025-03-25 01:11:05 [RateCDR] => 1 ) [2025-03-25 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:11:05' and `end` < '2025-03-25 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:11:17] Production.INFO: count ==313 [2025-03-25 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:11:05 - End Time 2025-03-25 01:11:05 [2025-03-25 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756038', 'tblTempUsageDetail_20' ) start [2025-03-25 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756038', 'tblTempUsageDetail_20' ) end [2025-03-25 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756038', 'tblTempVendorCDR_20' ) start [2025-03-25 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756038', 'tblTempVendorCDR_20' ) end [2025-03-25 01:11:17] Production.INFO: ProcessCDR(1,14756038,1,1,2) [2025-03-25 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756038', 'tblTempUsageDetail_20' ) start [2025-03-25 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756038', 'tblTempUsageDetail_20' ) end [2025-03-25 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:11:21] Production.INFO: ==8745== Releasing lock... [2025-03-25 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:11:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:12:05 [end_date_ymd] => 2025-03-25 01:12:05 [RateCDR] => 1 ) [2025-03-25 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:12:05' and `end` < '2025-03-25 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:12:18] Production.INFO: count ==308 [2025-03-25 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:12:05 - End Time 2025-03-25 01:12:05 [2025-03-25 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756043', 'tblTempUsageDetail_20' ) start [2025-03-25 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756043', 'tblTempUsageDetail_20' ) end [2025-03-25 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756043', 'tblTempVendorCDR_20' ) start [2025-03-25 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756043', 'tblTempVendorCDR_20' ) end [2025-03-25 01:12:18] Production.INFO: ProcessCDR(1,14756043,1,1,2) [2025-03-25 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756043', 'tblTempUsageDetail_20' ) start [2025-03-25 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756043', 'tblTempUsageDetail_20' ) end [2025-03-25 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:12:21] Production.INFO: ==8838== Releasing lock... [2025-03-25 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:13:05 [end_date_ymd] => 2025-03-25 01:13:05 [RateCDR] => 1 ) [2025-03-25 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:13:05' and `end` < '2025-03-25 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:13:18] Production.INFO: count ==301 [2025-03-25 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:13:05 - End Time 2025-03-25 01:13:05 [2025-03-25 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756048', 'tblTempUsageDetail_20' ) start [2025-03-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756048', 'tblTempUsageDetail_20' ) end [2025-03-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756048', 'tblTempVendorCDR_20' ) start [2025-03-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756048', 'tblTempVendorCDR_20' ) end [2025-03-25 01:13:18] Production.INFO: ProcessCDR(1,14756048,1,1,2) [2025-03-25 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756048', 'tblTempUsageDetail_20' ) start [2025-03-25 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756048', 'tblTempUsageDetail_20' ) end [2025-03-25 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:13:22] Production.INFO: ==8929== Releasing lock... [2025-03-25 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:13:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:14:05 [end_date_ymd] => 2025-03-25 01:14:05 [RateCDR] => 1 ) [2025-03-25 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:14:05' and `end` < '2025-03-25 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:14:18] Production.INFO: count ==297 [2025-03-25 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:14:05 - End Time 2025-03-25 01:14:05 [2025-03-25 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756053', 'tblTempUsageDetail_20' ) start [2025-03-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756053', 'tblTempUsageDetail_20' ) end [2025-03-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756053', 'tblTempVendorCDR_20' ) start [2025-03-25 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756053', 'tblTempVendorCDR_20' ) end [2025-03-25 01:14:18] Production.INFO: ProcessCDR(1,14756053,1,1,2) [2025-03-25 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756053', 'tblTempUsageDetail_20' ) start [2025-03-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756053', 'tblTempUsageDetail_20' ) end [2025-03-25 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:14:21] Production.INFO: ==9018== Releasing lock... [2025-03-25 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:15:05 [end_date_ymd] => 2025-03-25 01:15:05 [RateCDR] => 1 ) [2025-03-25 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:15:05' and `end` < '2025-03-25 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:15:17] Production.INFO: count ==295 [2025-03-25 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:15:05 - End Time 2025-03-25 01:15:05 [2025-03-25 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756058', 'tblTempUsageDetail_20' ) start [2025-03-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756058', 'tblTempUsageDetail_20' ) end [2025-03-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756058', 'tblTempVendorCDR_20' ) start [2025-03-25 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756058', 'tblTempVendorCDR_20' ) end [2025-03-25 01:15:17] Production.INFO: ProcessCDR(1,14756058,1,1,2) [2025-03-25 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756058', 'tblTempUsageDetail_20' ) start [2025-03-25 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756058', 'tblTempUsageDetail_20' ) end [2025-03-25 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:15:21] Production.INFO: ==9113== Releasing lock... [2025-03-25 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:16:05 [end_date_ymd] => 2025-03-25 01:16:05 [RateCDR] => 1 ) [2025-03-25 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:16:05' and `end` < '2025-03-25 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-03-25 01:16:17] Production.INFO: count ==294 [2025-03-25 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:16:05 - End Time 2025-03-25 01:16:05 [2025-03-25 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756063', 'tblTempUsageDetail_20' ) start [2025-03-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756063', 'tblTempUsageDetail_20' ) end [2025-03-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756063', 'tblTempVendorCDR_20' ) start [2025-03-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756063', 'tblTempVendorCDR_20' ) end [2025-03-25 01:16:17] Production.INFO: ProcessCDR(1,14756063,1,1,2) [2025-03-25 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756063', 'tblTempUsageDetail_20' ) start [2025-03-25 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756063', 'tblTempUsageDetail_20' ) end [2025-03-25 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:16:21] Production.INFO: ==9202== Releasing lock... [2025-03-25 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:17:05 [end_date_ymd] => 2025-03-25 01:17:05 [RateCDR] => 1 ) [2025-03-25 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:17:05' and `end` < '2025-03-25 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:17:17] Production.INFO: count ==293 [2025-03-25 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:17:05 - End Time 2025-03-25 01:17:05 [2025-03-25 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756068', 'tblTempUsageDetail_20' ) start [2025-03-25 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756068', 'tblTempUsageDetail_20' ) end [2025-03-25 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756068', 'tblTempVendorCDR_20' ) start [2025-03-25 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756068', 'tblTempVendorCDR_20' ) end [2025-03-25 01:17:17] Production.INFO: ProcessCDR(1,14756068,1,1,2) [2025-03-25 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756068', 'tblTempUsageDetail_20' ) start [2025-03-25 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756068', 'tblTempUsageDetail_20' ) end [2025-03-25 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:17:20] Production.INFO: ==9299== Releasing lock... [2025-03-25 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:18:05 [end_date_ymd] => 2025-03-25 01:18:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 22:18:05' and `end` < '2025-03-25 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-03-25 01:18:18] Production.INFO: count ==291 [2025-03-25 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:18:05 - End Time 2025-03-25 01:18:05 [2025-03-25 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756073', 'tblTempUsageDetail_20' ) start [2025-03-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756073', 'tblTempUsageDetail_20' ) end [2025-03-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756073', 'tblTempVendorCDR_20' ) start [2025-03-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756073', 'tblTempVendorCDR_20' ) end [2025-03-25 01:18:18] Production.INFO: ProcessCDR(1,14756073,1,1,2) [2025-03-25 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756073', 'tblTempUsageDetail_20' ) start [2025-03-25 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756073', 'tblTempUsageDetail_20' ) end [2025-03-25 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:18:21] Production.INFO: ==9467== Releasing lock... [2025-03-25 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:19:05 [end_date_ymd] => 2025-03-25 01:19:05 [RateCDR] => 1 ) [2025-03-25 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:19:05' and `end` < '2025-03-25 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:19:17] Production.INFO: count ==290 [2025-03-25 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:19:05 - End Time 2025-03-25 01:19:05 [2025-03-25 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756078', 'tblTempUsageDetail_20' ) start [2025-03-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756078', 'tblTempUsageDetail_20' ) end [2025-03-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756078', 'tblTempVendorCDR_20' ) start [2025-03-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756078', 'tblTempVendorCDR_20' ) end [2025-03-25 01:19:17] Production.INFO: ProcessCDR(1,14756078,1,1,2) [2025-03-25 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756078', 'tblTempUsageDetail_20' ) start [2025-03-25 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756078', 'tblTempUsageDetail_20' ) end [2025-03-25 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:19:21] Production.INFO: ==9565== Releasing lock... [2025-03-25 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:20:06 [end_date_ymd] => 2025-03-25 01:20:06 [RateCDR] => 1 ) [2025-03-25 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:20:06' and `end` < '2025-03-25 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:20:18] Production.INFO: count ==290 [2025-03-25 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:20:06 - End Time 2025-03-25 01:20:06 [2025-03-25 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756084', 'tblTempUsageDetail_20' ) start [2025-03-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756084', 'tblTempUsageDetail_20' ) end [2025-03-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756084', 'tblTempVendorCDR_20' ) start [2025-03-25 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756084', 'tblTempVendorCDR_20' ) end [2025-03-25 01:20:18] Production.INFO: ProcessCDR(1,14756084,1,1,2) [2025-03-25 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756084', 'tblTempUsageDetail_20' ) start [2025-03-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756084', 'tblTempUsageDetail_20' ) end [2025-03-25 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:20:22] Production.INFO: ==9672== Releasing lock... [2025-03-25 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:21:06 [end_date_ymd] => 2025-03-25 01:21:06 [RateCDR] => 1 ) [2025-03-25 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-03-24 22:21:06' and `end` < '2025-03-25 01: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-03-25 01:21:18] Production.INFO: count ==290 [2025-03-25 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:21:06 - End Time 2025-03-25 01:21:06 [2025-03-25 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756089', 'tblTempUsageDetail_20' ) start [2025-03-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756089', 'tblTempUsageDetail_20' ) end [2025-03-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756089', 'tblTempVendorCDR_20' ) start [2025-03-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756089', 'tblTempVendorCDR_20' ) end [2025-03-25 01:21:18] Production.INFO: ProcessCDR(1,14756089,1,1,2) [2025-03-25 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756089', 'tblTempUsageDetail_20' ) start [2025-03-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756089', 'tblTempUsageDetail_20' ) end [2025-03-25 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:21:21] Production.INFO: ==9779== Releasing lock... [2025-03-25 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:22:05 [end_date_ymd] => 2025-03-25 01:22:05 [RateCDR] => 1 ) [2025-03-25 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:22:05' and `end` < '2025-03-25 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:22:18] Production.INFO: count ==288 [2025-03-25 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:22:05 - End Time 2025-03-25 01:22:05 [2025-03-25 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756094', 'tblTempUsageDetail_20' ) start [2025-03-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756094', 'tblTempUsageDetail_20' ) end [2025-03-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756094', 'tblTempVendorCDR_20' ) start [2025-03-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756094', 'tblTempVendorCDR_20' ) end [2025-03-25 01:22:18] Production.INFO: ProcessCDR(1,14756094,1,1,2) [2025-03-25 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756094', 'tblTempUsageDetail_20' ) start [2025-03-25 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756094', 'tblTempUsageDetail_20' ) end [2025-03-25 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:22:21] Production.INFO: ==9872== Releasing lock... [2025-03-25 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:23:05 [end_date_ymd] => 2025-03-25 01:23:05 [RateCDR] => 1 ) [2025-03-25 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:23:05' and `end` < '2025-03-25 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:23:18] Production.INFO: count ==285 [2025-03-25 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:23:05 - End Time 2025-03-25 01:23:05 [2025-03-25 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756099', 'tblTempUsageDetail_20' ) start [2025-03-25 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756099', 'tblTempUsageDetail_20' ) end [2025-03-25 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756099', 'tblTempVendorCDR_20' ) start [2025-03-25 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756099', 'tblTempVendorCDR_20' ) end [2025-03-25 01:23:18] Production.INFO: ProcessCDR(1,14756099,1,1,2) [2025-03-25 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756099', 'tblTempUsageDetail_20' ) start [2025-03-25 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756099', 'tblTempUsageDetail_20' ) end [2025-03-25 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:23:21] Production.INFO: ==9972== Releasing lock... [2025-03-25 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:23:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:24:05 [end_date_ymd] => 2025-03-25 01:24:05 [RateCDR] => 1 ) [2025-03-25 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:24:05' and `end` < '2025-03-25 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:24:17] Production.INFO: count ==284 [2025-03-25 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:24:05 - End Time 2025-03-25 01:24:05 [2025-03-25 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756104', 'tblTempUsageDetail_20' ) start [2025-03-25 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756104', 'tblTempUsageDetail_20' ) end [2025-03-25 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756104', 'tblTempVendorCDR_20' ) start [2025-03-25 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756104', 'tblTempVendorCDR_20' ) end [2025-03-25 01:24:17] Production.INFO: ProcessCDR(1,14756104,1,1,2) [2025-03-25 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756104', 'tblTempUsageDetail_20' ) start [2025-03-25 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756104', 'tblTempUsageDetail_20' ) end [2025-03-25 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:24:21] Production.INFO: ==10074== Releasing lock... [2025-03-25 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:24:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:25:05 [end_date_ymd] => 2025-03-25 01:25:05 [RateCDR] => 1 ) [2025-03-25 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:25:05' and `end` < '2025-03-25 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:25:18] Production.INFO: count ==284 [2025-03-25 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:25:05 - End Time 2025-03-25 01:25:05 [2025-03-25 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756109', 'tblTempUsageDetail_20' ) start [2025-03-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756109', 'tblTempUsageDetail_20' ) end [2025-03-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756109', 'tblTempVendorCDR_20' ) start [2025-03-25 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756109', 'tblTempVendorCDR_20' ) end [2025-03-25 01:25:18] Production.INFO: ProcessCDR(1,14756109,1,1,2) [2025-03-25 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756109', 'tblTempUsageDetail_20' ) start [2025-03-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756109', 'tblTempUsageDetail_20' ) end [2025-03-25 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:25:21] Production.INFO: ==10186== Releasing lock... [2025-03-25 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:25:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:26:05 [end_date_ymd] => 2025-03-25 01:26:05 [RateCDR] => 1 ) [2025-03-25 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:26:05' and `end` < '2025-03-25 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:26:17] Production.INFO: count ==284 [2025-03-25 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:26:05 - End Time 2025-03-25 01:26:05 [2025-03-25 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756114', 'tblTempUsageDetail_20' ) start [2025-03-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756114', 'tblTempUsageDetail_20' ) end [2025-03-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756114', 'tblTempVendorCDR_20' ) start [2025-03-25 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756114', 'tblTempVendorCDR_20' ) end [2025-03-25 01:26:17] Production.INFO: ProcessCDR(1,14756114,1,1,2) [2025-03-25 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756114', 'tblTempUsageDetail_20' ) start [2025-03-25 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756114', 'tblTempUsageDetail_20' ) end [2025-03-25 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:26:21] Production.INFO: ==10283== Releasing lock... [2025-03-25 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:27:06 [end_date_ymd] => 2025-03-25 01:27:06 [RateCDR] => 1 ) [2025-03-25 01: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-03-24 22:27:06' and `end` < '2025-03-25 01: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-03-25 01:27:18] Production.INFO: count ==284 [2025-03-25 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:27:06 - End Time 2025-03-25 01:27:06 [2025-03-25 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756119', 'tblTempUsageDetail_20' ) start [2025-03-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756119', 'tblTempUsageDetail_20' ) end [2025-03-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756119', 'tblTempVendorCDR_20' ) start [2025-03-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756119', 'tblTempVendorCDR_20' ) end [2025-03-25 01:27:18] Production.INFO: ProcessCDR(1,14756119,1,1,2) [2025-03-25 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756119', 'tblTempUsageDetail_20' ) start [2025-03-25 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756119', 'tblTempUsageDetail_20' ) end [2025-03-25 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:27:22] Production.INFO: ==10383== Releasing lock... [2025-03-25 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:27:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:28:05 [end_date_ymd] => 2025-03-25 01:28:05 [RateCDR] => 1 ) [2025-03-25 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:28:05' and `end` < '2025-03-25 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:28:17] Production.INFO: count ==284 [2025-03-25 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:28:05 - End Time 2025-03-25 01:28:05 [2025-03-25 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756124', 'tblTempUsageDetail_20' ) start [2025-03-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756124', 'tblTempUsageDetail_20' ) end [2025-03-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756124', 'tblTempVendorCDR_20' ) start [2025-03-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756124', 'tblTempVendorCDR_20' ) end [2025-03-25 01:28:18] Production.INFO: ProcessCDR(1,14756124,1,1,2) [2025-03-25 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756124', 'tblTempUsageDetail_20' ) start [2025-03-25 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756124', 'tblTempUsageDetail_20' ) end [2025-03-25 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:28:21] Production.INFO: ==10488== Releasing lock... [2025-03-25 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:29:05 [end_date_ymd] => 2025-03-25 01:29:05 [RateCDR] => 1 ) [2025-03-25 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:29:05' and `end` < '2025-03-25 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:29:18] Production.INFO: count ==284 [2025-03-25 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:29:05 - End Time 2025-03-25 01:29:05 [2025-03-25 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756129', 'tblTempUsageDetail_20' ) start [2025-03-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756129', 'tblTempUsageDetail_20' ) end [2025-03-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756129', 'tblTempVendorCDR_20' ) start [2025-03-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756129', 'tblTempVendorCDR_20' ) end [2025-03-25 01:29:18] Production.INFO: ProcessCDR(1,14756129,1,1,2) [2025-03-25 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756129', 'tblTempUsageDetail_20' ) start [2025-03-25 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756129', 'tblTempUsageDetail_20' ) end [2025-03-25 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:29:21] Production.INFO: ==10587== Releasing lock... [2025-03-25 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:30:06 [end_date_ymd] => 2025-03-25 01:30:06 [RateCDR] => 1 ) [2025-03-25 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:30:06' and `end` < '2025-03-25 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:30:18] Production.INFO: count ==293 [2025-03-25 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:30:06 - End Time 2025-03-25 01:30:06 [2025-03-25 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756135', 'tblTempUsageDetail_20' ) start [2025-03-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756135', 'tblTempUsageDetail_20' ) end [2025-03-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756135', 'tblTempVendorCDR_20' ) start [2025-03-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756135', 'tblTempVendorCDR_20' ) end [2025-03-25 01:30:18] Production.INFO: ProcessCDR(1,14756135,1,1,2) [2025-03-25 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756135', 'tblTempUsageDetail_20' ) start [2025-03-25 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756135', 'tblTempUsageDetail_20' ) end [2025-03-25 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:30:22] Production.INFO: ==10683== Releasing lock... [2025-03-25 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:31:05 [end_date_ymd] => 2025-03-25 01:31:05 [RateCDR] => 1 ) [2025-03-25 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:31:05' and `end` < '2025-03-25 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:31:18] Production.INFO: count ==304 [2025-03-25 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:31:05 - End Time 2025-03-25 01:31:05 [2025-03-25 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756140', 'tblTempUsageDetail_20' ) start [2025-03-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756140', 'tblTempUsageDetail_20' ) end [2025-03-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756140', 'tblTempVendorCDR_20' ) start [2025-03-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756140', 'tblTempVendorCDR_20' ) end [2025-03-25 01:31:18] Production.INFO: ProcessCDR(1,14756140,1,1,2) [2025-03-25 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756140', 'tblTempUsageDetail_20' ) start [2025-03-25 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756140', 'tblTempUsageDetail_20' ) end [2025-03-25 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:31:21] Production.INFO: ==10802== Releasing lock... [2025-03-25 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:32:05 [end_date_ymd] => 2025-03-25 01:32:05 [RateCDR] => 1 ) [2025-03-25 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:32:05' and `end` < '2025-03-25 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:32:18] Production.INFO: count ==302 [2025-03-25 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:32:05 - End Time 2025-03-25 01:32:05 [2025-03-25 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756145', 'tblTempUsageDetail_20' ) start [2025-03-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756145', 'tblTempUsageDetail_20' ) end [2025-03-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756145', 'tblTempVendorCDR_20' ) start [2025-03-25 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756145', 'tblTempVendorCDR_20' ) end [2025-03-25 01:32:18] Production.INFO: ProcessCDR(1,14756145,1,1,2) [2025-03-25 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756145', 'tblTempUsageDetail_20' ) start [2025-03-25 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756145', 'tblTempUsageDetail_20' ) end [2025-03-25 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:32:21] Production.INFO: ==10906== Releasing lock... [2025-03-25 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:33:05 [end_date_ymd] => 2025-03-25 01:33:05 [RateCDR] => 1 ) [2025-03-25 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:33:05' and `end` < '2025-03-25 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-03-25 01:33:17] Production.INFO: count ==302 [2025-03-25 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:33:05 - End Time 2025-03-25 01:33:05 [2025-03-25 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756150', 'tblTempUsageDetail_20' ) start [2025-03-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756150', 'tblTempUsageDetail_20' ) end [2025-03-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756150', 'tblTempVendorCDR_20' ) start [2025-03-25 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756150', 'tblTempVendorCDR_20' ) end [2025-03-25 01:33:17] Production.INFO: ProcessCDR(1,14756150,1,1,2) [2025-03-25 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756150', 'tblTempUsageDetail_20' ) start [2025-03-25 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756150', 'tblTempUsageDetail_20' ) end [2025-03-25 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:33:22] Production.INFO: ==11047== Releasing lock... [2025-03-25 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:33:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:34:06 [end_date_ymd] => 2025-03-25 01:34:06 [RateCDR] => 1 ) [2025-03-25 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:34:06' and `end` < '2025-03-25 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:34:18] Production.INFO: count ==302 [2025-03-25 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:34:06 - End Time 2025-03-25 01:34:06 [2025-03-25 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756155', 'tblTempUsageDetail_20' ) start [2025-03-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756155', 'tblTempUsageDetail_20' ) end [2025-03-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756155', 'tblTempVendorCDR_20' ) start [2025-03-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756155', 'tblTempVendorCDR_20' ) end [2025-03-25 01:34:18] Production.INFO: ProcessCDR(1,14756155,1,1,2) [2025-03-25 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756155', 'tblTempUsageDetail_20' ) start [2025-03-25 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756155', 'tblTempUsageDetail_20' ) end [2025-03-25 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:34:22] Production.INFO: ==11147== Releasing lock... [2025-03-25 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:34:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:35:05 [end_date_ymd] => 2025-03-25 01:35:05 [RateCDR] => 1 ) [2025-03-25 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:35:05' and `end` < '2025-03-25 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-03-25 01:35:18] Production.INFO: count ==302 [2025-03-25 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:35:05 - End Time 2025-03-25 01:35:05 [2025-03-25 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756160', 'tblTempUsageDetail_20' ) start [2025-03-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756160', 'tblTempUsageDetail_20' ) end [2025-03-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756160', 'tblTempVendorCDR_20' ) start [2025-03-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756160', 'tblTempVendorCDR_20' ) end [2025-03-25 01:35:18] Production.INFO: ProcessCDR(1,14756160,1,1,2) [2025-03-25 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756160', 'tblTempUsageDetail_20' ) start [2025-03-25 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756160', 'tblTempUsageDetail_20' ) end [2025-03-25 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:35:21] Production.INFO: ==11249== Releasing lock... [2025-03-25 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:36:06 [end_date_ymd] => 2025-03-25 01:36:06 [RateCDR] => 1 ) [2025-03-25 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:36:06' and `end` < '2025-03-25 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:36:18] Production.INFO: count ==301 [2025-03-25 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:36:06 - End Time 2025-03-25 01:36:06 [2025-03-25 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756165', 'tblTempUsageDetail_20' ) start [2025-03-25 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756165', 'tblTempUsageDetail_20' ) end [2025-03-25 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756165', 'tblTempVendorCDR_20' ) start [2025-03-25 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756165', 'tblTempVendorCDR_20' ) end [2025-03-25 01:36:18] Production.INFO: ProcessCDR(1,14756165,1,1,2) [2025-03-25 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756165', 'tblTempUsageDetail_20' ) start [2025-03-25 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756165', 'tblTempUsageDetail_20' ) end [2025-03-25 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:36:21] Production.INFO: ==11346== Releasing lock... [2025-03-25 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:36:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:37:06 [end_date_ymd] => 2025-03-25 01:37:06 [RateCDR] => 1 ) [2025-03-25 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:37:06' and `end` < '2025-03-25 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:37:18] Production.INFO: count ==298 [2025-03-25 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:37:06 - End Time 2025-03-25 01:37:06 [2025-03-25 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756170', 'tblTempUsageDetail_20' ) start [2025-03-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756170', 'tblTempUsageDetail_20' ) end [2025-03-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756170', 'tblTempVendorCDR_20' ) start [2025-03-25 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756170', 'tblTempVendorCDR_20' ) end [2025-03-25 01:37:18] Production.INFO: ProcessCDR(1,14756170,1,1,2) [2025-03-25 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756170', 'tblTempUsageDetail_20' ) start [2025-03-25 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756170', 'tblTempUsageDetail_20' ) end [2025-03-25 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:37:21] Production.INFO: ==11442== Releasing lock... [2025-03-25 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:37:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:38:05 [end_date_ymd] => 2025-03-25 01:38:05 [RateCDR] => 1 ) [2025-03-25 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:38:05' and `end` < '2025-03-25 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:38:17] Production.INFO: count ==297 [2025-03-25 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:38:05 - End Time 2025-03-25 01:38:05 [2025-03-25 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756175', 'tblTempUsageDetail_20' ) start [2025-03-25 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756175', 'tblTempUsageDetail_20' ) end [2025-03-25 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756175', 'tblTempVendorCDR_20' ) start [2025-03-25 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756175', 'tblTempVendorCDR_20' ) end [2025-03-25 01:38:17] Production.INFO: ProcessCDR(1,14756175,1,1,2) [2025-03-25 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756175', 'tblTempUsageDetail_20' ) start [2025-03-25 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756175', 'tblTempUsageDetail_20' ) end [2025-03-25 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:38:22] Production.INFO: ==11540== Releasing lock... [2025-03-25 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:39:05 [end_date_ymd] => 2025-03-25 01:39:05 [RateCDR] => 1 ) [2025-03-25 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:39:05' and `end` < '2025-03-25 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-03-25 01:39:18] Production.INFO: count ==292 [2025-03-25 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:39:05 - End Time 2025-03-25 01:39:05 [2025-03-25 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756180', 'tblTempUsageDetail_20' ) start [2025-03-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756180', 'tblTempUsageDetail_20' ) end [2025-03-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756180', 'tblTempVendorCDR_20' ) start [2025-03-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756180', 'tblTempVendorCDR_20' ) end [2025-03-25 01:39:18] Production.INFO: ProcessCDR(1,14756180,1,1,2) [2025-03-25 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756180', 'tblTempUsageDetail_20' ) start [2025-03-25 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756180', 'tblTempUsageDetail_20' ) end [2025-03-25 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:39:23] Production.INFO: ==11642== Releasing lock... [2025-03-25 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:39:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:40:06 [end_date_ymd] => 2025-03-25 01:40:06 [RateCDR] => 1 ) [2025-03-25 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:40:06' and `end` < '2025-03-25 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:40:18] Production.INFO: count ==311 [2025-03-25 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:40:06 - End Time 2025-03-25 01:40:06 [2025-03-25 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756186', 'tblTempUsageDetail_20' ) start [2025-03-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756186', 'tblTempUsageDetail_20' ) end [2025-03-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756186', 'tblTempVendorCDR_20' ) start [2025-03-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756186', 'tblTempVendorCDR_20' ) end [2025-03-25 01:40:19] Production.INFO: ProcessCDR(1,14756186,1,1,2) [2025-03-25 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756186', 'tblTempUsageDetail_20' ) start [2025-03-25 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756186', 'tblTempUsageDetail_20' ) end [2025-03-25 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:40:22] Production.INFO: ==11737== Releasing lock... [2025-03-25 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:41:05 [end_date_ymd] => 2025-03-25 01:41:05 [RateCDR] => 1 ) [2025-03-25 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:41:05' and `end` < '2025-03-25 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-03-25 01:41:17] Production.INFO: count ==326 [2025-03-25 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:41:05 - End Time 2025-03-25 01:41:05 [2025-03-25 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756191', 'tblTempUsageDetail_20' ) start [2025-03-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756191', 'tblTempUsageDetail_20' ) end [2025-03-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756191', 'tblTempVendorCDR_20' ) start [2025-03-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756191', 'tblTempVendorCDR_20' ) end [2025-03-25 01:41:18] Production.INFO: ProcessCDR(1,14756191,1,1,2) [2025-03-25 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756191', 'tblTempUsageDetail_20' ) start [2025-03-25 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756191', 'tblTempUsageDetail_20' ) end [2025-03-25 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:41:22] Production.INFO: ==11839== Releasing lock... [2025-03-25 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:42:05 [end_date_ymd] => 2025-03-25 01:42:05 [RateCDR] => 1 ) [2025-03-25 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:42:05' and `end` < '2025-03-25 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:42:17] Production.INFO: count ==325 [2025-03-25 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:42:05 - End Time 2025-03-25 01:42:05 [2025-03-25 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756196', 'tblTempUsageDetail_20' ) start [2025-03-25 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756196', 'tblTempUsageDetail_20' ) end [2025-03-25 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756196', 'tblTempVendorCDR_20' ) start [2025-03-25 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756196', 'tblTempVendorCDR_20' ) end [2025-03-25 01:42:17] Production.INFO: ProcessCDR(1,14756196,1,1,2) [2025-03-25 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756196', 'tblTempUsageDetail_20' ) start [2025-03-25 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756196', 'tblTempUsageDetail_20' ) end [2025-03-25 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:42:21] Production.INFO: ==11934== Releasing lock... [2025-03-25 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:43:05 [end_date_ymd] => 2025-03-25 01:43:05 [RateCDR] => 1 ) [2025-03-25 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:43:05' and `end` < '2025-03-25 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-03-25 01:43:18] Production.INFO: count ==332 [2025-03-25 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:43:05 - End Time 2025-03-25 01:43:05 [2025-03-25 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756201', 'tblTempUsageDetail_20' ) start [2025-03-25 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756201', 'tblTempUsageDetail_20' ) end [2025-03-25 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756201', 'tblTempVendorCDR_20' ) start [2025-03-25 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756201', 'tblTempVendorCDR_20' ) end [2025-03-25 01:43:18] Production.INFO: ProcessCDR(1,14756201,1,1,2) [2025-03-25 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756201', 'tblTempUsageDetail_20' ) start [2025-03-25 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756201', 'tblTempUsageDetail_20' ) end [2025-03-25 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:43:22] Production.INFO: ==12029== Releasing lock... [2025-03-25 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:44:05 [end_date_ymd] => 2025-03-25 01:44:05 [RateCDR] => 1 ) [2025-03-25 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:44:05' and `end` < '2025-03-25 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:44:18] Production.INFO: count ==332 [2025-03-25 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:44:05 - End Time 2025-03-25 01:44:05 [2025-03-25 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756206', 'tblTempUsageDetail_20' ) start [2025-03-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756206', 'tblTempUsageDetail_20' ) end [2025-03-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756206', 'tblTempVendorCDR_20' ) start [2025-03-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756206', 'tblTempVendorCDR_20' ) end [2025-03-25 01:44:18] Production.INFO: ProcessCDR(1,14756206,1,1,2) [2025-03-25 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756206', 'tblTempUsageDetail_20' ) start [2025-03-25 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756206', 'tblTempUsageDetail_20' ) end [2025-03-25 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:44:23] Production.INFO: ==12130== Releasing lock... [2025-03-25 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:44:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:45:06 [end_date_ymd] => 2025-03-25 01:45:06 [RateCDR] => 1 ) [2025-03-25 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:45:06' and `end` < '2025-03-25 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:45:18] Production.INFO: count ==337 [2025-03-25 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:45:06 - End Time 2025-03-25 01:45:06 [2025-03-25 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756211', 'tblTempUsageDetail_20' ) start [2025-03-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756211', 'tblTempUsageDetail_20' ) end [2025-03-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756211', 'tblTempVendorCDR_20' ) start [2025-03-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756211', 'tblTempVendorCDR_20' ) end [2025-03-25 01:45:18] Production.INFO: ProcessCDR(1,14756211,1,1,2) [2025-03-25 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756211', 'tblTempUsageDetail_20' ) start [2025-03-25 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756211', 'tblTempUsageDetail_20' ) end [2025-03-25 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:45:21] Production.INFO: ==12225== Releasing lock... [2025-03-25 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:45:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:46:05 [end_date_ymd] => 2025-03-25 01:46:05 [RateCDR] => 1 ) [2025-03-25 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:46:05' and `end` < '2025-03-25 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:46:18] Production.INFO: count ==336 [2025-03-25 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:46:05 - End Time 2025-03-25 01:46:05 [2025-03-25 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756216', 'tblTempUsageDetail_20' ) start [2025-03-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756216', 'tblTempUsageDetail_20' ) end [2025-03-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756216', 'tblTempVendorCDR_20' ) start [2025-03-25 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756216', 'tblTempVendorCDR_20' ) end [2025-03-25 01:46:18] Production.INFO: ProcessCDR(1,14756216,1,1,2) [2025-03-25 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756216', 'tblTempUsageDetail_20' ) start [2025-03-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756216', 'tblTempUsageDetail_20' ) end [2025-03-25 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:46:21] Production.INFO: ==12319== Releasing lock... [2025-03-25 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:47:06 [end_date_ymd] => 2025-03-25 01:47:06 [RateCDR] => 1 ) [2025-03-25 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:47:06' and `end` < '2025-03-25 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:47:18] Production.INFO: count ==335 [2025-03-25 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:47:06 - End Time 2025-03-25 01:47:06 [2025-03-25 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756221', 'tblTempUsageDetail_20' ) start [2025-03-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756221', 'tblTempUsageDetail_20' ) end [2025-03-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756221', 'tblTempVendorCDR_20' ) start [2025-03-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756221', 'tblTempVendorCDR_20' ) end [2025-03-25 01:47:18] Production.INFO: ProcessCDR(1,14756221,1,1,2) [2025-03-25 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756221', 'tblTempUsageDetail_20' ) start [2025-03-25 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756221', 'tblTempUsageDetail_20' ) end [2025-03-25 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:47:22] Production.INFO: ==12421== Releasing lock... [2025-03-25 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:47:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:48:05 [end_date_ymd] => 2025-03-25 01:48:05 [RateCDR] => 1 ) [2025-03-25 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:48:05' and `end` < '2025-03-25 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-03-25 01:48:18] Production.INFO: count ==332 [2025-03-25 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:48:05 - End Time 2025-03-25 01:48:05 [2025-03-25 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756226', 'tblTempUsageDetail_20' ) start [2025-03-25 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756226', 'tblTempUsageDetail_20' ) end [2025-03-25 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756226', 'tblTempVendorCDR_20' ) start [2025-03-25 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756226', 'tblTempVendorCDR_20' ) end [2025-03-25 01:48:18] Production.INFO: ProcessCDR(1,14756226,1,1,2) [2025-03-25 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756226', 'tblTempUsageDetail_20' ) start [2025-03-25 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756226', 'tblTempUsageDetail_20' ) end [2025-03-25 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:48:21] Production.INFO: ==12514== Releasing lock... [2025-03-25 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:49:05 [end_date_ymd] => 2025-03-25 01:49:05 [RateCDR] => 1 ) [2025-03-25 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:49:05' and `end` < '2025-03-25 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:49:17] Production.INFO: count ==332 [2025-03-25 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:49:05 - End Time 2025-03-25 01:49:05 [2025-03-25 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756231', 'tblTempUsageDetail_20' ) start [2025-03-25 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756231', 'tblTempUsageDetail_20' ) end [2025-03-25 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756231', 'tblTempVendorCDR_20' ) start [2025-03-25 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756231', 'tblTempVendorCDR_20' ) end [2025-03-25 01:49:17] Production.INFO: ProcessCDR(1,14756231,1,1,2) [2025-03-25 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756231', 'tblTempUsageDetail_20' ) start [2025-03-25 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756231', 'tblTempUsageDetail_20' ) end [2025-03-25 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:49:21] Production.INFO: ==12645== Releasing lock... [2025-03-25 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:50:06 [end_date_ymd] => 2025-03-25 01:50:06 [RateCDR] => 1 ) [2025-03-25 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:50:06' and `end` < '2025-03-25 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:50:18] Production.INFO: count ==338 [2025-03-25 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:50:06 - End Time 2025-03-25 01:50:06 [2025-03-25 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756237', 'tblTempUsageDetail_20' ) start [2025-03-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756237', 'tblTempUsageDetail_20' ) end [2025-03-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756237', 'tblTempVendorCDR_20' ) start [2025-03-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756237', 'tblTempVendorCDR_20' ) end [2025-03-25 01:50:18] Production.INFO: ProcessCDR(1,14756237,1,1,2) [2025-03-25 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756237', 'tblTempUsageDetail_20' ) start [2025-03-25 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756237', 'tblTempUsageDetail_20' ) end [2025-03-25 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:50:22] Production.INFO: ==12741== Releasing lock... [2025-03-25 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:51:05 [end_date_ymd] => 2025-03-25 01:51:05 [RateCDR] => 1 ) [2025-03-25 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:51:05' and `end` < '2025-03-25 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:51:17] Production.INFO: count ==338 [2025-03-25 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:51:05 - End Time 2025-03-25 01:51:05 [2025-03-25 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756242', 'tblTempUsageDetail_20' ) start [2025-03-25 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756242', 'tblTempUsageDetail_20' ) end [2025-03-25 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756242', 'tblTempVendorCDR_20' ) start [2025-03-25 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756242', 'tblTempVendorCDR_20' ) end [2025-03-25 01:51:17] Production.INFO: ProcessCDR(1,14756242,1,1,2) [2025-03-25 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756242', 'tblTempUsageDetail_20' ) start [2025-03-25 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756242', 'tblTempUsageDetail_20' ) end [2025-03-25 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:51:21] Production.INFO: ==12832== Releasing lock... [2025-03-25 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:52:06 [end_date_ymd] => 2025-03-25 01:52:06 [RateCDR] => 1 ) [2025-03-25 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:52:06' and `end` < '2025-03-25 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:52:18] Production.INFO: count ==343 [2025-03-25 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:52:06 - End Time 2025-03-25 01:52:06 [2025-03-25 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756247', 'tblTempUsageDetail_20' ) start [2025-03-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756247', 'tblTempUsageDetail_20' ) end [2025-03-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756247', 'tblTempVendorCDR_20' ) start [2025-03-25 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756247', 'tblTempVendorCDR_20' ) end [2025-03-25 01:52:18] Production.INFO: ProcessCDR(1,14756247,1,1,2) [2025-03-25 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756247', 'tblTempUsageDetail_20' ) start [2025-03-25 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756247', 'tblTempUsageDetail_20' ) end [2025-03-25 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:52:23] Production.INFO: ==12928== Releasing lock... [2025-03-25 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:52:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:53:05 [end_date_ymd] => 2025-03-25 01:53:05 [RateCDR] => 1 ) [2025-03-25 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:53:05' and `end` < '2025-03-25 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:53:17] Production.INFO: count ==347 [2025-03-25 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:53:05 - End Time 2025-03-25 01:53:05 [2025-03-25 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756252', 'tblTempUsageDetail_20' ) start [2025-03-25 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756252', 'tblTempUsageDetail_20' ) end [2025-03-25 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756252', 'tblTempVendorCDR_20' ) start [2025-03-25 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756252', 'tblTempVendorCDR_20' ) end [2025-03-25 01:53:17] Production.INFO: ProcessCDR(1,14756252,1,1,2) [2025-03-25 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756252', 'tblTempUsageDetail_20' ) start [2025-03-25 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756252', 'tblTempUsageDetail_20' ) end [2025-03-25 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:53:21] Production.INFO: ==13017== Releasing lock... [2025-03-25 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:54:06 [end_date_ymd] => 2025-03-25 01:54:06 [RateCDR] => 1 ) [2025-03-25 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:54:06' and `end` < '2025-03-25 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:54:18] Production.INFO: count ==347 [2025-03-25 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:54:06 - End Time 2025-03-25 01:54:06 [2025-03-25 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756257', 'tblTempUsageDetail_20' ) start [2025-03-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756257', 'tblTempUsageDetail_20' ) end [2025-03-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756257', 'tblTempVendorCDR_20' ) start [2025-03-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756257', 'tblTempVendorCDR_20' ) end [2025-03-25 01:54:18] Production.INFO: ProcessCDR(1,14756257,1,1,2) [2025-03-25 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756257', 'tblTempUsageDetail_20' ) start [2025-03-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756257', 'tblTempUsageDetail_20' ) end [2025-03-25 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:54:22] Production.INFO: ==13113== Releasing lock... [2025-03-25 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:55:05 [end_date_ymd] => 2025-03-25 01:55:05 [RateCDR] => 1 ) [2025-03-25 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:55:05' and `end` < '2025-03-25 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:55:18] Production.INFO: count ==347 [2025-03-25 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:55:05 - End Time 2025-03-25 01:55:05 [2025-03-25 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756262', 'tblTempUsageDetail_20' ) start [2025-03-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756262', 'tblTempUsageDetail_20' ) end [2025-03-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756262', 'tblTempVendorCDR_20' ) start [2025-03-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756262', 'tblTempVendorCDR_20' ) end [2025-03-25 01:55:18] Production.INFO: ProcessCDR(1,14756262,1,1,2) [2025-03-25 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756262', 'tblTempUsageDetail_20' ) start [2025-03-25 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756262', 'tblTempUsageDetail_20' ) end [2025-03-25 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:55:21] Production.INFO: ==13197== Releasing lock... [2025-03-25 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:56:05 [end_date_ymd] => 2025-03-25 01:56:05 [RateCDR] => 1 ) [2025-03-25 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:56:05' and `end` < '2025-03-25 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:56:17] Production.INFO: count ==347 [2025-03-25 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:56:05 - End Time 2025-03-25 01:56:05 [2025-03-25 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756267', 'tblTempUsageDetail_20' ) start [2025-03-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756267', 'tblTempUsageDetail_20' ) end [2025-03-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756267', 'tblTempVendorCDR_20' ) start [2025-03-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756267', 'tblTempVendorCDR_20' ) end [2025-03-25 01:56:18] Production.INFO: ProcessCDR(1,14756267,1,1,2) [2025-03-25 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756267', 'tblTempUsageDetail_20' ) start [2025-03-25 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756267', 'tblTempUsageDetail_20' ) end [2025-03-25 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:56:21] Production.INFO: ==13288== Releasing lock... [2025-03-25 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:57:05 [end_date_ymd] => 2025-03-25 01:57:05 [RateCDR] => 1 ) [2025-03-25 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:57:05' and `end` < '2025-03-25 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:57:17] Production.INFO: count ==347 [2025-03-25 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:57:05 - End Time 2025-03-25 01:57:05 [2025-03-25 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756272', 'tblTempUsageDetail_20' ) start [2025-03-25 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756272', 'tblTempUsageDetail_20' ) end [2025-03-25 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756272', 'tblTempVendorCDR_20' ) start [2025-03-25 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756272', 'tblTempVendorCDR_20' ) end [2025-03-25 01:57:17] Production.INFO: ProcessCDR(1,14756272,1,1,2) [2025-03-25 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756272', 'tblTempUsageDetail_20' ) start [2025-03-25 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756272', 'tblTempUsageDetail_20' ) end [2025-03-25 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:57:21] Production.INFO: ==13378== Releasing lock... [2025-03-25 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:58:05 [end_date_ymd] => 2025-03-25 01:58:05 [RateCDR] => 1 ) [2025-03-25 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:58:05' and `end` < '2025-03-25 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:58:18] Production.INFO: count ==339 [2025-03-25 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-24 22:58:05 - End Time 2025-03-25 01:58:05 [2025-03-25 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756277', 'tblTempUsageDetail_20' ) start [2025-03-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756277', 'tblTempUsageDetail_20' ) end [2025-03-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756277', 'tblTempVendorCDR_20' ) start [2025-03-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756277', 'tblTempVendorCDR_20' ) end [2025-03-25 01:58:18] Production.INFO: ProcessCDR(1,14756277,1,1,2) [2025-03-25 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756277', 'tblTempUsageDetail_20' ) start [2025-03-25 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756277', 'tblTempUsageDetail_20' ) end [2025-03-25 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:58:21] Production.INFO: ==13474== Releasing lock... [2025-03-25 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 22:59:05 [end_date_ymd] => 2025-03-25 01:59:05 [RateCDR] => 1 ) [2025-03-25 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 22:59:05' and `end` < '2025-03-25 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 01:59:17] Production.INFO: count ==339 [2025-03-25 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-24 22:59:05 - End Time 2025-03-25 01:59:05 [2025-03-25 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756282', 'tblTempUsageDetail_20' ) start [2025-03-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756282', 'tblTempUsageDetail_20' ) end [2025-03-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756282', 'tblTempVendorCDR_20' ) start [2025-03-25 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756282', 'tblTempVendorCDR_20' ) end [2025-03-25 01:59:17] Production.INFO: ProcessCDR(1,14756282,1,1,2) [2025-03-25 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756282', 'tblTempUsageDetail_20' ) start [2025-03-25 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756282', 'tblTempUsageDetail_20' ) end [2025-03-25 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 01:59:21] Production.INFO: ==13571== Releasing lock... [2025-03-25 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 01:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:00:06 [end_date_ymd] => 2025-03-25 02:00:06 [RateCDR] => 1 ) [2025-03-25 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:00:06' and `end` < '2025-03-25 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:00:18] Production.INFO: count ==341 [2025-03-25 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:00:06 - End Time 2025-03-25 02:00:06 [2025-03-25 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756287', 'tblTempUsageDetail_20' ) start [2025-03-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756287', 'tblTempUsageDetail_20' ) end [2025-03-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756287', 'tblTempVendorCDR_20' ) start [2025-03-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756287', 'tblTempVendorCDR_20' ) end [2025-03-25 02:00:19] Production.INFO: ProcessCDR(1,14756287,1,1,2) [2025-03-25 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756287', 'tblTempUsageDetail_20' ) start [2025-03-25 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756287', 'tblTempUsageDetail_20' ) end [2025-03-25 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:00:22] Production.INFO: ==13667== Releasing lock... [2025-03-25 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:01:06 [end_date_ymd] => 2025-03-25 02:01:06 [RateCDR] => 1 ) [2025-03-25 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:01:06' and `end` < '2025-03-25 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:01:18] Production.INFO: count ==341 [2025-03-25 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:01:06 - End Time 2025-03-25 02:01:06 [2025-03-25 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756293', 'tblTempUsageDetail_20' ) start [2025-03-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756293', 'tblTempUsageDetail_20' ) end [2025-03-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756293', 'tblTempVendorCDR_20' ) start [2025-03-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756293', 'tblTempVendorCDR_20' ) end [2025-03-25 02:01:18] Production.INFO: ProcessCDR(1,14756293,1,1,2) [2025-03-25 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756293', 'tblTempUsageDetail_20' ) start [2025-03-25 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756293', 'tblTempUsageDetail_20' ) end [2025-03-25 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:01:22] Production.INFO: ==13775== Releasing lock... [2025-03-25 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:02:06 [end_date_ymd] => 2025-03-25 02:02:06 [RateCDR] => 1 ) [2025-03-25 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-03-24 23:02:06' and `end` < '2025-03-25 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-03-25 02:02:18] Production.INFO: count ==338 [2025-03-25 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:02:06 - End Time 2025-03-25 02:02:06 [2025-03-25 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756298', 'tblTempUsageDetail_20' ) start [2025-03-25 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756298', 'tblTempUsageDetail_20' ) end [2025-03-25 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756298', 'tblTempVendorCDR_20' ) start [2025-03-25 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756298', 'tblTempVendorCDR_20' ) end [2025-03-25 02:02:18] Production.INFO: ProcessCDR(1,14756298,1,1,2) [2025-03-25 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756298', 'tblTempUsageDetail_20' ) start [2025-03-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756298', 'tblTempUsageDetail_20' ) end [2025-03-25 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:02:22] Production.INFO: ==13949== Releasing lock... [2025-03-25 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:03:05 [end_date_ymd] => 2025-03-25 02:03:05 [RateCDR] => 1 ) [2025-03-25 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:03:05' and `end` < '2025-03-25 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:03:17] Production.INFO: count ==331 [2025-03-25 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-24 23:03:05 - End Time 2025-03-25 02:03:05 [2025-03-25 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756303', 'tblTempUsageDetail_20' ) start [2025-03-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756303', 'tblTempUsageDetail_20' ) end [2025-03-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756303', 'tblTempVendorCDR_20' ) start [2025-03-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756303', 'tblTempVendorCDR_20' ) end [2025-03-25 02:03:17] Production.INFO: ProcessCDR(1,14756303,1,1,2) [2025-03-25 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756303', 'tblTempUsageDetail_20' ) start [2025-03-25 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756303', 'tblTempUsageDetail_20' ) end [2025-03-25 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:03:21] Production.INFO: ==14042== Releasing lock... [2025-03-25 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:03:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:04:05 [end_date_ymd] => 2025-03-25 02:04:05 [RateCDR] => 1 ) [2025-03-25 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:04:05' and `end` < '2025-03-25 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-03-25 02:04:18] Production.INFO: count ==331 [2025-03-25 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:04:05 - End Time 2025-03-25 02:04:05 [2025-03-25 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756308', 'tblTempUsageDetail_20' ) start [2025-03-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756308', 'tblTempUsageDetail_20' ) end [2025-03-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756308', 'tblTempVendorCDR_20' ) start [2025-03-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756308', 'tblTempVendorCDR_20' ) end [2025-03-25 02:04:18] Production.INFO: ProcessCDR(1,14756308,1,1,2) [2025-03-25 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756308', 'tblTempUsageDetail_20' ) start [2025-03-25 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756308', 'tblTempUsageDetail_20' ) end [2025-03-25 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:04:21] Production.INFO: ==14174== Releasing lock... [2025-03-25 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:04:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:05:05 [end_date_ymd] => 2025-03-25 02:05:05 [RateCDR] => 1 ) [2025-03-25 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:05:05' and `end` < '2025-03-25 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:05:18] Production.INFO: count ==331 [2025-03-25 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:05:05 - End Time 2025-03-25 02:05:05 [2025-03-25 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756313', 'tblTempUsageDetail_20' ) start [2025-03-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756313', 'tblTempUsageDetail_20' ) end [2025-03-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756313', 'tblTempVendorCDR_20' ) start [2025-03-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756313', 'tblTempVendorCDR_20' ) end [2025-03-25 02:05:18] Production.INFO: ProcessCDR(1,14756313,1,1,2) [2025-03-25 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756313', 'tblTempUsageDetail_20' ) start [2025-03-25 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756313', 'tblTempUsageDetail_20' ) end [2025-03-25 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:05:21] Production.INFO: ==14266== Releasing lock... [2025-03-25 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:05:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:06:05 [end_date_ymd] => 2025-03-25 02:06:05 [RateCDR] => 1 ) [2025-03-25 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:06:05' and `end` < '2025-03-25 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:06:18] Production.INFO: count ==330 [2025-03-25 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:06:05 - End Time 2025-03-25 02:06:05 [2025-03-25 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756318', 'tblTempUsageDetail_20' ) start [2025-03-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756318', 'tblTempUsageDetail_20' ) end [2025-03-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756318', 'tblTempVendorCDR_20' ) start [2025-03-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756318', 'tblTempVendorCDR_20' ) end [2025-03-25 02:06:18] Production.INFO: ProcessCDR(1,14756318,1,1,2) [2025-03-25 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756318', 'tblTempUsageDetail_20' ) start [2025-03-25 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756318', 'tblTempUsageDetail_20' ) end [2025-03-25 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:06:22] Production.INFO: ==14358== Releasing lock... [2025-03-25 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:06:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:07:05 [end_date_ymd] => 2025-03-25 02:07:05 [RateCDR] => 1 ) [2025-03-25 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:07:05' and `end` < '2025-03-25 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:07:18] Production.INFO: count ==330 [2025-03-25 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:07:05 - End Time 2025-03-25 02:07:05 [2025-03-25 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756323', 'tblTempUsageDetail_20' ) start [2025-03-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756323', 'tblTempUsageDetail_20' ) end [2025-03-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756323', 'tblTempVendorCDR_20' ) start [2025-03-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756323', 'tblTempVendorCDR_20' ) end [2025-03-25 02:07:18] Production.INFO: ProcessCDR(1,14756323,1,1,2) [2025-03-25 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756323', 'tblTempUsageDetail_20' ) start [2025-03-25 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756323', 'tblTempUsageDetail_20' ) end [2025-03-25 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:07:21] Production.INFO: ==14451== Releasing lock... [2025-03-25 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:08:05 [end_date_ymd] => 2025-03-25 02:08:05 [RateCDR] => 1 ) [2025-03-25 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:08:05' and `end` < '2025-03-25 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:08:18] Production.INFO: count ==329 [2025-03-25 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:08:05 - End Time 2025-03-25 02:08:05 [2025-03-25 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756328', 'tblTempUsageDetail_20' ) start [2025-03-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756328', 'tblTempUsageDetail_20' ) end [2025-03-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756328', 'tblTempVendorCDR_20' ) start [2025-03-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756328', 'tblTempVendorCDR_20' ) end [2025-03-25 02:08:18] Production.INFO: ProcessCDR(1,14756328,1,1,2) [2025-03-25 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756328', 'tblTempUsageDetail_20' ) start [2025-03-25 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756328', 'tblTempUsageDetail_20' ) end [2025-03-25 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:08:21] Production.INFO: ==14552== Releasing lock... [2025-03-25 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:09:05 [end_date_ymd] => 2025-03-25 02:09:05 [RateCDR] => 1 ) [2025-03-25 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:09:05' and `end` < '2025-03-25 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:09:17] Production.INFO: count ==329 [2025-03-25 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-24 23:09:05 - End Time 2025-03-25 02:09:05 [2025-03-25 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756333', 'tblTempUsageDetail_20' ) start [2025-03-25 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756333', 'tblTempUsageDetail_20' ) end [2025-03-25 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756333', 'tblTempVendorCDR_20' ) start [2025-03-25 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756333', 'tblTempVendorCDR_20' ) end [2025-03-25 02:09:17] Production.INFO: ProcessCDR(1,14756333,1,1,2) [2025-03-25 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756333', 'tblTempUsageDetail_20' ) start [2025-03-25 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756333', 'tblTempUsageDetail_20' ) end [2025-03-25 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:09:21] Production.INFO: ==14646== Releasing lock... [2025-03-25 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:10:06 [end_date_ymd] => 2025-03-25 02:10:06 [RateCDR] => 1 ) [2025-03-25 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:10:06' and `end` < '2025-03-25 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:10:18] Production.INFO: count ==335 [2025-03-25 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:10:06 - End Time 2025-03-25 02:10:06 [2025-03-25 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756339', 'tblTempUsageDetail_20' ) start [2025-03-25 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756339', 'tblTempUsageDetail_20' ) end [2025-03-25 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756339', 'tblTempVendorCDR_20' ) start [2025-03-25 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756339', 'tblTempVendorCDR_20' ) end [2025-03-25 02:10:18] Production.INFO: ProcessCDR(1,14756339,1,1,2) [2025-03-25 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756339', 'tblTempUsageDetail_20' ) start [2025-03-25 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756339', 'tblTempUsageDetail_20' ) end [2025-03-25 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:10:22] Production.INFO: ==14750== Releasing lock... [2025-03-25 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:11:06 [end_date_ymd] => 2025-03-25 02:11:06 [RateCDR] => 1 ) [2025-03-25 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:11:06' and `end` < '2025-03-25 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:11:18] Production.INFO: count ==337 [2025-03-25 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:11:06 - End Time 2025-03-25 02:11:06 [2025-03-25 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756344', 'tblTempUsageDetail_20' ) start [2025-03-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756344', 'tblTempUsageDetail_20' ) end [2025-03-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756344', 'tblTempVendorCDR_20' ) start [2025-03-25 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756344', 'tblTempVendorCDR_20' ) end [2025-03-25 02:11:18] Production.INFO: ProcessCDR(1,14756344,1,1,2) [2025-03-25 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756344', 'tblTempUsageDetail_20' ) start [2025-03-25 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756344', 'tblTempUsageDetail_20' ) end [2025-03-25 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:11:21] Production.INFO: ==14849== Releasing lock... [2025-03-25 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:11:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:12:05 [end_date_ymd] => 2025-03-25 02:12:05 [RateCDR] => 1 ) [2025-03-25 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:12:05' and `end` < '2025-03-25 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-03-25 02:12:17] Production.INFO: count ==346 [2025-03-25 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:12:05 - End Time 2025-03-25 02:12:05 [2025-03-25 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756349', 'tblTempUsageDetail_20' ) start [2025-03-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756349', 'tblTempUsageDetail_20' ) end [2025-03-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756349', 'tblTempVendorCDR_20' ) start [2025-03-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756349', 'tblTempVendorCDR_20' ) end [2025-03-25 02:12:18] Production.INFO: ProcessCDR(1,14756349,1,1,2) [2025-03-25 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756349', 'tblTempUsageDetail_20' ) start [2025-03-25 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756349', 'tblTempUsageDetail_20' ) end [2025-03-25 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:12:21] Production.INFO: ==14943== Releasing lock... [2025-03-25 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:13:06 [end_date_ymd] => 2025-03-25 02:13:06 [RateCDR] => 1 ) [2025-03-25 02:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:13:06' and `end` < '2025-03-25 02:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:13:18] Production.INFO: count ==346 [2025-03-25 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:13:06 - End Time 2025-03-25 02:13:06 [2025-03-25 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756354', 'tblTempUsageDetail_20' ) start [2025-03-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756354', 'tblTempUsageDetail_20' ) end [2025-03-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756354', 'tblTempVendorCDR_20' ) start [2025-03-25 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756354', 'tblTempVendorCDR_20' ) end [2025-03-25 02:13:18] Production.INFO: ProcessCDR(1,14756354,1,1,2) [2025-03-25 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756354', 'tblTempUsageDetail_20' ) start [2025-03-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756354', 'tblTempUsageDetail_20' ) end [2025-03-25 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:13:22] Production.INFO: ==15035== Releasing lock... [2025-03-25 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:14:05 [end_date_ymd] => 2025-03-25 02:14:05 [RateCDR] => 1 ) [2025-03-25 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:14:05' and `end` < '2025-03-25 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:14:18] Production.INFO: count ==341 [2025-03-25 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:14:05 - End Time 2025-03-25 02:14:05 [2025-03-25 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756359', 'tblTempUsageDetail_20' ) start [2025-03-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756359', 'tblTempUsageDetail_20' ) end [2025-03-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756359', 'tblTempVendorCDR_20' ) start [2025-03-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756359', 'tblTempVendorCDR_20' ) end [2025-03-25 02:14:18] Production.INFO: ProcessCDR(1,14756359,1,1,2) [2025-03-25 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756359', 'tblTempUsageDetail_20' ) start [2025-03-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756359', 'tblTempUsageDetail_20' ) end [2025-03-25 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:14:21] Production.INFO: ==15125== Releasing lock... [2025-03-25 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:15:06 [end_date_ymd] => 2025-03-25 02:15:06 [RateCDR] => 1 ) [2025-03-25 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:15:06' and `end` < '2025-03-25 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:15:18] Production.INFO: count ==344 [2025-03-25 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:15:06 - End Time 2025-03-25 02:15:06 [2025-03-25 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756364', 'tblTempUsageDetail_20' ) start [2025-03-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756364', 'tblTempUsageDetail_20' ) end [2025-03-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756364', 'tblTempVendorCDR_20' ) start [2025-03-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756364', 'tblTempVendorCDR_20' ) end [2025-03-25 02:15:18] Production.INFO: ProcessCDR(1,14756364,1,1,2) [2025-03-25 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756364', 'tblTempUsageDetail_20' ) start [2025-03-25 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756364', 'tblTempUsageDetail_20' ) end [2025-03-25 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:15:22] Production.INFO: ==15217== Releasing lock... [2025-03-25 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:15:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:16:05 [end_date_ymd] => 2025-03-25 02:16:05 [RateCDR] => 1 ) [2025-03-25 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:16:05' and `end` < '2025-03-25 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-03-25 02:16:18] Production.INFO: count ==342 [2025-03-25 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:16:05 - End Time 2025-03-25 02:16:05 [2025-03-25 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756369', 'tblTempUsageDetail_20' ) start [2025-03-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756369', 'tblTempUsageDetail_20' ) end [2025-03-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756369', 'tblTempVendorCDR_20' ) start [2025-03-25 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756369', 'tblTempVendorCDR_20' ) end [2025-03-25 02:16:18] Production.INFO: ProcessCDR(1,14756369,1,1,2) [2025-03-25 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756369', 'tblTempUsageDetail_20' ) start [2025-03-25 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756369', 'tblTempUsageDetail_20' ) end [2025-03-25 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:16:21] Production.INFO: ==15309== Releasing lock... [2025-03-25 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:17:06 [end_date_ymd] => 2025-03-25 02:17:06 [RateCDR] => 1 ) [2025-03-25 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:17:06' and `end` < '2025-03-25 02: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-03-25 02:17:18] Production.INFO: count ==344 [2025-03-25 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:17:06 - End Time 2025-03-25 02:17:06 [2025-03-25 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756374', 'tblTempUsageDetail_20' ) start [2025-03-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756374', 'tblTempUsageDetail_20' ) end [2025-03-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756374', 'tblTempVendorCDR_20' ) start [2025-03-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756374', 'tblTempVendorCDR_20' ) end [2025-03-25 02:17:18] Production.INFO: ProcessCDR(1,14756374,1,1,2) [2025-03-25 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756374', 'tblTempUsageDetail_20' ) start [2025-03-25 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756374', 'tblTempUsageDetail_20' ) end [2025-03-25 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:17:22] Production.INFO: ==15401== Releasing lock... [2025-03-25 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:17:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:18:06 [end_date_ymd] => 2025-03-25 02:18:06 [RateCDR] => 1 ) [2025-03-25 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:18:06' and `end` < '2025-03-25 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:18:18] Production.INFO: count ==343 [2025-03-25 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:18:06 - End Time 2025-03-25 02:18:06 [2025-03-25 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756379', 'tblTempUsageDetail_20' ) start [2025-03-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756379', 'tblTempUsageDetail_20' ) end [2025-03-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756379', 'tblTempVendorCDR_20' ) start [2025-03-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756379', 'tblTempVendorCDR_20' ) end [2025-03-25 02:18:18] Production.INFO: ProcessCDR(1,14756379,1,1,2) [2025-03-25 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756379', 'tblTempUsageDetail_20' ) start [2025-03-25 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756379', 'tblTempUsageDetail_20' ) end [2025-03-25 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:18:22] Production.INFO: ==15491== Releasing lock... [2025-03-25 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:18:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:19:06 [end_date_ymd] => 2025-03-25 02:19:06 [RateCDR] => 1 ) [2025-03-25 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:19:06' and `end` < '2025-03-25 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-03-25 02:19:18] Production.INFO: count ==349 [2025-03-25 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:19:06 - End Time 2025-03-25 02:19:06 [2025-03-25 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756384', 'tblTempUsageDetail_20' ) start [2025-03-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756384', 'tblTempUsageDetail_20' ) end [2025-03-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756384', 'tblTempVendorCDR_20' ) start [2025-03-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756384', 'tblTempVendorCDR_20' ) end [2025-03-25 02:19:18] Production.INFO: ProcessCDR(1,14756384,1,1,2) [2025-03-25 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756384', 'tblTempUsageDetail_20' ) start [2025-03-25 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756384', 'tblTempUsageDetail_20' ) end [2025-03-25 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:19:22] Production.INFO: ==15624== Releasing lock... [2025-03-25 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:20:06 [end_date_ymd] => 2025-03-25 02:20:06 [RateCDR] => 1 ) [2025-03-25 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:20:06' and `end` < '2025-03-25 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:20:19] Production.INFO: count ==356 [2025-03-25 02:20:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:20:06 - End Time 2025-03-25 02:20:06 [2025-03-25 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756390', 'tblTempUsageDetail_20' ) start [2025-03-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756390', 'tblTempUsageDetail_20' ) end [2025-03-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756390', 'tblTempVendorCDR_20' ) start [2025-03-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756390', 'tblTempVendorCDR_20' ) end [2025-03-25 02:20:19] Production.INFO: ProcessCDR(1,14756390,1,1,2) [2025-03-25 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756390', 'tblTempUsageDetail_20' ) start [2025-03-25 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756390', 'tblTempUsageDetail_20' ) end [2025-03-25 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:20:22] Production.INFO: ==15712== Releasing lock... [2025-03-25 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:21:05 [end_date_ymd] => 2025-03-25 02:21:05 [RateCDR] => 1 ) [2025-03-25 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:21:05' and `end` < '2025-03-25 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:21:18] Production.INFO: count ==357 [2025-03-25 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:21:05 - End Time 2025-03-25 02:21:05 [2025-03-25 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756395', 'tblTempUsageDetail_20' ) start [2025-03-25 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756395', 'tblTempUsageDetail_20' ) end [2025-03-25 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756395', 'tblTempVendorCDR_20' ) start [2025-03-25 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756395', 'tblTempVendorCDR_20' ) end [2025-03-25 02:21:18] Production.INFO: ProcessCDR(1,14756395,1,1,2) [2025-03-25 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756395', 'tblTempUsageDetail_20' ) start [2025-03-25 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756395', 'tblTempUsageDetail_20' ) end [2025-03-25 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:21:21] Production.INFO: ==15805== Releasing lock... [2025-03-25 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:22:05 [end_date_ymd] => 2025-03-25 02:22:05 [RateCDR] => 1 ) [2025-03-25 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:22:05' and `end` < '2025-03-25 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:22:17] Production.INFO: count ==361 [2025-03-25 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:22:05 - End Time 2025-03-25 02:22:05 [2025-03-25 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756400', 'tblTempUsageDetail_20' ) start [2025-03-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756400', 'tblTempUsageDetail_20' ) end [2025-03-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756400', 'tblTempVendorCDR_20' ) start [2025-03-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756400', 'tblTempVendorCDR_20' ) end [2025-03-25 02:22:18] Production.INFO: ProcessCDR(1,14756400,1,1,2) [2025-03-25 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756400', 'tblTempUsageDetail_20' ) start [2025-03-25 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756400', 'tblTempUsageDetail_20' ) end [2025-03-25 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:22:21] Production.INFO: ==15891== Releasing lock... [2025-03-25 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:23:06 [end_date_ymd] => 2025-03-25 02:23:06 [RateCDR] => 1 ) [2025-03-25 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:23:06' and `end` < '2025-03-25 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:23:18] Production.INFO: count ==364 [2025-03-25 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:23:06 - End Time 2025-03-25 02:23:06 [2025-03-25 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756405', 'tblTempUsageDetail_20' ) start [2025-03-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756405', 'tblTempUsageDetail_20' ) end [2025-03-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756405', 'tblTempVendorCDR_20' ) start [2025-03-25 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756405', 'tblTempVendorCDR_20' ) end [2025-03-25 02:23:18] Production.INFO: ProcessCDR(1,14756405,1,1,2) [2025-03-25 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756405', 'tblTempUsageDetail_20' ) start [2025-03-25 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756405', 'tblTempUsageDetail_20' ) end [2025-03-25 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:23:22] Production.INFO: ==15982== Releasing lock... [2025-03-25 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:24:05 [end_date_ymd] => 2025-03-25 02:24:05 [RateCDR] => 1 ) [2025-03-25 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:24:05' and `end` < '2025-03-25 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:24:18] Production.INFO: count ==363 [2025-03-25 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:24:05 - End Time 2025-03-25 02:24:05 [2025-03-25 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756410', 'tblTempUsageDetail_20' ) start [2025-03-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756410', 'tblTempUsageDetail_20' ) end [2025-03-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756410', 'tblTempVendorCDR_20' ) start [2025-03-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756410', 'tblTempVendorCDR_20' ) end [2025-03-25 02:24:18] Production.INFO: ProcessCDR(1,14756410,1,1,2) [2025-03-25 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756410', 'tblTempUsageDetail_20' ) start [2025-03-25 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756410', 'tblTempUsageDetail_20' ) end [2025-03-25 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:24:21] Production.INFO: ==16077== Releasing lock... [2025-03-25 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:25:05 [end_date_ymd] => 2025-03-25 02:25:05 [RateCDR] => 1 ) [2025-03-25 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:25:05' and `end` < '2025-03-25 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:25:18] Production.INFO: count ==368 [2025-03-25 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:25:05 - End Time 2025-03-25 02:25:05 [2025-03-25 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756415', 'tblTempUsageDetail_20' ) start [2025-03-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756415', 'tblTempUsageDetail_20' ) end [2025-03-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756415', 'tblTempVendorCDR_20' ) start [2025-03-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756415', 'tblTempVendorCDR_20' ) end [2025-03-25 02:25:18] Production.INFO: ProcessCDR(1,14756415,1,1,2) [2025-03-25 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756415', 'tblTempUsageDetail_20' ) start [2025-03-25 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756415', 'tblTempUsageDetail_20' ) end [2025-03-25 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:25:21] Production.INFO: ==16168== Releasing lock... [2025-03-25 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:26:05 [end_date_ymd] => 2025-03-25 02:26:05 [RateCDR] => 1 ) [2025-03-25 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:26:05' and `end` < '2025-03-25 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:26:17] Production.INFO: count ==400 [2025-03-25 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-24 23:26:05 - End Time 2025-03-25 02:26:05 [2025-03-25 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756420', 'tblTempUsageDetail_20' ) start [2025-03-25 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756420', 'tblTempUsageDetail_20' ) end [2025-03-25 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756420', 'tblTempVendorCDR_20' ) start [2025-03-25 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756420', 'tblTempVendorCDR_20' ) end [2025-03-25 02:26:17] Production.INFO: ProcessCDR(1,14756420,1,1,2) [2025-03-25 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756420', 'tblTempUsageDetail_20' ) start [2025-03-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756420', 'tblTempUsageDetail_20' ) end [2025-03-25 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:26:21] Production.INFO: ==16263== Releasing lock... [2025-03-25 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:27:05 [end_date_ymd] => 2025-03-25 02:27:05 [RateCDR] => 1 ) [2025-03-25 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:27:05' and `end` < '2025-03-25 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:27:18] Production.INFO: count ==400 [2025-03-25 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:27:05 - End Time 2025-03-25 02:27:05 [2025-03-25 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756425', 'tblTempUsageDetail_20' ) start [2025-03-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756425', 'tblTempUsageDetail_20' ) end [2025-03-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756425', 'tblTempVendorCDR_20' ) start [2025-03-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756425', 'tblTempVendorCDR_20' ) end [2025-03-25 02:27:18] Production.INFO: ProcessCDR(1,14756425,1,1,2) [2025-03-25 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756425', 'tblTempUsageDetail_20' ) start [2025-03-25 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756425', 'tblTempUsageDetail_20' ) end [2025-03-25 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:27:21] Production.INFO: ==16353== Releasing lock... [2025-03-25 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:28:05 [end_date_ymd] => 2025-03-25 02:28:05 [RateCDR] => 1 ) [2025-03-25 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:28:05' and `end` < '2025-03-25 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:28:18] Production.INFO: count ==403 [2025-03-25 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:28:05 - End Time 2025-03-25 02:28:05 [2025-03-25 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756430', 'tblTempUsageDetail_20' ) start [2025-03-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756430', 'tblTempUsageDetail_20' ) end [2025-03-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756430', 'tblTempVendorCDR_20' ) start [2025-03-25 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756430', 'tblTempVendorCDR_20' ) end [2025-03-25 02:28:18] Production.INFO: ProcessCDR(1,14756430,1,1,2) [2025-03-25 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756430', 'tblTempUsageDetail_20' ) start [2025-03-25 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756430', 'tblTempUsageDetail_20' ) end [2025-03-25 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:28:21] Production.INFO: ==16441== Releasing lock... [2025-03-25 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:29:06 [end_date_ymd] => 2025-03-25 02:29:06 [RateCDR] => 1 ) [2025-03-25 02: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-03-24 23:29:06' and `end` < '2025-03-25 02: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-03-25 02:29:19] Production.INFO: count ==402 [2025-03-25 02:29:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:29:06 - End Time 2025-03-25 02:29:06 [2025-03-25 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756435', 'tblTempUsageDetail_20' ) start [2025-03-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756435', 'tblTempUsageDetail_20' ) end [2025-03-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756435', 'tblTempVendorCDR_20' ) start [2025-03-25 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756435', 'tblTempVendorCDR_20' ) end [2025-03-25 02:29:19] Production.INFO: ProcessCDR(1,14756435,1,1,2) [2025-03-25 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756435', 'tblTempUsageDetail_20' ) start [2025-03-25 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756435', 'tblTempUsageDetail_20' ) end [2025-03-25 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:29:22] Production.INFO: ==16535== Releasing lock... [2025-03-25 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:30:05 [end_date_ymd] => 2025-03-25 02:30:05 [RateCDR] => 1 ) [2025-03-25 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:30:05' and `end` < '2025-03-25 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:30:18] Production.INFO: count ==410 [2025-03-25 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:30:05 - End Time 2025-03-25 02:30:05 [2025-03-25 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756440', 'tblTempUsageDetail_20' ) start [2025-03-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756440', 'tblTempUsageDetail_20' ) end [2025-03-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756440', 'tblTempVendorCDR_20' ) start [2025-03-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756440', 'tblTempVendorCDR_20' ) end [2025-03-25 02:30:18] Production.INFO: ProcessCDR(1,14756440,1,1,2) [2025-03-25 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756440', 'tblTempUsageDetail_20' ) start [2025-03-25 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756440', 'tblTempUsageDetail_20' ) end [2025-03-25 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:30:21] Production.INFO: ==16622== Releasing lock... [2025-03-25 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:31:05 [end_date_ymd] => 2025-03-25 02:31:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 23:31:05' and `end` < '2025-03-25 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-03-25 02:31:18] Production.INFO: count ==415 [2025-03-25 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:31:05 - End Time 2025-03-25 02:31:05 [2025-03-25 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756446', 'tblTempUsageDetail_20' ) start [2025-03-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756446', 'tblTempUsageDetail_20' ) end [2025-03-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756446', 'tblTempVendorCDR_20' ) start [2025-03-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756446', 'tblTempVendorCDR_20' ) end [2025-03-25 02:31:18] Production.INFO: ProcessCDR(1,14756446,1,1,2) [2025-03-25 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756446', 'tblTempUsageDetail_20' ) start [2025-03-25 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756446', 'tblTempUsageDetail_20' ) end [2025-03-25 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:31:21] Production.INFO: ==16714== Releasing lock... [2025-03-25 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:32:05 [end_date_ymd] => 2025-03-25 02:32:05 [RateCDR] => 1 ) [2025-03-25 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:32:05' and `end` < '2025-03-25 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:32:17] Production.INFO: count ==415 [2025-03-25 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-24 23:32:05 - End Time 2025-03-25 02:32:05 [2025-03-25 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756451', 'tblTempUsageDetail_20' ) start [2025-03-25 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756451', 'tblTempUsageDetail_20' ) end [2025-03-25 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756451', 'tblTempVendorCDR_20' ) start [2025-03-25 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756451', 'tblTempVendorCDR_20' ) end [2025-03-25 02:32:17] Production.INFO: ProcessCDR(1,14756451,1,1,2) [2025-03-25 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756451', 'tblTempUsageDetail_20' ) start [2025-03-25 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756451', 'tblTempUsageDetail_20' ) end [2025-03-25 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:32:21] Production.INFO: ==16803== Releasing lock... [2025-03-25 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:33:06 [end_date_ymd] => 2025-03-25 02:33:06 [RateCDR] => 1 ) [2025-03-25 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:33:06' and `end` < '2025-03-25 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:33:18] Production.INFO: count ==415 [2025-03-25 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:33:06 - End Time 2025-03-25 02:33:06 [2025-03-25 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756456', 'tblTempUsageDetail_20' ) start [2025-03-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756456', 'tblTempUsageDetail_20' ) end [2025-03-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756456', 'tblTempVendorCDR_20' ) start [2025-03-25 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756456', 'tblTempVendorCDR_20' ) end [2025-03-25 02:33:18] Production.INFO: ProcessCDR(1,14756456,1,1,2) [2025-03-25 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756456', 'tblTempUsageDetail_20' ) start [2025-03-25 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756456', 'tblTempUsageDetail_20' ) end [2025-03-25 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:33:22] Production.INFO: ==16894== Releasing lock... [2025-03-25 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:34:05 [end_date_ymd] => 2025-03-25 02:34:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 23:34:05' and `end` < '2025-03-25 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-03-25 02:34:18] Production.INFO: count ==415 [2025-03-25 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:34:05 - End Time 2025-03-25 02:34:05 [2025-03-25 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756461', 'tblTempUsageDetail_20' ) start [2025-03-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756461', 'tblTempUsageDetail_20' ) end [2025-03-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756461', 'tblTempVendorCDR_20' ) start [2025-03-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756461', 'tblTempVendorCDR_20' ) end [2025-03-25 02:34:18] Production.INFO: ProcessCDR(1,14756461,1,1,2) [2025-03-25 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756461', 'tblTempUsageDetail_20' ) start [2025-03-25 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756461', 'tblTempUsageDetail_20' ) end [2025-03-25 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:34:22] Production.INFO: ==16982== Releasing lock... [2025-03-25 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:35:05 [end_date_ymd] => 2025-03-25 02:35:05 [RateCDR] => 1 ) [2025-03-25 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-03-24 23:35:05' and `end` < '2025-03-25 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-03-25 02:35:18] Production.INFO: count ==415 [2025-03-25 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:35:05 - End Time 2025-03-25 02:35:05 [2025-03-25 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756466', 'tblTempUsageDetail_20' ) start [2025-03-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756466', 'tblTempUsageDetail_20' ) end [2025-03-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756466', 'tblTempVendorCDR_20' ) start [2025-03-25 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756466', 'tblTempVendorCDR_20' ) end [2025-03-25 02:35:18] Production.INFO: ProcessCDR(1,14756466,1,1,2) [2025-03-25 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756466', 'tblTempUsageDetail_20' ) start [2025-03-25 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756466', 'tblTempUsageDetail_20' ) end [2025-03-25 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:35:22] Production.INFO: ==17116== Releasing lock... [2025-03-25 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:35:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:36:06 [end_date_ymd] => 2025-03-25 02:36:06 [RateCDR] => 1 ) [2025-03-25 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:36:06' and `end` < '2025-03-25 02: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-03-25 02:36:18] Production.INFO: count ==415 [2025-03-25 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:36:06 - End Time 2025-03-25 02:36:06 [2025-03-25 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756471', 'tblTempUsageDetail_20' ) start [2025-03-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756471', 'tblTempUsageDetail_20' ) end [2025-03-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756471', 'tblTempVendorCDR_20' ) start [2025-03-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756471', 'tblTempVendorCDR_20' ) end [2025-03-25 02:36:18] Production.INFO: ProcessCDR(1,14756471,1,1,2) [2025-03-25 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756471', 'tblTempUsageDetail_20' ) start [2025-03-25 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756471', 'tblTempUsageDetail_20' ) end [2025-03-25 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:36:22] Production.INFO: ==17205== Releasing lock... [2025-03-25 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:37:06 [end_date_ymd] => 2025-03-25 02:37:06 [RateCDR] => 1 ) [2025-03-25 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:37:06' and `end` < '2025-03-25 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:37:18] Production.INFO: count ==412 [2025-03-25 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:37:06 - End Time 2025-03-25 02:37:06 [2025-03-25 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756476', 'tblTempUsageDetail_20' ) start [2025-03-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756476', 'tblTempUsageDetail_20' ) end [2025-03-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756476', 'tblTempVendorCDR_20' ) start [2025-03-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756476', 'tblTempVendorCDR_20' ) end [2025-03-25 02:37:18] Production.INFO: ProcessCDR(1,14756476,1,1,2) [2025-03-25 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756476', 'tblTempUsageDetail_20' ) start [2025-03-25 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756476', 'tblTempUsageDetail_20' ) end [2025-03-25 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:37:22] Production.INFO: ==17302== Releasing lock... [2025-03-25 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:38:05 [end_date_ymd] => 2025-03-25 02:38:05 [RateCDR] => 1 ) [2025-03-25 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:38:05' and `end` < '2025-03-25 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:38:18] Production.INFO: count ==401 [2025-03-25 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:38:05 - End Time 2025-03-25 02:38:05 [2025-03-25 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756481', 'tblTempUsageDetail_20' ) start [2025-03-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756481', 'tblTempUsageDetail_20' ) end [2025-03-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756481', 'tblTempVendorCDR_20' ) start [2025-03-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756481', 'tblTempVendorCDR_20' ) end [2025-03-25 02:38:18] Production.INFO: ProcessCDR(1,14756481,1,1,2) [2025-03-25 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756481', 'tblTempUsageDetail_20' ) start [2025-03-25 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756481', 'tblTempUsageDetail_20' ) end [2025-03-25 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:38:22] Production.INFO: ==17407== Releasing lock... [2025-03-25 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:39:06 [end_date_ymd] => 2025-03-25 02:39:06 [RateCDR] => 1 ) [2025-03-25 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:39:06' and `end` < '2025-03-25 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:39:18] Production.INFO: count ==403 [2025-03-25 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:39:06 - End Time 2025-03-25 02:39:06 [2025-03-25 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756486', 'tblTempUsageDetail_20' ) start [2025-03-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756486', 'tblTempUsageDetail_20' ) end [2025-03-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756486', 'tblTempVendorCDR_20' ) start [2025-03-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756486', 'tblTempVendorCDR_20' ) end [2025-03-25 02:39:18] Production.INFO: ProcessCDR(1,14756486,1,1,2) [2025-03-25 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756486', 'tblTempUsageDetail_20' ) start [2025-03-25 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756486', 'tblTempUsageDetail_20' ) end [2025-03-25 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:39:22] Production.INFO: ==17518== Releasing lock... [2025-03-25 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:40:06 [end_date_ymd] => 2025-03-25 02:40:06 [RateCDR] => 1 ) [2025-03-25 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:40:06' and `end` < '2025-03-25 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:40:19] Production.INFO: count ==405 [2025-03-25 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:40:06 - End Time 2025-03-25 02:40:06 [2025-03-25 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756491', 'tblTempUsageDetail_20' ) start [2025-03-25 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756491', 'tblTempUsageDetail_20' ) end [2025-03-25 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756491', 'tblTempVendorCDR_20' ) start [2025-03-25 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756491', 'tblTempVendorCDR_20' ) end [2025-03-25 02:40:19] Production.INFO: ProcessCDR(1,14756491,1,1,2) [2025-03-25 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756491', 'tblTempUsageDetail_20' ) start [2025-03-25 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756491', 'tblTempUsageDetail_20' ) end [2025-03-25 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:40:23] Production.INFO: ==17627== Releasing lock... [2025-03-25 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:40:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:41:06 [end_date_ymd] => 2025-03-25 02:41:06 [RateCDR] => 1 ) [2025-03-25 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:41:06' and `end` < '2025-03-25 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:41:19] Production.INFO: count ==405 [2025-03-25 02:41:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:41:06 - End Time 2025-03-25 02:41:06 [2025-03-25 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756497', 'tblTempUsageDetail_20' ) start [2025-03-25 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756497', 'tblTempUsageDetail_20' ) end [2025-03-25 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756497', 'tblTempVendorCDR_20' ) start [2025-03-25 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756497', 'tblTempVendorCDR_20' ) end [2025-03-25 02:41:19] Production.INFO: ProcessCDR(1,14756497,1,1,2) [2025-03-25 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756497', 'tblTempUsageDetail_20' ) start [2025-03-25 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756497', 'tblTempUsageDetail_20' ) end [2025-03-25 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:41:23] Production.INFO: ==17738== Releasing lock... [2025-03-25 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:41:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:42:06 [end_date_ymd] => 2025-03-25 02:42:06 [RateCDR] => 1 ) [2025-03-25 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:42:06' and `end` < '2025-03-25 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:42:18] Production.INFO: count ==410 [2025-03-25 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:42:06 - End Time 2025-03-25 02:42:06 [2025-03-25 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756502', 'tblTempUsageDetail_20' ) start [2025-03-25 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756502', 'tblTempUsageDetail_20' ) end [2025-03-25 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756502', 'tblTempVendorCDR_20' ) start [2025-03-25 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756502', 'tblTempVendorCDR_20' ) end [2025-03-25 02:42:19] Production.INFO: ProcessCDR(1,14756502,1,1,2) [2025-03-25 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756502', 'tblTempUsageDetail_20' ) start [2025-03-25 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756502', 'tblTempUsageDetail_20' ) end [2025-03-25 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:42:22] Production.INFO: ==17848== Releasing lock... [2025-03-25 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:43:06 [end_date_ymd] => 2025-03-25 02:43:06 [RateCDR] => 1 ) [2025-03-25 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:43:06' and `end` < '2025-03-25 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:43:18] Production.INFO: count ==410 [2025-03-25 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:43:06 - End Time 2025-03-25 02:43:06 [2025-03-25 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756507', 'tblTempUsageDetail_20' ) start [2025-03-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756507', 'tblTempUsageDetail_20' ) end [2025-03-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756507', 'tblTempVendorCDR_20' ) start [2025-03-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756507', 'tblTempVendorCDR_20' ) end [2025-03-25 02:43:18] Production.INFO: ProcessCDR(1,14756507,1,1,2) [2025-03-25 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756507', 'tblTempUsageDetail_20' ) start [2025-03-25 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756507', 'tblTempUsageDetail_20' ) end [2025-03-25 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:43:22] Production.INFO: ==17953== Releasing lock... [2025-03-25 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:44:06 [end_date_ymd] => 2025-03-25 02:44:06 [RateCDR] => 1 ) [2025-03-25 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:44:06' and `end` < '2025-03-25 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:44:18] Production.INFO: count ==415 [2025-03-25 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:44:06 - End Time 2025-03-25 02:44:06 [2025-03-25 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756512', 'tblTempUsageDetail_20' ) start [2025-03-25 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756512', 'tblTempUsageDetail_20' ) end [2025-03-25 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756512', 'tblTempVendorCDR_20' ) start [2025-03-25 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756512', 'tblTempVendorCDR_20' ) end [2025-03-25 02:44:18] Production.INFO: ProcessCDR(1,14756512,1,1,2) [2025-03-25 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756512', 'tblTempUsageDetail_20' ) start [2025-03-25 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756512', 'tblTempUsageDetail_20' ) end [2025-03-25 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:44:22] Production.INFO: ==18060== Releasing lock... [2025-03-25 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:44:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:45:06 [end_date_ymd] => 2025-03-25 02:45:06 [RateCDR] => 1 ) [2025-03-25 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:45:06' and `end` < '2025-03-25 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:45:18] Production.INFO: count ==414 [2025-03-25 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:45:06 - End Time 2025-03-25 02:45:06 [2025-03-25 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756517', 'tblTempUsageDetail_20' ) start [2025-03-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756517', 'tblTempUsageDetail_20' ) end [2025-03-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756517', 'tblTempVendorCDR_20' ) start [2025-03-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756517', 'tblTempVendorCDR_20' ) end [2025-03-25 02:45:18] Production.INFO: ProcessCDR(1,14756517,1,1,2) [2025-03-25 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756517', 'tblTempUsageDetail_20' ) start [2025-03-25 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756517', 'tblTempUsageDetail_20' ) end [2025-03-25 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:45:22] Production.INFO: ==18172== Releasing lock... [2025-03-25 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:45:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:46:06 [end_date_ymd] => 2025-03-25 02:46:06 [RateCDR] => 1 ) [2025-03-25 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:46:06' and `end` < '2025-03-25 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:46:18] Production.INFO: count ==414 [2025-03-25 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:46:06 - End Time 2025-03-25 02:46:06 [2025-03-25 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756522', 'tblTempUsageDetail_20' ) start [2025-03-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756522', 'tblTempUsageDetail_20' ) end [2025-03-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756522', 'tblTempVendorCDR_20' ) start [2025-03-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756522', 'tblTempVendorCDR_20' ) end [2025-03-25 02:46:18] Production.INFO: ProcessCDR(1,14756522,1,1,2) [2025-03-25 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756522', 'tblTempUsageDetail_20' ) start [2025-03-25 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756522', 'tblTempUsageDetail_20' ) end [2025-03-25 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:46:22] Production.INFO: ==18278== Releasing lock... [2025-03-25 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:47:07 [end_date_ymd] => 2025-03-25 02:47:07 [RateCDR] => 1 ) [2025-03-25 02:47:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:47:07' and `end` < '2025-03-25 02:47: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-03-25 02:47:19] Production.INFO: count ==414 [2025-03-25 02:47:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:47:07 - End Time 2025-03-25 02:47:07 [2025-03-25 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756527', 'tblTempUsageDetail_20' ) start [2025-03-25 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756527', 'tblTempUsageDetail_20' ) end [2025-03-25 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756527', 'tblTempVendorCDR_20' ) start [2025-03-25 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756527', 'tblTempVendorCDR_20' ) end [2025-03-25 02:47:19] Production.INFO: ProcessCDR(1,14756527,1,1,2) [2025-03-25 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756527', 'tblTempUsageDetail_20' ) start [2025-03-25 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756527', 'tblTempUsageDetail_20' ) end [2025-03-25 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:47:23] Production.INFO: ==18386== Releasing lock... [2025-03-25 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:48:06 [end_date_ymd] => 2025-03-25 02:48:06 [RateCDR] => 1 ) [2025-03-25 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:48:06' and `end` < '2025-03-25 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:48:18] Production.INFO: count ==414 [2025-03-25 02:48:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:48:06 - End Time 2025-03-25 02:48:06 [2025-03-25 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756532', 'tblTempUsageDetail_20' ) start [2025-03-25 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756532', 'tblTempUsageDetail_20' ) end [2025-03-25 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756532', 'tblTempVendorCDR_20' ) start [2025-03-25 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756532', 'tblTempVendorCDR_20' ) end [2025-03-25 02:48:19] Production.INFO: ProcessCDR(1,14756532,1,1,2) [2025-03-25 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756532', 'tblTempUsageDetail_20' ) start [2025-03-25 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756532', 'tblTempUsageDetail_20' ) end [2025-03-25 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:48:22] Production.INFO: ==18492== Releasing lock... [2025-03-25 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:49:06 [end_date_ymd] => 2025-03-25 02:49:06 [RateCDR] => 1 ) [2025-03-25 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:49:06' and `end` < '2025-03-25 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:49:19] Production.INFO: count ==414 [2025-03-25 02:49:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:49:06 - End Time 2025-03-25 02:49:06 [2025-03-25 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756537', 'tblTempUsageDetail_20' ) start [2025-03-25 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756537', 'tblTempUsageDetail_20' ) end [2025-03-25 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756537', 'tblTempVendorCDR_20' ) start [2025-03-25 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756537', 'tblTempVendorCDR_20' ) end [2025-03-25 02:49:19] Production.INFO: ProcessCDR(1,14756537,1,1,2) [2025-03-25 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756537', 'tblTempUsageDetail_20' ) start [2025-03-25 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756537', 'tblTempUsageDetail_20' ) end [2025-03-25 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:49:23] Production.INFO: ==18594== Releasing lock... [2025-03-25 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:49:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:50:06 [end_date_ymd] => 2025-03-25 02:50:06 [RateCDR] => 1 ) [2025-03-25 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:50:06' and `end` < '2025-03-25 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-03-25 02:50:19] Production.INFO: count ==412 [2025-03-25 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:50:06 - End Time 2025-03-25 02:50:06 [2025-03-25 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756543', 'tblTempUsageDetail_20' ) start [2025-03-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756543', 'tblTempUsageDetail_20' ) end [2025-03-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756543', 'tblTempVendorCDR_20' ) start [2025-03-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756543', 'tblTempVendorCDR_20' ) end [2025-03-25 02:50:19] Production.INFO: ProcessCDR(1,14756543,1,1,2) [2025-03-25 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756543', 'tblTempUsageDetail_20' ) start [2025-03-25 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756543', 'tblTempUsageDetail_20' ) end [2025-03-25 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:50:23] Production.INFO: ==18744== Releasing lock... [2025-03-25 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:50:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:51:06 [end_date_ymd] => 2025-03-25 02:51:06 [RateCDR] => 1 ) [2025-03-25 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:51:06' and `end` < '2025-03-25 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:51:18] Production.INFO: count ==412 [2025-03-25 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:51:06 - End Time 2025-03-25 02:51:06 [2025-03-25 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756548', 'tblTempUsageDetail_20' ) start [2025-03-25 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756548', 'tblTempUsageDetail_20' ) end [2025-03-25 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756548', 'tblTempVendorCDR_20' ) start [2025-03-25 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756548', 'tblTempVendorCDR_20' ) end [2025-03-25 02:51:18] Production.INFO: ProcessCDR(1,14756548,1,1,2) [2025-03-25 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756548', 'tblTempUsageDetail_20' ) start [2025-03-25 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756548', 'tblTempUsageDetail_20' ) end [2025-03-25 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:51:22] Production.INFO: ==18858== Releasing lock... [2025-03-25 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:52:05 [end_date_ymd] => 2025-03-25 02:52:05 [RateCDR] => 1 ) [2025-03-25 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:52:05' and `end` < '2025-03-25 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:52:18] Production.INFO: count ==411 [2025-03-25 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:52:05 - End Time 2025-03-25 02:52:05 [2025-03-25 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756553', 'tblTempUsageDetail_20' ) start [2025-03-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756553', 'tblTempUsageDetail_20' ) end [2025-03-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756553', 'tblTempVendorCDR_20' ) start [2025-03-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756553', 'tblTempVendorCDR_20' ) end [2025-03-25 02:52:18] Production.INFO: ProcessCDR(1,14756553,1,1,2) [2025-03-25 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756553', 'tblTempUsageDetail_20' ) start [2025-03-25 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756553', 'tblTempUsageDetail_20' ) end [2025-03-25 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:52:22] Production.INFO: ==18961== Releasing lock... [2025-03-25 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:52:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:53:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:53:07 [end_date_ymd] => 2025-03-25 02:53:07 [RateCDR] => 1 ) [2025-03-25 02:53:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:53:07' and `end` < '2025-03-25 02:53: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-03-25 02:53:19] Production.INFO: count ==411 [2025-03-25 02:53:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:53:07 - End Time 2025-03-25 02:53:07 [2025-03-25 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756558', 'tblTempUsageDetail_20' ) start [2025-03-25 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756558', 'tblTempUsageDetail_20' ) end [2025-03-25 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756558', 'tblTempVendorCDR_20' ) start [2025-03-25 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756558', 'tblTempVendorCDR_20' ) end [2025-03-25 02:53:19] Production.INFO: ProcessCDR(1,14756558,1,1,2) [2025-03-25 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756558', 'tblTempUsageDetail_20' ) start [2025-03-25 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756558', 'tblTempUsageDetail_20' ) end [2025-03-25 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:53:23] Production.INFO: ==19066== Releasing lock... [2025-03-25 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:53:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:54:06 [end_date_ymd] => 2025-03-25 02:54:06 [RateCDR] => 1 ) [2025-03-25 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:54:06' and `end` < '2025-03-25 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:54:18] Production.INFO: count ==411 [2025-03-25 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:54:06 - End Time 2025-03-25 02:54:06 [2025-03-25 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756563', 'tblTempUsageDetail_20' ) start [2025-03-25 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756563', 'tblTempUsageDetail_20' ) end [2025-03-25 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756563', 'tblTempVendorCDR_20' ) start [2025-03-25 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756563', 'tblTempVendorCDR_20' ) end [2025-03-25 02:54:19] Production.INFO: ProcessCDR(1,14756563,1,1,2) [2025-03-25 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756563', 'tblTempUsageDetail_20' ) start [2025-03-25 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756563', 'tblTempUsageDetail_20' ) end [2025-03-25 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:54:22] Production.INFO: ==19176== Releasing lock... [2025-03-25 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:55:06 [end_date_ymd] => 2025-03-25 02:55:06 [RateCDR] => 1 ) [2025-03-25 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:55:06' and `end` < '2025-03-25 02: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-03-25 02:55:19] Production.INFO: count ==424 [2025-03-25 02:55:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:55:06 - End Time 2025-03-25 02:55:06 [2025-03-25 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756568', 'tblTempUsageDetail_20' ) start [2025-03-25 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756568', 'tblTempUsageDetail_20' ) end [2025-03-25 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756568', 'tblTempVendorCDR_20' ) start [2025-03-25 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756568', 'tblTempVendorCDR_20' ) end [2025-03-25 02:55:19] Production.INFO: ProcessCDR(1,14756568,1,1,2) [2025-03-25 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756568', 'tblTempUsageDetail_20' ) start [2025-03-25 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756568', 'tblTempUsageDetail_20' ) end [2025-03-25 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:55:23] Production.INFO: ==19280== Releasing lock... [2025-03-25 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:55:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:56:06 [end_date_ymd] => 2025-03-25 02:56:06 [RateCDR] => 1 ) [2025-03-25 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:56:06' and `end` < '2025-03-25 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-03-25 02:56:19] Production.INFO: count ==422 [2025-03-25 02:56:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:56:06 - End Time 2025-03-25 02:56:06 [2025-03-25 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756573', 'tblTempUsageDetail_20' ) start [2025-03-25 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756573', 'tblTempUsageDetail_20' ) end [2025-03-25 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756573', 'tblTempVendorCDR_20' ) start [2025-03-25 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756573', 'tblTempVendorCDR_20' ) end [2025-03-25 02:56:19] Production.INFO: ProcessCDR(1,14756573,1,1,2) [2025-03-25 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756573', 'tblTempUsageDetail_20' ) start [2025-03-25 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756573', 'tblTempUsageDetail_20' ) end [2025-03-25 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:56:22] Production.INFO: ==19387== Releasing lock... [2025-03-25 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:57:05 [end_date_ymd] => 2025-03-25 02:57:05 [RateCDR] => 1 ) [2025-03-25 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:57:05' and `end` < '2025-03-25 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:57:18] Production.INFO: count ==431 [2025-03-25 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-24 23:57:05 - End Time 2025-03-25 02:57:05 [2025-03-25 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756578', 'tblTempUsageDetail_20' ) start [2025-03-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756578', 'tblTempUsageDetail_20' ) end [2025-03-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756578', 'tblTempVendorCDR_20' ) start [2025-03-25 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756578', 'tblTempVendorCDR_20' ) end [2025-03-25 02:57:18] Production.INFO: ProcessCDR(1,14756578,1,1,2) [2025-03-25 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756578', 'tblTempUsageDetail_20' ) start [2025-03-25 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756578', 'tblTempUsageDetail_20' ) end [2025-03-25 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:57:22] Production.INFO: ==19488== Releasing lock... [2025-03-25 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:57:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:58:06 [end_date_ymd] => 2025-03-25 02:58:06 [RateCDR] => 1 ) [2025-03-25 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:58:06' and `end` < '2025-03-25 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:58:19] Production.INFO: count ==430 [2025-03-25 02:58:19] Production.ERROR: pbx CDR StartTime 2025-03-24 23:58:06 - End Time 2025-03-25 02:58:06 [2025-03-25 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756583', 'tblTempUsageDetail_20' ) start [2025-03-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756583', 'tblTempUsageDetail_20' ) end [2025-03-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756583', 'tblTempVendorCDR_20' ) start [2025-03-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756583', 'tblTempVendorCDR_20' ) end [2025-03-25 02:58:19] Production.INFO: ProcessCDR(1,14756583,1,1,2) [2025-03-25 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756583', 'tblTempUsageDetail_20' ) start [2025-03-25 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756583', 'tblTempUsageDetail_20' ) end [2025-03-25 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:58:22] Production.INFO: ==19600== Releasing lock... [2025-03-25 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:58:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-24 23:59:05 [end_date_ymd] => 2025-03-25 02:59:05 [RateCDR] => 1 ) [2025-03-25 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-24 23:59:05' and `end` < '2025-03-25 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 02:59:17] Production.INFO: count ==430 [2025-03-25 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-24 23:59:05 - End Time 2025-03-25 02:59:05 [2025-03-25 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756588', 'tblTempUsageDetail_20' ) start [2025-03-25 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756588', 'tblTempUsageDetail_20' ) end [2025-03-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756588', 'tblTempVendorCDR_20' ) start [2025-03-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756588', 'tblTempVendorCDR_20' ) end [2025-03-25 02:59:18] Production.INFO: ProcessCDR(1,14756588,1,1,2) [2025-03-25 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756588', 'tblTempUsageDetail_20' ) start [2025-03-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756588', 'tblTempUsageDetail_20' ) end [2025-03-25 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 02:59:21] Production.INFO: ==19710== Releasing lock... [2025-03-25 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 02:59:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:00:07 [end_date_ymd] => 2025-03-25 03:00:07 [RateCDR] => 1 ) [2025-03-25 03:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:00:07' and `end` < '2025-03-25 03:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:00:19] Production.INFO: count ==430 [2025-03-25 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:00:07 - End Time 2025-03-25 03:00:07 [2025-03-25 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756594', 'tblTempUsageDetail_20' ) start [2025-03-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756594', 'tblTempUsageDetail_20' ) end [2025-03-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756594', 'tblTempVendorCDR_20' ) start [2025-03-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756594', 'tblTempVendorCDR_20' ) end [2025-03-25 03:00:19] Production.INFO: ProcessCDR(1,14756594,1,1,2) [2025-03-25 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756594', 'tblTempUsageDetail_20' ) start [2025-03-25 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756594', 'tblTempUsageDetail_20' ) end [2025-03-25 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:00:23] Production.INFO: ==19820== Releasing lock... [2025-03-25 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:00:23] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:01:05 [end_date_ymd] => 2025-03-25 03:01:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:01:05' and `end` < '2025-03-25 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:01:18] Production.INFO: count ==430 [2025-03-25 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:01:05 - End Time 2025-03-25 03:01:05 [2025-03-25 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756599', 'tblTempUsageDetail_20' ) start [2025-03-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756599', 'tblTempUsageDetail_20' ) end [2025-03-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756599', 'tblTempVendorCDR_20' ) start [2025-03-25 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756599', 'tblTempVendorCDR_20' ) end [2025-03-25 03:01:18] Production.INFO: ProcessCDR(1,14756599,1,1,2) [2025-03-25 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756599', 'tblTempUsageDetail_20' ) start [2025-03-25 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756599', 'tblTempUsageDetail_20' ) end [2025-03-25 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:01:22] Production.INFO: ==19939== Releasing lock... [2025-03-25 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:01:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:02:05 [end_date_ymd] => 2025-03-25 03:02:05 [RateCDR] => 1 ) [2025-03-25 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:02:05' and `end` < '2025-03-25 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:02:17] Production.INFO: count ==430 [2025-03-25 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:02:05 - End Time 2025-03-25 03:02:05 [2025-03-25 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756604', 'tblTempUsageDetail_20' ) start [2025-03-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756604', 'tblTempUsageDetail_20' ) end [2025-03-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756604', 'tblTempVendorCDR_20' ) start [2025-03-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756604', 'tblTempVendorCDR_20' ) end [2025-03-25 03:02:18] Production.INFO: ProcessCDR(1,14756604,1,1,2) [2025-03-25 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756604', 'tblTempUsageDetail_20' ) start [2025-03-25 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756604', 'tblTempUsageDetail_20' ) end [2025-03-25 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:02:21] Production.INFO: ==20124== Releasing lock... [2025-03-25 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:02:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:03:05 [end_date_ymd] => 2025-03-25 03:03:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:03:05' and `end` < '2025-03-25 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-03-25 03:03:18] Production.INFO: count ==429 [2025-03-25 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:03:05 - End Time 2025-03-25 03:03:05 [2025-03-25 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756609', 'tblTempUsageDetail_20' ) start [2025-03-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756609', 'tblTempUsageDetail_20' ) end [2025-03-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756609', 'tblTempVendorCDR_20' ) start [2025-03-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756609', 'tblTempVendorCDR_20' ) end [2025-03-25 03:03:18] Production.INFO: ProcessCDR(1,14756609,1,1,2) [2025-03-25 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756609', 'tblTempUsageDetail_20' ) start [2025-03-25 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756609', 'tblTempUsageDetail_20' ) end [2025-03-25 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:03:21] Production.INFO: ==20231== Releasing lock... [2025-03-25 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:04:05 [end_date_ymd] => 2025-03-25 03:04:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:04:05' and `end` < '2025-03-25 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-03-25 03:04:17] Production.INFO: count ==426 [2025-03-25 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:04:05 - End Time 2025-03-25 03:04:05 [2025-03-25 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756614', 'tblTempUsageDetail_20' ) start [2025-03-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756614', 'tblTempUsageDetail_20' ) end [2025-03-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756614', 'tblTempVendorCDR_20' ) start [2025-03-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756614', 'tblTempVendorCDR_20' ) end [2025-03-25 03:04:18] Production.INFO: ProcessCDR(1,14756614,1,1,2) [2025-03-25 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756614', 'tblTempUsageDetail_20' ) start [2025-03-25 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756614', 'tblTempUsageDetail_20' ) end [2025-03-25 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:04:21] Production.INFO: ==20328== Releasing lock... [2025-03-25 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:05:06 [end_date_ymd] => 2025-03-25 03:05:06 [RateCDR] => 1 ) [2025-03-25 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:05:06' and `end` < '2025-03-25 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:05:18] Production.INFO: count ==432 [2025-03-25 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:05:06 - End Time 2025-03-25 03:05:06 [2025-03-25 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756619', 'tblTempUsageDetail_20' ) start [2025-03-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756619', 'tblTempUsageDetail_20' ) end [2025-03-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756619', 'tblTempVendorCDR_20' ) start [2025-03-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756619', 'tblTempVendorCDR_20' ) end [2025-03-25 03:05:18] Production.INFO: ProcessCDR(1,14756619,1,1,2) [2025-03-25 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756619', 'tblTempUsageDetail_20' ) start [2025-03-25 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756619', 'tblTempUsageDetail_20' ) end [2025-03-25 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:05:22] Production.INFO: ==20416== Releasing lock... [2025-03-25 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:06:05 [end_date_ymd] => 2025-03-25 03:06:05 [RateCDR] => 1 ) [2025-03-25 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:06:05' and `end` < '2025-03-25 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:06:17] Production.INFO: count ==432 [2025-03-25 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:06:05 - End Time 2025-03-25 03:06:05 [2025-03-25 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756624', 'tblTempUsageDetail_20' ) start [2025-03-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756624', 'tblTempUsageDetail_20' ) end [2025-03-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756624', 'tblTempVendorCDR_20' ) start [2025-03-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756624', 'tblTempVendorCDR_20' ) end [2025-03-25 03:06:18] Production.INFO: ProcessCDR(1,14756624,1,1,2) [2025-03-25 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756624', 'tblTempUsageDetail_20' ) start [2025-03-25 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756624', 'tblTempUsageDetail_20' ) end [2025-03-25 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:06:21] Production.INFO: ==20617== Releasing lock... [2025-03-25 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:07:05 [end_date_ymd] => 2025-03-25 03:07:05 [RateCDR] => 1 ) [2025-03-25 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:07:05' and `end` < '2025-03-25 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:07:18] Production.INFO: count ==432 [2025-03-25 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:07:05 - End Time 2025-03-25 03:07:05 [2025-03-25 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756629', 'tblTempUsageDetail_20' ) start [2025-03-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756629', 'tblTempUsageDetail_20' ) end [2025-03-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756629', 'tblTempVendorCDR_20' ) start [2025-03-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756629', 'tblTempVendorCDR_20' ) end [2025-03-25 03:07:18] Production.INFO: ProcessCDR(1,14756629,1,1,2) [2025-03-25 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756629', 'tblTempUsageDetail_20' ) start [2025-03-25 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756629', 'tblTempUsageDetail_20' ) end [2025-03-25 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:07:21] Production.INFO: ==20701== Releasing lock... [2025-03-25 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:08:05 [end_date_ymd] => 2025-03-25 03:08:05 [RateCDR] => 1 ) [2025-03-25 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:08:05' and `end` < '2025-03-25 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:08:17] Production.INFO: count ==447 [2025-03-25 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-25 00:08:05 - End Time 2025-03-25 03:08:05 [2025-03-25 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756634', 'tblTempUsageDetail_20' ) start [2025-03-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756634', 'tblTempUsageDetail_20' ) end [2025-03-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756634', 'tblTempVendorCDR_20' ) start [2025-03-25 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756634', 'tblTempVendorCDR_20' ) end [2025-03-25 03:08:17] Production.INFO: ProcessCDR(1,14756634,1,1,2) [2025-03-25 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756634', 'tblTempUsageDetail_20' ) start [2025-03-25 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756634', 'tblTempUsageDetail_20' ) end [2025-03-25 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:08:21] Production.INFO: ==20786== Releasing lock... [2025-03-25 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:09:05 [end_date_ymd] => 2025-03-25 03:09:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:09:05' and `end` < '2025-03-25 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-03-25 03:09:18] Production.INFO: count ==473 [2025-03-25 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:09:05 - End Time 2025-03-25 03:09:05 [2025-03-25 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756639', 'tblTempUsageDetail_20' ) start [2025-03-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756639', 'tblTempUsageDetail_20' ) end [2025-03-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756639', 'tblTempVendorCDR_20' ) start [2025-03-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756639', 'tblTempVendorCDR_20' ) end [2025-03-25 03:09:18] Production.INFO: ProcessCDR(1,14756639,1,1,2) [2025-03-25 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756639', 'tblTempUsageDetail_20' ) start [2025-03-25 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756639', 'tblTempUsageDetail_20' ) end [2025-03-25 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:09:21] Production.INFO: ==20948== Releasing lock... [2025-03-25 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:09:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:10:06 [end_date_ymd] => 2025-03-25 03:10:06 [RateCDR] => 1 ) [2025-03-25 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:10:06' and `end` < '2025-03-25 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:10:18] Production.INFO: count ==466 [2025-03-25 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:10:06 - End Time 2025-03-25 03:10:06 [2025-03-25 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756645', 'tblTempUsageDetail_20' ) start [2025-03-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756645', 'tblTempUsageDetail_20' ) end [2025-03-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756645', 'tblTempVendorCDR_20' ) start [2025-03-25 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756645', 'tblTempVendorCDR_20' ) end [2025-03-25 03:10:18] Production.INFO: ProcessCDR(1,14756645,1,1,2) [2025-03-25 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756645', 'tblTempUsageDetail_20' ) start [2025-03-25 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756645', 'tblTempUsageDetail_20' ) end [2025-03-25 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:10:22] Production.INFO: ==21034== Releasing lock... [2025-03-25 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:10:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:11:05 [end_date_ymd] => 2025-03-25 03:11:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:11:05' and `end` < '2025-03-25 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:11:18] Production.INFO: count ==458 [2025-03-25 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:11:05 - End Time 2025-03-25 03:11:05 [2025-03-25 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756646', 'tblTempUsageDetail_20' ) start [2025-03-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756646', 'tblTempUsageDetail_20' ) end [2025-03-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756646', 'tblTempVendorCDR_20' ) start [2025-03-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756646', 'tblTempVendorCDR_20' ) end [2025-03-25 03:11:18] Production.INFO: ProcessCDR(1,14756646,1,1,2) [2025-03-25 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756646', 'tblTempUsageDetail_20' ) start [2025-03-25 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756646', 'tblTempUsageDetail_20' ) end [2025-03-25 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:11:21] Production.INFO: ==21119== Releasing lock... [2025-03-25 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:12:05 [end_date_ymd] => 2025-03-25 03:12:05 [RateCDR] => 1 ) [2025-03-25 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:12:05' and `end` < '2025-03-25 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:12:18] Production.INFO: count ==458 [2025-03-25 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:12:05 - End Time 2025-03-25 03:12:05 [2025-03-25 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756655', 'tblTempUsageDetail_20' ) start [2025-03-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756655', 'tblTempUsageDetail_20' ) end [2025-03-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756655', 'tblTempVendorCDR_20' ) start [2025-03-25 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756655', 'tblTempVendorCDR_20' ) end [2025-03-25 03:12:18] Production.INFO: ProcessCDR(1,14756655,1,1,2) [2025-03-25 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756655', 'tblTempUsageDetail_20' ) start [2025-03-25 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756655', 'tblTempUsageDetail_20' ) end [2025-03-25 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:12:21] Production.INFO: ==21204== Releasing lock... [2025-03-25 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:13:05 [end_date_ymd] => 2025-03-25 03:13:05 [RateCDR] => 1 ) [2025-03-25 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:13:05' and `end` < '2025-03-25 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:13:18] Production.INFO: count ==460 [2025-03-25 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:13:05 - End Time 2025-03-25 03:13:05 [2025-03-25 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756660', 'tblTempUsageDetail_20' ) start [2025-03-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756660', 'tblTempUsageDetail_20' ) end [2025-03-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756660', 'tblTempVendorCDR_20' ) start [2025-03-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756660', 'tblTempVendorCDR_20' ) end [2025-03-25 03:13:18] Production.INFO: ProcessCDR(1,14756660,1,1,2) [2025-03-25 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756660', 'tblTempUsageDetail_20' ) start [2025-03-25 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756660', 'tblTempUsageDetail_20' ) end [2025-03-25 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:13:23] Production.INFO: ==21367== Releasing lock... [2025-03-25 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:13:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:14:06 [end_date_ymd] => 2025-03-25 03:14:06 [RateCDR] => 1 ) [2025-03-25 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:14:06' and `end` < '2025-03-25 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:14:18] Production.INFO: count ==460 [2025-03-25 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:14:06 - End Time 2025-03-25 03:14:06 [2025-03-25 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756665', 'tblTempUsageDetail_20' ) start [2025-03-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756665', 'tblTempUsageDetail_20' ) end [2025-03-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756665', 'tblTempVendorCDR_20' ) start [2025-03-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756665', 'tblTempVendorCDR_20' ) end [2025-03-25 03:14:18] Production.INFO: ProcessCDR(1,14756665,1,1,2) [2025-03-25 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756665', 'tblTempUsageDetail_20' ) start [2025-03-25 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756665', 'tblTempUsageDetail_20' ) end [2025-03-25 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:14:22] Production.INFO: ==21452== Releasing lock... [2025-03-25 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:15:05 [end_date_ymd] => 2025-03-25 03:15:05 [RateCDR] => 1 ) [2025-03-25 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:15:05' and `end` < '2025-03-25 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:15:18] Production.INFO: count ==459 [2025-03-25 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:15:05 - End Time 2025-03-25 03:15:05 [2025-03-25 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756670', 'tblTempUsageDetail_20' ) start [2025-03-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756670', 'tblTempUsageDetail_20' ) end [2025-03-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756670', 'tblTempVendorCDR_20' ) start [2025-03-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756670', 'tblTempVendorCDR_20' ) end [2025-03-25 03:15:18] Production.INFO: ProcessCDR(1,14756670,1,1,2) [2025-03-25 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756670', 'tblTempUsageDetail_20' ) start [2025-03-25 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756670', 'tblTempUsageDetail_20' ) end [2025-03-25 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:15:21] Production.INFO: ==21541== Releasing lock... [2025-03-25 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:16:05 [end_date_ymd] => 2025-03-25 03:16:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:16:05' and `end` < '2025-03-25 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-03-25 03:16:18] Production.INFO: count ==459 [2025-03-25 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:16:05 - End Time 2025-03-25 03:16:05 [2025-03-25 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756675', 'tblTempUsageDetail_20' ) start [2025-03-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756675', 'tblTempUsageDetail_20' ) end [2025-03-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756675', 'tblTempVendorCDR_20' ) start [2025-03-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756675', 'tblTempVendorCDR_20' ) end [2025-03-25 03:16:18] Production.INFO: ProcessCDR(1,14756675,1,1,2) [2025-03-25 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756675', 'tblTempUsageDetail_20' ) start [2025-03-25 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756675', 'tblTempUsageDetail_20' ) end [2025-03-25 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:16:21] Production.INFO: ==21626== Releasing lock... [2025-03-25 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:17:05 [end_date_ymd] => 2025-03-25 03:17:05 [RateCDR] => 1 ) [2025-03-25 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:17:05' and `end` < '2025-03-25 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:17:18] Production.INFO: count ==459 [2025-03-25 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:17:05 - End Time 2025-03-25 03:17:05 [2025-03-25 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756680', 'tblTempUsageDetail_20' ) start [2025-03-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756680', 'tblTempUsageDetail_20' ) end [2025-03-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756680', 'tblTempVendorCDR_20' ) start [2025-03-25 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756680', 'tblTempVendorCDR_20' ) end [2025-03-25 03:17:18] Production.INFO: ProcessCDR(1,14756680,1,1,2) [2025-03-25 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756680', 'tblTempUsageDetail_20' ) start [2025-03-25 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756680', 'tblTempUsageDetail_20' ) end [2025-03-25 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:17:21] Production.INFO: ==21797== Releasing lock... [2025-03-25 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:18:06 [end_date_ymd] => 2025-03-25 03:18:06 [RateCDR] => 1 ) [2025-03-25 03:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:18:06' and `end` < '2025-03-25 03: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-03-25 03:18:18] Production.INFO: count ==459 [2025-03-25 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:18:06 - End Time 2025-03-25 03:18:06 [2025-03-25 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756685', 'tblTempUsageDetail_20' ) start [2025-03-25 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756685', 'tblTempUsageDetail_20' ) end [2025-03-25 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756685', 'tblTempVendorCDR_20' ) start [2025-03-25 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756685', 'tblTempVendorCDR_20' ) end [2025-03-25 03:18:18] Production.INFO: ProcessCDR(1,14756685,1,1,2) [2025-03-25 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756685', 'tblTempUsageDetail_20' ) start [2025-03-25 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756685', 'tblTempUsageDetail_20' ) end [2025-03-25 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:18:21] Production.INFO: ==21880== Releasing lock... [2025-03-25 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:19:05 [end_date_ymd] => 2025-03-25 03:19:05 [RateCDR] => 1 ) [2025-03-25 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:19:05' and `end` < '2025-03-25 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:19:17] Production.INFO: count ==459 [2025-03-25 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:19:05 - End Time 2025-03-25 03:19:05 [2025-03-25 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756690', 'tblTempUsageDetail_20' ) start [2025-03-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756690', 'tblTempUsageDetail_20' ) end [2025-03-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756690', 'tblTempVendorCDR_20' ) start [2025-03-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756690', 'tblTempVendorCDR_20' ) end [2025-03-25 03:19:18] Production.INFO: ProcessCDR(1,14756690,1,1,2) [2025-03-25 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756690', 'tblTempUsageDetail_20' ) start [2025-03-25 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756690', 'tblTempUsageDetail_20' ) end [2025-03-25 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:19:21] Production.INFO: ==21967== Releasing lock... [2025-03-25 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:20:06 [end_date_ymd] => 2025-03-25 03:20:06 [RateCDR] => 1 ) [2025-03-25 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:20:06' and `end` < '2025-03-25 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:20:18] Production.INFO: count ==451 [2025-03-25 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:20:06 - End Time 2025-03-25 03:20:06 [2025-03-25 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756695', 'tblTempUsageDetail_20' ) start [2025-03-25 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756695', 'tblTempUsageDetail_20' ) end [2025-03-25 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756695', 'tblTempVendorCDR_20' ) start [2025-03-25 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756695', 'tblTempVendorCDR_20' ) end [2025-03-25 03:20:18] Production.INFO: ProcessCDR(1,14756695,1,1,2) [2025-03-25 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756695', 'tblTempUsageDetail_20' ) start [2025-03-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756695', 'tblTempUsageDetail_20' ) end [2025-03-25 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:20:22] Production.INFO: ==22055== Releasing lock... [2025-03-25 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:21:05 [end_date_ymd] => 2025-03-25 03:21:05 [RateCDR] => 1 ) [2025-03-25 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:21:05' and `end` < '2025-03-25 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:21:17] Production.INFO: count ==451 [2025-03-25 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-25 00:21:05 - End Time 2025-03-25 03:21:05 [2025-03-25 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756701', 'tblTempUsageDetail_20' ) start [2025-03-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756701', 'tblTempUsageDetail_20' ) end [2025-03-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756701', 'tblTempVendorCDR_20' ) start [2025-03-25 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756701', 'tblTempVendorCDR_20' ) end [2025-03-25 03:21:17] Production.INFO: ProcessCDR(1,14756701,1,1,2) [2025-03-25 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756701', 'tblTempUsageDetail_20' ) start [2025-03-25 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756701', 'tblTempUsageDetail_20' ) end [2025-03-25 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:21:21] Production.INFO: ==22145== Releasing lock... [2025-03-25 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:22:06 [end_date_ymd] => 2025-03-25 03:22:06 [RateCDR] => 1 ) [2025-03-25 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:22:06' and `end` < '2025-03-25 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:22:18] Production.INFO: count ==456 [2025-03-25 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:22:06 - End Time 2025-03-25 03:22:06 [2025-03-25 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756706', 'tblTempUsageDetail_20' ) start [2025-03-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756706', 'tblTempUsageDetail_20' ) end [2025-03-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756706', 'tblTempVendorCDR_20' ) start [2025-03-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756706', 'tblTempVendorCDR_20' ) end [2025-03-25 03:22:18] Production.INFO: ProcessCDR(1,14756706,1,1,2) [2025-03-25 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756706', 'tblTempUsageDetail_20' ) start [2025-03-25 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756706', 'tblTempUsageDetail_20' ) end [2025-03-25 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:22:22] Production.INFO: ==22232== Releasing lock... [2025-03-25 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:22:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:23:05 [end_date_ymd] => 2025-03-25 03:23:05 [RateCDR] => 1 ) [2025-03-25 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:23:05' and `end` < '2025-03-25 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:23:18] Production.INFO: count ==456 [2025-03-25 03:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:23:05 - End Time 2025-03-25 03:23:05 [2025-03-25 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756711', 'tblTempUsageDetail_20' ) start [2025-03-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756711', 'tblTempUsageDetail_20' ) end [2025-03-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756711', 'tblTempVendorCDR_20' ) start [2025-03-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756711', 'tblTempVendorCDR_20' ) end [2025-03-25 03:23:18] Production.INFO: ProcessCDR(1,14756711,1,1,2) [2025-03-25 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756711', 'tblTempUsageDetail_20' ) start [2025-03-25 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756711', 'tblTempUsageDetail_20' ) end [2025-03-25 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:23:21] Production.INFO: ==22359== Releasing lock... [2025-03-25 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:24:06 [end_date_ymd] => 2025-03-25 03:24:06 [RateCDR] => 1 ) [2025-03-25 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:24:06' and `end` < '2025-03-25 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:24:18] Production.INFO: count ==455 [2025-03-25 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:24:06 - End Time 2025-03-25 03:24:06 [2025-03-25 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756716', 'tblTempUsageDetail_20' ) start [2025-03-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756716', 'tblTempUsageDetail_20' ) end [2025-03-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756716', 'tblTempVendorCDR_20' ) start [2025-03-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756716', 'tblTempVendorCDR_20' ) end [2025-03-25 03:24:18] Production.INFO: ProcessCDR(1,14756716,1,1,2) [2025-03-25 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756716', 'tblTempUsageDetail_20' ) start [2025-03-25 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756716', 'tblTempUsageDetail_20' ) end [2025-03-25 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:24:21] Production.INFO: ==22457== Releasing lock... [2025-03-25 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:25:05 [end_date_ymd] => 2025-03-25 03:25:05 [RateCDR] => 1 ) [2025-03-25 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:25:05' and `end` < '2025-03-25 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:25:17] Production.INFO: count ==456 [2025-03-25 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-25 00:25:05 - End Time 2025-03-25 03:25:05 [2025-03-25 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756721', 'tblTempUsageDetail_20' ) start [2025-03-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756721', 'tblTempUsageDetail_20' ) end [2025-03-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756721', 'tblTempVendorCDR_20' ) start [2025-03-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756721', 'tblTempVendorCDR_20' ) end [2025-03-25 03:25:17] Production.INFO: ProcessCDR(1,14756721,1,1,2) [2025-03-25 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756721', 'tblTempUsageDetail_20' ) start [2025-03-25 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756721', 'tblTempUsageDetail_20' ) end [2025-03-25 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:25:22] Production.INFO: ==22543== Releasing lock... [2025-03-25 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:26:05 [end_date_ymd] => 2025-03-25 03:26:05 [RateCDR] => 1 ) [2025-03-25 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:26:05' and `end` < '2025-03-25 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:26:18] Production.INFO: count ==455 [2025-03-25 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:26:05 - End Time 2025-03-25 03:26:05 [2025-03-25 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756726', 'tblTempUsageDetail_20' ) start [2025-03-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756726', 'tblTempUsageDetail_20' ) end [2025-03-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756726', 'tblTempVendorCDR_20' ) start [2025-03-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756726', 'tblTempVendorCDR_20' ) end [2025-03-25 03:26:18] Production.INFO: ProcessCDR(1,14756726,1,1,2) [2025-03-25 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756726', 'tblTempUsageDetail_20' ) start [2025-03-25 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756726', 'tblTempUsageDetail_20' ) end [2025-03-25 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:26:21] Production.INFO: ==22635== Releasing lock... [2025-03-25 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:27:05 [end_date_ymd] => 2025-03-25 03:27:05 [RateCDR] => 1 ) [2025-03-25 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:27:05' and `end` < '2025-03-25 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:27:17] Production.INFO: count ==455 [2025-03-25 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-25 00:27:05 - End Time 2025-03-25 03:27:05 [2025-03-25 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756731', 'tblTempUsageDetail_20' ) start [2025-03-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756731', 'tblTempUsageDetail_20' ) end [2025-03-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756731', 'tblTempVendorCDR_20' ) start [2025-03-25 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756731', 'tblTempVendorCDR_20' ) end [2025-03-25 03:27:17] Production.INFO: ProcessCDR(1,14756731,1,1,2) [2025-03-25 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756731', 'tblTempUsageDetail_20' ) start [2025-03-25 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756731', 'tblTempUsageDetail_20' ) end [2025-03-25 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:27:21] Production.INFO: ==22721== Releasing lock... [2025-03-25 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:28:05 [end_date_ymd] => 2025-03-25 03:28:05 [RateCDR] => 1 ) [2025-03-25 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:28:05' and `end` < '2025-03-25 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:28:18] Production.INFO: count ==454 [2025-03-25 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:28:05 - End Time 2025-03-25 03:28:05 [2025-03-25 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756736', 'tblTempUsageDetail_20' ) start [2025-03-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756736', 'tblTempUsageDetail_20' ) end [2025-03-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756736', 'tblTempVendorCDR_20' ) start [2025-03-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756736', 'tblTempVendorCDR_20' ) end [2025-03-25 03:28:18] Production.INFO: ProcessCDR(1,14756736,1,1,2) [2025-03-25 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756736', 'tblTempUsageDetail_20' ) start [2025-03-25 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756736', 'tblTempUsageDetail_20' ) end [2025-03-25 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:28:21] Production.INFO: ==22807== Releasing lock... [2025-03-25 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:29:05 [end_date_ymd] => 2025-03-25 03:29:05 [RateCDR] => 1 ) [2025-03-25 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:29:05' and `end` < '2025-03-25 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:29:18] Production.INFO: count ==441 [2025-03-25 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:29:05 - End Time 2025-03-25 03:29:05 [2025-03-25 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756741', 'tblTempUsageDetail_20' ) start [2025-03-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756741', 'tblTempUsageDetail_20' ) end [2025-03-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756741', 'tblTempVendorCDR_20' ) start [2025-03-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756741', 'tblTempVendorCDR_20' ) end [2025-03-25 03:29:18] Production.INFO: ProcessCDR(1,14756741,1,1,2) [2025-03-25 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756741', 'tblTempUsageDetail_20' ) start [2025-03-25 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756741', 'tblTempUsageDetail_20' ) end [2025-03-25 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:29:21] Production.INFO: ==22895== Releasing lock... [2025-03-25 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:30:06 [end_date_ymd] => 2025-03-25 03:30:06 [RateCDR] => 1 ) [2025-03-25 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:30:06' and `end` < '2025-03-25 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:30:18] Production.INFO: count ==446 [2025-03-25 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:30:06 - End Time 2025-03-25 03:30:06 [2025-03-25 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756747', 'tblTempUsageDetail_20' ) start [2025-03-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756747', 'tblTempUsageDetail_20' ) end [2025-03-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756747', 'tblTempVendorCDR_20' ) start [2025-03-25 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756747', 'tblTempVendorCDR_20' ) end [2025-03-25 03:30:18] Production.INFO: ProcessCDR(1,14756747,1,1,2) [2025-03-25 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756747', 'tblTempUsageDetail_20' ) start [2025-03-25 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756747', 'tblTempUsageDetail_20' ) end [2025-03-25 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:30:22] Production.INFO: ==22989== Releasing lock... [2025-03-25 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:31:06 [end_date_ymd] => 2025-03-25 03:31:06 [RateCDR] => 1 ) [2025-03-25 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:31:06' and `end` < '2025-03-25 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:31:18] Production.INFO: count ==432 [2025-03-25 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:31:06 - End Time 2025-03-25 03:31:06 [2025-03-25 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756752', 'tblTempUsageDetail_20' ) start [2025-03-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756752', 'tblTempUsageDetail_20' ) end [2025-03-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756752', 'tblTempVendorCDR_20' ) start [2025-03-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756752', 'tblTempVendorCDR_20' ) end [2025-03-25 03:31:18] Production.INFO: ProcessCDR(1,14756752,1,1,2) [2025-03-25 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756752', 'tblTempUsageDetail_20' ) start [2025-03-25 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756752', 'tblTempUsageDetail_20' ) end [2025-03-25 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:31:22] Production.INFO: ==23081== Releasing lock... [2025-03-25 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:32:06 [end_date_ymd] => 2025-03-25 03:32:06 [RateCDR] => 1 ) [2025-03-25 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:32:06' and `end` < '2025-03-25 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:32:18] Production.INFO: count ==432 [2025-03-25 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:32:06 - End Time 2025-03-25 03:32:06 [2025-03-25 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756757', 'tblTempUsageDetail_20' ) start [2025-03-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756757', 'tblTempUsageDetail_20' ) end [2025-03-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756757', 'tblTempVendorCDR_20' ) start [2025-03-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756757', 'tblTempVendorCDR_20' ) end [2025-03-25 03:32:18] Production.INFO: ProcessCDR(1,14756757,1,1,2) [2025-03-25 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756757', 'tblTempUsageDetail_20' ) start [2025-03-25 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756757', 'tblTempUsageDetail_20' ) end [2025-03-25 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:32:22] Production.INFO: ==23167== Releasing lock... [2025-03-25 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:32:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:33:05 [end_date_ymd] => 2025-03-25 03:33:05 [RateCDR] => 1 ) [2025-03-25 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:33:05' and `end` < '2025-03-25 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:33:18] Production.INFO: count ==430 [2025-03-25 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:33:05 - End Time 2025-03-25 03:33:05 [2025-03-25 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756762', 'tblTempUsageDetail_20' ) start [2025-03-25 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756762', 'tblTempUsageDetail_20' ) end [2025-03-25 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756762', 'tblTempVendorCDR_20' ) start [2025-03-25 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756762', 'tblTempVendorCDR_20' ) end [2025-03-25 03:33:18] Production.INFO: ProcessCDR(1,14756762,1,1,2) [2025-03-25 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756762', 'tblTempUsageDetail_20' ) start [2025-03-25 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756762', 'tblTempUsageDetail_20' ) end [2025-03-25 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:33:22] Production.INFO: ==23254== Releasing lock... [2025-03-25 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-25 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:34:06 [end_date_ymd] => 2025-03-25 03:34:06 [RateCDR] => 1 ) [2025-03-25 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:34:06' and `end` < '2025-03-25 03: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-03-25 03:34:18] Production.INFO: count ==430 [2025-03-25 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:34:06 - End Time 2025-03-25 03:34:06 [2025-03-25 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756767', 'tblTempUsageDetail_20' ) start [2025-03-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756767', 'tblTempUsageDetail_20' ) end [2025-03-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756767', 'tblTempVendorCDR_20' ) start [2025-03-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756767', 'tblTempVendorCDR_20' ) end [2025-03-25 03:34:18] Production.INFO: ProcessCDR(1,14756767,1,1,2) [2025-03-25 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756767', 'tblTempUsageDetail_20' ) start [2025-03-25 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756767', 'tblTempUsageDetail_20' ) end [2025-03-25 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:34:22] Production.INFO: ==23342== Releasing lock... [2025-03-25 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-25 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:35:05 [end_date_ymd] => 2025-03-25 03:35:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:35:05' and `end` < '2025-03-25 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-03-25 03:35:17] Production.INFO: count ==429 [2025-03-25 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-25 00:35:05 - End Time 2025-03-25 03:35:05 [2025-03-25 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756772', 'tblTempUsageDetail_20' ) start [2025-03-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756772', 'tblTempUsageDetail_20' ) end [2025-03-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756772', 'tblTempVendorCDR_20' ) start [2025-03-25 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756772', 'tblTempVendorCDR_20' ) end [2025-03-25 03:35:17] Production.INFO: ProcessCDR(1,14756772,1,1,2) [2025-03-25 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756772', 'tblTempUsageDetail_20' ) start [2025-03-25 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756772', 'tblTempUsageDetail_20' ) end [2025-03-25 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:35:21] Production.INFO: ==23427== Releasing lock... [2025-03-25 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:36:06 [end_date_ymd] => 2025-03-25 03:36:06 [RateCDR] => 1 ) [2025-03-25 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:36:06' and `end` < '2025-03-25 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:36:18] Production.INFO: count ==429 [2025-03-25 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:36:06 - End Time 2025-03-25 03:36:06 [2025-03-25 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756777', 'tblTempUsageDetail_20' ) start [2025-03-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756777', 'tblTempUsageDetail_20' ) end [2025-03-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756777', 'tblTempVendorCDR_20' ) start [2025-03-25 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756777', 'tblTempVendorCDR_20' ) end [2025-03-25 03:36:19] Production.INFO: ProcessCDR(1,14756777,1,1,2) [2025-03-25 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756777', 'tblTempUsageDetail_20' ) start [2025-03-25 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756777', 'tblTempUsageDetail_20' ) end [2025-03-25 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:36:23] Production.INFO: ==23530== Releasing lock... [2025-03-25 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:36:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:37:05 [end_date_ymd] => 2025-03-25 03:37:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:37:05' and `end` < '2025-03-25 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-03-25 03:37:18] Production.INFO: count ==429 [2025-03-25 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:37:05 - End Time 2025-03-25 03:37:05 [2025-03-25 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756782', 'tblTempUsageDetail_20' ) start [2025-03-25 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756782', 'tblTempUsageDetail_20' ) end [2025-03-25 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756782', 'tblTempVendorCDR_20' ) start [2025-03-25 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756782', 'tblTempVendorCDR_20' ) end [2025-03-25 03:37:18] Production.INFO: ProcessCDR(1,14756782,1,1,2) [2025-03-25 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756782', 'tblTempUsageDetail_20' ) start [2025-03-25 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756782', 'tblTempUsageDetail_20' ) end [2025-03-25 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:37:22] Production.INFO: ==23640== Releasing lock... [2025-03-25 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:38:06 [end_date_ymd] => 2025-03-25 03:38:06 [RateCDR] => 1 ) [2025-03-25 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:38:06' and `end` < '2025-03-25 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:38:18] Production.INFO: count ==426 [2025-03-25 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:38:06 - End Time 2025-03-25 03:38:06 [2025-03-25 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756787', 'tblTempUsageDetail_20' ) start [2025-03-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756787', 'tblTempUsageDetail_20' ) end [2025-03-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756787', 'tblTempVendorCDR_20' ) start [2025-03-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756787', 'tblTempVendorCDR_20' ) end [2025-03-25 03:38:18] Production.INFO: ProcessCDR(1,14756787,1,1,2) [2025-03-25 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756787', 'tblTempUsageDetail_20' ) start [2025-03-25 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756787', 'tblTempUsageDetail_20' ) end [2025-03-25 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:38:22] Production.INFO: ==23766== Releasing lock... [2025-03-25 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:39:05 [end_date_ymd] => 2025-03-25 03:39:05 [RateCDR] => 1 ) [2025-03-25 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:39:05' and `end` < '2025-03-25 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:39:17] Production.INFO: count ==425 [2025-03-25 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:39:05 - End Time 2025-03-25 03:39:05 [2025-03-25 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756792', 'tblTempUsageDetail_20' ) start [2025-03-25 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756792', 'tblTempUsageDetail_20' ) end [2025-03-25 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756792', 'tblTempVendorCDR_20' ) start [2025-03-25 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756792', 'tblTempVendorCDR_20' ) end [2025-03-25 03:39:18] Production.INFO: ProcessCDR(1,14756792,1,1,2) [2025-03-25 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756792', 'tblTempUsageDetail_20' ) start [2025-03-25 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756792', 'tblTempUsageDetail_20' ) end [2025-03-25 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:39:21] Production.INFO: ==23853== Releasing lock... [2025-03-25 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:40:06 [end_date_ymd] => 2025-03-25 03:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:40:06' and `end` < '2025-03-25 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-03-25 03:40:19] Production.INFO: count ==411 [2025-03-25 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:40:06 - End Time 2025-03-25 03:40:06 [2025-03-25 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756798', 'tblTempUsageDetail_20' ) start [2025-03-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756798', 'tblTempUsageDetail_20' ) end [2025-03-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756798', 'tblTempVendorCDR_20' ) start [2025-03-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756798', 'tblTempVendorCDR_20' ) end [2025-03-25 03:40:19] Production.INFO: ProcessCDR(1,14756798,1,1,2) [2025-03-25 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756798', 'tblTempUsageDetail_20' ) start [2025-03-25 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756798', 'tblTempUsageDetail_20' ) end [2025-03-25 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:40:23] Production.INFO: ==23942== Releasing lock... [2025-03-25 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:40:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:41:06 [end_date_ymd] => 2025-03-25 03:41:06 [RateCDR] => 1 ) [2025-03-25 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:41:06' and `end` < '2025-03-25 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:41:18] Production.INFO: count ==402 [2025-03-25 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:41:06 - End Time 2025-03-25 03:41:06 [2025-03-25 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756803', 'tblTempUsageDetail_20' ) start [2025-03-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756803', 'tblTempUsageDetail_20' ) end [2025-03-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756803', 'tblTempVendorCDR_20' ) start [2025-03-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756803', 'tblTempVendorCDR_20' ) end [2025-03-25 03:41:18] Production.INFO: ProcessCDR(1,14756803,1,1,2) [2025-03-25 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756803', 'tblTempUsageDetail_20' ) start [2025-03-25 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756803', 'tblTempUsageDetail_20' ) end [2025-03-25 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:41:22] Production.INFO: ==24033== Releasing lock... [2025-03-25 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:41:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:42:06 [end_date_ymd] => 2025-03-25 03:42:06 [RateCDR] => 1 ) [2025-03-25 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:42:06' and `end` < '2025-03-25 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:42:18] Production.INFO: count ==402 [2025-03-25 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:42:06 - End Time 2025-03-25 03:42:06 [2025-03-25 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756808', 'tblTempUsageDetail_20' ) start [2025-03-25 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756808', 'tblTempUsageDetail_20' ) end [2025-03-25 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756808', 'tblTempVendorCDR_20' ) start [2025-03-25 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756808', 'tblTempVendorCDR_20' ) end [2025-03-25 03:42:18] Production.INFO: ProcessCDR(1,14756808,1,1,2) [2025-03-25 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756808', 'tblTempUsageDetail_20' ) start [2025-03-25 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756808', 'tblTempUsageDetail_20' ) end [2025-03-25 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:42:22] Production.INFO: ==24124== Releasing lock... [2025-03-25 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:42:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:43:05 [end_date_ymd] => 2025-03-25 03:43:05 [RateCDR] => 1 ) [2025-03-25 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:43:05' and `end` < '2025-03-25 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:43:18] Production.INFO: count ==402 [2025-03-25 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:43:05 - End Time 2025-03-25 03:43:05 [2025-03-25 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756813', 'tblTempUsageDetail_20' ) start [2025-03-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756813', 'tblTempUsageDetail_20' ) end [2025-03-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756813', 'tblTempVendorCDR_20' ) start [2025-03-25 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756813', 'tblTempVendorCDR_20' ) end [2025-03-25 03:43:18] Production.INFO: ProcessCDR(1,14756813,1,1,2) [2025-03-25 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756813', 'tblTempUsageDetail_20' ) start [2025-03-25 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756813', 'tblTempUsageDetail_20' ) end [2025-03-25 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:43:22] Production.INFO: ==24215== Releasing lock... [2025-03-25 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:43:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:44:06 [end_date_ymd] => 2025-03-25 03:44:06 [RateCDR] => 1 ) [2025-03-25 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:44:06' and `end` < '2025-03-25 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:44:18] Production.INFO: count ==402 [2025-03-25 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:44:06 - End Time 2025-03-25 03:44:06 [2025-03-25 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756818', 'tblTempUsageDetail_20' ) start [2025-03-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756818', 'tblTempUsageDetail_20' ) end [2025-03-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756818', 'tblTempVendorCDR_20' ) start [2025-03-25 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756818', 'tblTempVendorCDR_20' ) end [2025-03-25 03:44:18] Production.INFO: ProcessCDR(1,14756818,1,1,2) [2025-03-25 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756818', 'tblTempUsageDetail_20' ) start [2025-03-25 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756818', 'tblTempUsageDetail_20' ) end [2025-03-25 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:44:22] Production.INFO: ==24307== Releasing lock... [2025-03-25 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:44:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:45:05 [end_date_ymd] => 2025-03-25 03:45:05 [RateCDR] => 1 ) [2025-03-25 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:45:05' and `end` < '2025-03-25 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:45:18] Production.INFO: count ==399 [2025-03-25 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:45:05 - End Time 2025-03-25 03:45:05 [2025-03-25 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756823', 'tblTempUsageDetail_20' ) start [2025-03-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756823', 'tblTempUsageDetail_20' ) end [2025-03-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756823', 'tblTempVendorCDR_20' ) start [2025-03-25 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756823', 'tblTempVendorCDR_20' ) end [2025-03-25 03:45:18] Production.INFO: ProcessCDR(1,14756823,1,1,2) [2025-03-25 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756823', 'tblTempUsageDetail_20' ) start [2025-03-25 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756823', 'tblTempUsageDetail_20' ) end [2025-03-25 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:45:22] Production.INFO: ==24394== Releasing lock... [2025-03-25 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:45:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:46:05 [end_date_ymd] => 2025-03-25 03:46:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:46:05' and `end` < '2025-03-25 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-03-25 03:46:18] Production.INFO: count ==397 [2025-03-25 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:46:05 - End Time 2025-03-25 03:46:05 [2025-03-25 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756828', 'tblTempUsageDetail_20' ) start [2025-03-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756828', 'tblTempUsageDetail_20' ) end [2025-03-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756828', 'tblTempVendorCDR_20' ) start [2025-03-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756828', 'tblTempVendorCDR_20' ) end [2025-03-25 03:46:18] Production.INFO: ProcessCDR(1,14756828,1,1,2) [2025-03-25 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756828', 'tblTempUsageDetail_20' ) start [2025-03-25 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756828', 'tblTempUsageDetail_20' ) end [2025-03-25 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:46:22] Production.INFO: ==24487== Releasing lock... [2025-03-25 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:46:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:47:05 [end_date_ymd] => 2025-03-25 03:47:05 [RateCDR] => 1 ) [2025-03-25 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:47:05' and `end` < '2025-03-25 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:47:18] Production.INFO: count ==397 [2025-03-25 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:47:05 - End Time 2025-03-25 03:47:05 [2025-03-25 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756833', 'tblTempUsageDetail_20' ) start [2025-03-25 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756833', 'tblTempUsageDetail_20' ) end [2025-03-25 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756833', 'tblTempVendorCDR_20' ) start [2025-03-25 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756833', 'tblTempVendorCDR_20' ) end [2025-03-25 03:47:18] Production.INFO: ProcessCDR(1,14756833,1,1,2) [2025-03-25 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756833', 'tblTempUsageDetail_20' ) start [2025-03-25 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756833', 'tblTempUsageDetail_20' ) end [2025-03-25 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:47:21] Production.INFO: ==24581== Releasing lock... [2025-03-25 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:48:06 [end_date_ymd] => 2025-03-25 03:48:06 [RateCDR] => 1 ) [2025-03-25 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:48:06' and `end` < '2025-03-25 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:48:18] Production.INFO: count ==397 [2025-03-25 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:48:06 - End Time 2025-03-25 03:48:06 [2025-03-25 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756838', 'tblTempUsageDetail_20' ) start [2025-03-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756838', 'tblTempUsageDetail_20' ) end [2025-03-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756838', 'tblTempVendorCDR_20' ) start [2025-03-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756838', 'tblTempVendorCDR_20' ) end [2025-03-25 03:48:18] Production.INFO: ProcessCDR(1,14756838,1,1,2) [2025-03-25 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756838', 'tblTempUsageDetail_20' ) start [2025-03-25 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756838', 'tblTempUsageDetail_20' ) end [2025-03-25 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:48:22] Production.INFO: ==24670== Releasing lock... [2025-03-25 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:48:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:49:05 [end_date_ymd] => 2025-03-25 03:49:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:49:05' and `end` < '2025-03-25 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-03-25 03:49:18] Production.INFO: count ==397 [2025-03-25 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:49:05 - End Time 2025-03-25 03:49:05 [2025-03-25 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756843', 'tblTempUsageDetail_20' ) start [2025-03-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756843', 'tblTempUsageDetail_20' ) end [2025-03-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756843', 'tblTempVendorCDR_20' ) start [2025-03-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756843', 'tblTempVendorCDR_20' ) end [2025-03-25 03:49:18] Production.INFO: ProcessCDR(1,14756843,1,1,2) [2025-03-25 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756843', 'tblTempUsageDetail_20' ) start [2025-03-25 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756843', 'tblTempUsageDetail_20' ) end [2025-03-25 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:49:22] Production.INFO: ==24757== Releasing lock... [2025-03-25 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:49:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:50:07 [end_date_ymd] => 2025-03-25 03:50:07 [RateCDR] => 1 ) [2025-03-25 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-03-25 00:50:07' and `end` < '2025-03-25 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-03-25 03:50:19] Production.INFO: count ==397 [2025-03-25 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:50:07 - End Time 2025-03-25 03:50:07 [2025-03-25 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756849', 'tblTempUsageDetail_20' ) start [2025-03-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756849', 'tblTempUsageDetail_20' ) end [2025-03-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756849', 'tblTempVendorCDR_20' ) start [2025-03-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756849', 'tblTempVendorCDR_20' ) end [2025-03-25 03:50:19] Production.INFO: ProcessCDR(1,14756849,1,1,2) [2025-03-25 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756849', 'tblTempUsageDetail_20' ) start [2025-03-25 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756849', 'tblTempUsageDetail_20' ) end [2025-03-25 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:50:23] Production.INFO: ==24848== Releasing lock... [2025-03-25 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:50:23] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:51:05 [end_date_ymd] => 2025-03-25 03:51:05 [RateCDR] => 1 ) [2025-03-25 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:51:05' and `end` < '2025-03-25 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:51:17] Production.INFO: count ==397 [2025-03-25 03:51:17] Production.ERROR: pbx CDR StartTime 2025-03-25 00:51:05 - End Time 2025-03-25 03:51:05 [2025-03-25 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756854', 'tblTempUsageDetail_20' ) start [2025-03-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756854', 'tblTempUsageDetail_20' ) end [2025-03-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756854', 'tblTempVendorCDR_20' ) start [2025-03-25 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756854', 'tblTempVendorCDR_20' ) end [2025-03-25 03:51:17] Production.INFO: ProcessCDR(1,14756854,1,1,2) [2025-03-25 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756854', 'tblTempUsageDetail_20' ) start [2025-03-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756854', 'tblTempUsageDetail_20' ) end [2025-03-25 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:51:21] Production.INFO: ==24935== Releasing lock... [2025-03-25 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:51:21] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:52:06 [end_date_ymd] => 2025-03-25 03:52:06 [RateCDR] => 1 ) [2025-03-25 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:52:06' and `end` < '2025-03-25 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:52:18] Production.INFO: count ==395 [2025-03-25 03:52:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:52:06 - End Time 2025-03-25 03:52:06 [2025-03-25 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756859', 'tblTempUsageDetail_20' ) start [2025-03-25 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756859', 'tblTempUsageDetail_20' ) end [2025-03-25 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756859', 'tblTempVendorCDR_20' ) start [2025-03-25 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756859', 'tblTempVendorCDR_20' ) end [2025-03-25 03:52:19] Production.INFO: ProcessCDR(1,14756859,1,1,2) [2025-03-25 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756859', 'tblTempUsageDetail_20' ) start [2025-03-25 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756859', 'tblTempUsageDetail_20' ) end [2025-03-25 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:52:22] Production.INFO: ==25019== Releasing lock... [2025-03-25 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:52:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:53:06 [end_date_ymd] => 2025-03-25 03:53:06 [RateCDR] => 1 ) [2025-03-25 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:53:06' and `end` < '2025-03-25 03: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-03-25 03:53:19] Production.INFO: count ==395 [2025-03-25 03:53:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:53:06 - End Time 2025-03-25 03:53:06 [2025-03-25 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756864', 'tblTempUsageDetail_20' ) start [2025-03-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756864', 'tblTempUsageDetail_20' ) end [2025-03-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756864', 'tblTempVendorCDR_20' ) start [2025-03-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756864', 'tblTempVendorCDR_20' ) end [2025-03-25 03:53:19] Production.INFO: ProcessCDR(1,14756864,1,1,2) [2025-03-25 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756864', 'tblTempUsageDetail_20' ) start [2025-03-25 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756864', 'tblTempUsageDetail_20' ) end [2025-03-25 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:53:23] Production.INFO: ==25104== Releasing lock... [2025-03-25 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:53:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:54:06 [end_date_ymd] => 2025-03-25 03:54:06 [RateCDR] => 1 ) [2025-03-25 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:54:06' and `end` < '2025-03-25 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:54:18] Production.INFO: count ==394 [2025-03-25 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:54:06 - End Time 2025-03-25 03:54:06 [2025-03-25 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756869', 'tblTempUsageDetail_20' ) start [2025-03-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756869', 'tblTempUsageDetail_20' ) end [2025-03-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756869', 'tblTempVendorCDR_20' ) start [2025-03-25 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756869', 'tblTempVendorCDR_20' ) end [2025-03-25 03:54:18] Production.INFO: ProcessCDR(1,14756869,1,1,2) [2025-03-25 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756869', 'tblTempUsageDetail_20' ) start [2025-03-25 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756869', 'tblTempUsageDetail_20' ) end [2025-03-25 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:54:22] Production.INFO: ==25227== Releasing lock... [2025-03-25 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:55:06 [end_date_ymd] => 2025-03-25 03:55:06 [RateCDR] => 1 ) [2025-03-25 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:55:06' and `end` < '2025-03-25 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:55:18] Production.INFO: count ==394 [2025-03-25 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:55:06 - End Time 2025-03-25 03:55:06 [2025-03-25 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756874', 'tblTempUsageDetail_20' ) start [2025-03-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756874', 'tblTempUsageDetail_20' ) end [2025-03-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756874', 'tblTempVendorCDR_20' ) start [2025-03-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756874', 'tblTempVendorCDR_20' ) end [2025-03-25 03:55:18] Production.INFO: ProcessCDR(1,14756874,1,1,2) [2025-03-25 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756874', 'tblTempUsageDetail_20' ) start [2025-03-25 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756874', 'tblTempUsageDetail_20' ) end [2025-03-25 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:55:22] Production.INFO: ==25310== Releasing lock... [2025-03-25 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:56:05 [end_date_ymd] => 2025-03-25 03:56:05 [RateCDR] => 1 ) [2025-03-25 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:56:05' and `end` < '2025-03-25 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:56:18] Production.INFO: count ==398 [2025-03-25 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:56:05 - End Time 2025-03-25 03:56:05 [2025-03-25 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756879', 'tblTempUsageDetail_20' ) start [2025-03-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756879', 'tblTempUsageDetail_20' ) end [2025-03-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756879', 'tblTempVendorCDR_20' ) start [2025-03-25 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756879', 'tblTempVendorCDR_20' ) end [2025-03-25 03:56:18] Production.INFO: ProcessCDR(1,14756879,1,1,2) [2025-03-25 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756879', 'tblTempUsageDetail_20' ) start [2025-03-25 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756879', 'tblTempUsageDetail_20' ) end [2025-03-25 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:56:22] Production.INFO: ==25394== Releasing lock... [2025-03-25 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:56:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:57:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:57:07 [end_date_ymd] => 2025-03-25 03:57:07 [RateCDR] => 1 ) [2025-03-25 03:57:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:57:07' and `end` < '2025-03-25 03:57: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-03-25 03:57:19] Production.INFO: count ==398 [2025-03-25 03:57:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:57:07 - End Time 2025-03-25 03:57:07 [2025-03-25 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756884', 'tblTempUsageDetail_20' ) start [2025-03-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756884', 'tblTempUsageDetail_20' ) end [2025-03-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756884', 'tblTempVendorCDR_20' ) start [2025-03-25 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756884', 'tblTempVendorCDR_20' ) end [2025-03-25 03:57:19] Production.INFO: ProcessCDR(1,14756884,1,1,2) [2025-03-25 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756884', 'tblTempUsageDetail_20' ) start [2025-03-25 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756884', 'tblTempUsageDetail_20' ) end [2025-03-25 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:57:23] Production.INFO: ==25488== Releasing lock... [2025-03-25 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:57:23] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:58:05 [end_date_ymd] => 2025-03-25 03:58:05 [RateCDR] => 1 ) [2025-03-25 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:58:05' and `end` < '2025-03-25 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:58:18] Production.INFO: count ==398 [2025-03-25 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 00:58:05 - End Time 2025-03-25 03:58:05 [2025-03-25 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756889', 'tblTempUsageDetail_20' ) start [2025-03-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756889', 'tblTempUsageDetail_20' ) end [2025-03-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756889', 'tblTempVendorCDR_20' ) start [2025-03-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756889', 'tblTempVendorCDR_20' ) end [2025-03-25 03:58:18] Production.INFO: ProcessCDR(1,14756889,1,1,2) [2025-03-25 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756889', 'tblTempUsageDetail_20' ) start [2025-03-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756889', 'tblTempUsageDetail_20' ) end [2025-03-25 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:58:22] Production.INFO: ==25575== Releasing lock... [2025-03-25 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:58:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 00:59:06 [end_date_ymd] => 2025-03-25 03:59:06 [RateCDR] => 1 ) [2025-03-25 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 00:59:06' and `end` < '2025-03-25 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 03:59:19] Production.INFO: count ==379 [2025-03-25 03:59:19] Production.ERROR: pbx CDR StartTime 2025-03-25 00:59:06 - End Time 2025-03-25 03:59:06 [2025-03-25 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756894', 'tblTempUsageDetail_20' ) start [2025-03-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756894', 'tblTempUsageDetail_20' ) end [2025-03-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756894', 'tblTempVendorCDR_20' ) start [2025-03-25 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756894', 'tblTempVendorCDR_20' ) end [2025-03-25 03:59:19] Production.INFO: ProcessCDR(1,14756894,1,1,2) [2025-03-25 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756894', 'tblTempUsageDetail_20' ) start [2025-03-25 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756894', 'tblTempUsageDetail_20' ) end [2025-03-25 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 03:59:22] Production.INFO: ==25660== Releasing lock... [2025-03-25 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 03:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:00:06 [end_date_ymd] => 2025-03-25 04:00:06 [RateCDR] => 1 ) [2025-03-25 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:00:06' and `end` < '2025-03-25 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:00:18] Production.INFO: count ==370 [2025-03-25 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:00:06 - End Time 2025-03-25 04:00:06 [2025-03-25 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756900', 'tblTempUsageDetail_20' ) start [2025-03-25 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756900', 'tblTempUsageDetail_20' ) end [2025-03-25 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756900', 'tblTempVendorCDR_20' ) start [2025-03-25 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756900', 'tblTempVendorCDR_20' ) end [2025-03-25 04:00:19] Production.INFO: ProcessCDR(1,14756900,1,1,2) [2025-03-25 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756900', 'tblTempUsageDetail_20' ) start [2025-03-25 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756900', 'tblTempUsageDetail_20' ) end [2025-03-25 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:00:22] Production.INFO: ==25749== Releasing lock... [2025-03-25 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:01:06 [end_date_ymd] => 2025-03-25 04:01:06 [RateCDR] => 1 ) [2025-03-25 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:01:06' and `end` < '2025-03-25 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:01:19] Production.INFO: count ==370 [2025-03-25 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:01:06 - End Time 2025-03-25 04:01:06 [2025-03-25 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756906', 'tblTempUsageDetail_20' ) start [2025-03-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756906', 'tblTempUsageDetail_20' ) end [2025-03-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756906', 'tblTempVendorCDR_20' ) start [2025-03-25 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756906', 'tblTempVendorCDR_20' ) end [2025-03-25 04:01:19] Production.INFO: ProcessCDR(1,14756906,1,1,2) [2025-03-25 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756906', 'tblTempUsageDetail_20' ) start [2025-03-25 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756906', 'tblTempUsageDetail_20' ) end [2025-03-25 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:01:23] Production.INFO: ==25850== Releasing lock... [2025-03-25 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:01:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:02:06 [end_date_ymd] => 2025-03-25 04:02:06 [RateCDR] => 1 ) [2025-03-25 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:02:06' and `end` < '2025-03-25 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:02:18] Production.INFO: count ==369 [2025-03-25 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:02:06 - End Time 2025-03-25 04:02:06 [2025-03-25 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756911', 'tblTempUsageDetail_20' ) start [2025-03-25 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756911', 'tblTempUsageDetail_20' ) end [2025-03-25 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756911', 'tblTempVendorCDR_20' ) start [2025-03-25 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756911', 'tblTempVendorCDR_20' ) end [2025-03-25 04:02:18] Production.INFO: ProcessCDR(1,14756911,1,1,2) [2025-03-25 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756911', 'tblTempUsageDetail_20' ) start [2025-03-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756911', 'tblTempUsageDetail_20' ) end [2025-03-25 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:02:22] Production.INFO: ==25934== Releasing lock... [2025-03-25 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:02:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:03:06 [end_date_ymd] => 2025-03-25 04:03:06 [RateCDR] => 1 ) [2025-03-25 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:03:06' and `end` < '2025-03-25 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:03:18] Production.INFO: count ==368 [2025-03-25 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:03:06 - End Time 2025-03-25 04:03:06 [2025-03-25 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756916', 'tblTempUsageDetail_20' ) start [2025-03-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756916', 'tblTempUsageDetail_20' ) end [2025-03-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756916', 'tblTempVendorCDR_20' ) start [2025-03-25 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756916', 'tblTempVendorCDR_20' ) end [2025-03-25 04:03:18] Production.INFO: ProcessCDR(1,14756916,1,1,2) [2025-03-25 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756916', 'tblTempUsageDetail_20' ) start [2025-03-25 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756916', 'tblTempUsageDetail_20' ) end [2025-03-25 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:03:22] Production.INFO: ==26029== Releasing lock... [2025-03-25 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:04:05 [end_date_ymd] => 2025-03-25 04:04:05 [RateCDR] => 1 ) [2025-03-25 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:04:05' and `end` < '2025-03-25 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:04:18] Production.INFO: count ==368 [2025-03-25 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:04:05 - End Time 2025-03-25 04:04:05 [2025-03-25 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756921', 'tblTempUsageDetail_20' ) start [2025-03-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756921', 'tblTempUsageDetail_20' ) end [2025-03-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756921', 'tblTempVendorCDR_20' ) start [2025-03-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756921', 'tblTempVendorCDR_20' ) end [2025-03-25 04:04:18] Production.INFO: ProcessCDR(1,14756921,1,1,2) [2025-03-25 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756921', 'tblTempUsageDetail_20' ) start [2025-03-25 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756921', 'tblTempUsageDetail_20' ) end [2025-03-25 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:04:22] Production.INFO: ==26113== Releasing lock... [2025-03-25 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:05:06 [end_date_ymd] => 2025-03-25 04:05:06 [RateCDR] => 1 ) [2025-03-25 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:05:06' and `end` < '2025-03-25 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:05:18] Production.INFO: count ==368 [2025-03-25 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:05:06 - End Time 2025-03-25 04:05:06 [2025-03-25 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756926', 'tblTempUsageDetail_20' ) start [2025-03-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756926', 'tblTempUsageDetail_20' ) end [2025-03-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756926', 'tblTempVendorCDR_20' ) start [2025-03-25 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756926', 'tblTempVendorCDR_20' ) end [2025-03-25 04:05:18] Production.INFO: ProcessCDR(1,14756926,1,1,2) [2025-03-25 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756926', 'tblTempUsageDetail_20' ) start [2025-03-25 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756926', 'tblTempUsageDetail_20' ) end [2025-03-25 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:05:22] Production.INFO: ==26200== Releasing lock... [2025-03-25 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:05:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:06:05 [end_date_ymd] => 2025-03-25 04:06:05 [RateCDR] => 1 ) [2025-03-25 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:06:05' and `end` < '2025-03-25 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:06:18] Production.INFO: count ==368 [2025-03-25 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:06:05 - End Time 2025-03-25 04:06:05 [2025-03-25 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756931', 'tblTempUsageDetail_20' ) start [2025-03-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756931', 'tblTempUsageDetail_20' ) end [2025-03-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756931', 'tblTempVendorCDR_20' ) start [2025-03-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756931', 'tblTempVendorCDR_20' ) end [2025-03-25 04:06:18] Production.INFO: ProcessCDR(1,14756931,1,1,2) [2025-03-25 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756931', 'tblTempUsageDetail_20' ) start [2025-03-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756931', 'tblTempUsageDetail_20' ) end [2025-03-25 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:06:21] Production.INFO: ==26289== Releasing lock... [2025-03-25 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:07:05 [end_date_ymd] => 2025-03-25 04:07:05 [RateCDR] => 1 ) [2025-03-25 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:07:05' and `end` < '2025-03-25 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:07:18] Production.INFO: count ==368 [2025-03-25 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:07:05 - End Time 2025-03-25 04:07:05 [2025-03-25 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756936', 'tblTempUsageDetail_20' ) start [2025-03-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756936', 'tblTempUsageDetail_20' ) end [2025-03-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756936', 'tblTempVendorCDR_20' ) start [2025-03-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756936', 'tblTempVendorCDR_20' ) end [2025-03-25 04:07:18] Production.INFO: ProcessCDR(1,14756936,1,1,2) [2025-03-25 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756936', 'tblTempUsageDetail_20' ) start [2025-03-25 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756936', 'tblTempUsageDetail_20' ) end [2025-03-25 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:07:21] Production.INFO: ==26376== Releasing lock... [2025-03-25 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:08:05 [end_date_ymd] => 2025-03-25 04:08:05 [RateCDR] => 1 ) [2025-03-25 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:08:05' and `end` < '2025-03-25 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:08:18] Production.INFO: count ==370 [2025-03-25 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:08:05 - End Time 2025-03-25 04:08:05 [2025-03-25 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756941', 'tblTempUsageDetail_20' ) start [2025-03-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756941', 'tblTempUsageDetail_20' ) end [2025-03-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756941', 'tblTempVendorCDR_20' ) start [2025-03-25 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756941', 'tblTempVendorCDR_20' ) end [2025-03-25 04:08:18] Production.INFO: ProcessCDR(1,14756941,1,1,2) [2025-03-25 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756941', 'tblTempUsageDetail_20' ) start [2025-03-25 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756941', 'tblTempUsageDetail_20' ) end [2025-03-25 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:08:21] Production.INFO: ==26466== Releasing lock... [2025-03-25 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:09:05 [end_date_ymd] => 2025-03-25 04:09:05 [RateCDR] => 1 ) [2025-03-25 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:09:05' and `end` < '2025-03-25 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:09:18] Production.INFO: count ==373 [2025-03-25 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:09:05 - End Time 2025-03-25 04:09:05 [2025-03-25 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756946', 'tblTempUsageDetail_20' ) start [2025-03-25 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756946', 'tblTempUsageDetail_20' ) end [2025-03-25 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756946', 'tblTempVendorCDR_20' ) start [2025-03-25 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756946', 'tblTempVendorCDR_20' ) end [2025-03-25 04:09:18] Production.INFO: ProcessCDR(1,14756946,1,1,2) [2025-03-25 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756946', 'tblTempUsageDetail_20' ) start [2025-03-25 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756946', 'tblTempUsageDetail_20' ) end [2025-03-25 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:09:21] Production.INFO: ==26594== Releasing lock... [2025-03-25 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:10:06 [end_date_ymd] => 2025-03-25 04:10:06 [RateCDR] => 1 ) [2025-03-25 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:10:06' and `end` < '2025-03-25 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:10:18] Production.INFO: count ==373 [2025-03-25 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:10:06 - End Time 2025-03-25 04:10:06 [2025-03-25 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756952', 'tblTempUsageDetail_20' ) start [2025-03-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756952', 'tblTempUsageDetail_20' ) end [2025-03-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756952', 'tblTempVendorCDR_20' ) start [2025-03-25 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756952', 'tblTempVendorCDR_20' ) end [2025-03-25 04:10:18] Production.INFO: ProcessCDR(1,14756952,1,1,2) [2025-03-25 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756952', 'tblTempUsageDetail_20' ) start [2025-03-25 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756952', 'tblTempUsageDetail_20' ) end [2025-03-25 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:10:22] Production.INFO: ==26682== Releasing lock... [2025-03-25 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:11:06 [end_date_ymd] => 2025-03-25 04:11:06 [RateCDR] => 1 ) [2025-03-25 04:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:11:06' and `end` < '2025-03-25 04:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:11:18] Production.INFO: count ==373 [2025-03-25 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:11:06 - End Time 2025-03-25 04:11:06 [2025-03-25 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756957', 'tblTempUsageDetail_20' ) start [2025-03-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756957', 'tblTempUsageDetail_20' ) end [2025-03-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756957', 'tblTempVendorCDR_20' ) start [2025-03-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756957', 'tblTempVendorCDR_20' ) end [2025-03-25 04:11:18] Production.INFO: ProcessCDR(1,14756957,1,1,2) [2025-03-25 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756957', 'tblTempUsageDetail_20' ) start [2025-03-25 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756957', 'tblTempUsageDetail_20' ) end [2025-03-25 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:11:22] Production.INFO: ==26770== Releasing lock... [2025-03-25 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:11:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:12:05 [end_date_ymd] => 2025-03-25 04:12:05 [RateCDR] => 1 ) [2025-03-25 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:12:05' and `end` < '2025-03-25 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:12:18] Production.INFO: count ==373 [2025-03-25 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:12:05 - End Time 2025-03-25 04:12:05 [2025-03-25 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756962', 'tblTempUsageDetail_20' ) start [2025-03-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756962', 'tblTempUsageDetail_20' ) end [2025-03-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756962', 'tblTempVendorCDR_20' ) start [2025-03-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756962', 'tblTempVendorCDR_20' ) end [2025-03-25 04:12:18] Production.INFO: ProcessCDR(1,14756962,1,1,2) [2025-03-25 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756962', 'tblTempUsageDetail_20' ) start [2025-03-25 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756962', 'tblTempUsageDetail_20' ) end [2025-03-25 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:12:22] Production.INFO: ==26859== Releasing lock... [2025-03-25 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:12:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:13:05 [end_date_ymd] => 2025-03-25 04:13:05 [RateCDR] => 1 ) [2025-03-25 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:13:05' and `end` < '2025-03-25 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:13:18] Production.INFO: count ==373 [2025-03-25 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:13:05 - End Time 2025-03-25 04:13:05 [2025-03-25 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756967', 'tblTempUsageDetail_20' ) start [2025-03-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756967', 'tblTempUsageDetail_20' ) end [2025-03-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756967', 'tblTempVendorCDR_20' ) start [2025-03-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756967', 'tblTempVendorCDR_20' ) end [2025-03-25 04:13:18] Production.INFO: ProcessCDR(1,14756967,1,1,2) [2025-03-25 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756967', 'tblTempUsageDetail_20' ) start [2025-03-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756967', 'tblTempUsageDetail_20' ) end [2025-03-25 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:13:21] Production.INFO: ==26945== Releasing lock... [2025-03-25 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:14:06 [end_date_ymd] => 2025-03-25 04:14:06 [RateCDR] => 1 ) [2025-03-25 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:14:06' and `end` < '2025-03-25 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:14:18] Production.INFO: count ==373 [2025-03-25 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:14:06 - End Time 2025-03-25 04:14:06 [2025-03-25 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756972', 'tblTempUsageDetail_20' ) start [2025-03-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756972', 'tblTempUsageDetail_20' ) end [2025-03-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756972', 'tblTempVendorCDR_20' ) start [2025-03-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756972', 'tblTempVendorCDR_20' ) end [2025-03-25 04:14:18] Production.INFO: ProcessCDR(1,14756972,1,1,2) [2025-03-25 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756972', 'tblTempUsageDetail_20' ) start [2025-03-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756972', 'tblTempUsageDetail_20' ) end [2025-03-25 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:14:21] Production.INFO: ==27031== Releasing lock... [2025-03-25 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:15:06 [end_date_ymd] => 2025-03-25 04:15:06 [RateCDR] => 1 ) [2025-03-25 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:15:06' and `end` < '2025-03-25 04: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-03-25 04:15:18] Production.INFO: count ==373 [2025-03-25 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:15:06 - End Time 2025-03-25 04:15:06 [2025-03-25 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756977', 'tblTempUsageDetail_20' ) start [2025-03-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756977', 'tblTempUsageDetail_20' ) end [2025-03-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756977', 'tblTempVendorCDR_20' ) start [2025-03-25 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756977', 'tblTempVendorCDR_20' ) end [2025-03-25 04:15:18] Production.INFO: ProcessCDR(1,14756977,1,1,2) [2025-03-25 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756977', 'tblTempUsageDetail_20' ) start [2025-03-25 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756977', 'tblTempUsageDetail_20' ) end [2025-03-25 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:15:21] Production.INFO: ==27123== Releasing lock... [2025-03-25 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:16:05 [end_date_ymd] => 2025-03-25 04:16:05 [RateCDR] => 1 ) [2025-03-25 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:16:05' and `end` < '2025-03-25 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:16:17] Production.INFO: count ==373 [2025-03-25 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:16:05 - End Time 2025-03-25 04:16:05 [2025-03-25 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756982', 'tblTempUsageDetail_20' ) start [2025-03-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756982', 'tblTempUsageDetail_20' ) end [2025-03-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756982', 'tblTempVendorCDR_20' ) start [2025-03-25 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756982', 'tblTempVendorCDR_20' ) end [2025-03-25 04:16:17] Production.INFO: ProcessCDR(1,14756982,1,1,2) [2025-03-25 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756982', 'tblTempUsageDetail_20' ) start [2025-03-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756982', 'tblTempUsageDetail_20' ) end [2025-03-25 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:16:21] Production.INFO: ==27210== Releasing lock... [2025-03-25 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:17:06 [end_date_ymd] => 2025-03-25 04:17:06 [RateCDR] => 1 ) [2025-03-25 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:17:06' and `end` < '2025-03-25 04: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-03-25 04:17:18] Production.INFO: count ==373 [2025-03-25 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:17:06 - End Time 2025-03-25 04:17:06 [2025-03-25 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756987', 'tblTempUsageDetail_20' ) start [2025-03-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756987', 'tblTempUsageDetail_20' ) end [2025-03-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756987', 'tblTempVendorCDR_20' ) start [2025-03-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756987', 'tblTempVendorCDR_20' ) end [2025-03-25 04:17:18] Production.INFO: ProcessCDR(1,14756987,1,1,2) [2025-03-25 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756987', 'tblTempUsageDetail_20' ) start [2025-03-25 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756987', 'tblTempUsageDetail_20' ) end [2025-03-25 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:17:22] Production.INFO: ==27300== Releasing lock... [2025-03-25 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:18:05 [end_date_ymd] => 2025-03-25 04:18:05 [RateCDR] => 1 ) [2025-03-25 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:18:05' and `end` < '2025-03-25 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:18:18] Production.INFO: count ==373 [2025-03-25 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:18:05 - End Time 2025-03-25 04:18:05 [2025-03-25 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756992', 'tblTempUsageDetail_20' ) start [2025-03-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756992', 'tblTempUsageDetail_20' ) end [2025-03-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756992', 'tblTempVendorCDR_20' ) start [2025-03-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756992', 'tblTempVendorCDR_20' ) end [2025-03-25 04:18:18] Production.INFO: ProcessCDR(1,14756992,1,1,2) [2025-03-25 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756992', 'tblTempUsageDetail_20' ) start [2025-03-25 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756992', 'tblTempUsageDetail_20' ) end [2025-03-25 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:18:21] Production.INFO: ==27385== Releasing lock... [2025-03-25 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:19:05 [end_date_ymd] => 2025-03-25 04:19:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:19:05' and `end` < '2025-03-25 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-03-25 04:19:18] Production.INFO: count ==373 [2025-03-25 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:19:05 - End Time 2025-03-25 04:19:05 [2025-03-25 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756997', 'tblTempUsageDetail_20' ) start [2025-03-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14756997', 'tblTempUsageDetail_20' ) end [2025-03-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756997', 'tblTempVendorCDR_20' ) start [2025-03-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14756997', 'tblTempVendorCDR_20' ) end [2025-03-25 04:19:18] Production.INFO: ProcessCDR(1,14756997,1,1,2) [2025-03-25 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14756997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14756997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14756997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14756997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756997', 'tblTempUsageDetail_20' ) start [2025-03-25 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14756997', 'tblTempUsageDetail_20' ) end [2025-03-25 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:19:21] Production.INFO: ==27473== Releasing lock... [2025-03-25 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:20:06 [end_date_ymd] => 2025-03-25 04:20:06 [RateCDR] => 1 ) [2025-03-25 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:20:06' and `end` < '2025-03-25 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:20:18] Production.INFO: count ==373 [2025-03-25 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:20:06 - End Time 2025-03-25 04:20:06 [2025-03-25 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757003', 'tblTempUsageDetail_20' ) start [2025-03-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757003', 'tblTempUsageDetail_20' ) end [2025-03-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757003', 'tblTempVendorCDR_20' ) start [2025-03-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757003', 'tblTempVendorCDR_20' ) end [2025-03-25 04:20:19] Production.INFO: ProcessCDR(1,14757003,1,1,2) [2025-03-25 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757003', 'tblTempUsageDetail_20' ) start [2025-03-25 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757003', 'tblTempUsageDetail_20' ) end [2025-03-25 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:20:22] Production.INFO: ==27564== Releasing lock... [2025-03-25 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:21:06 [end_date_ymd] => 2025-03-25 04:21:06 [RateCDR] => 1 ) [2025-03-25 04:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:21:06' and `end` < '2025-03-25 04:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:21:18] Production.INFO: count ==373 [2025-03-25 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:21:06 - End Time 2025-03-25 04:21:06 [2025-03-25 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757008', 'tblTempUsageDetail_20' ) start [2025-03-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757008', 'tblTempUsageDetail_20' ) end [2025-03-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757008', 'tblTempVendorCDR_20' ) start [2025-03-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757008', 'tblTempVendorCDR_20' ) end [2025-03-25 04:21:18] Production.INFO: ProcessCDR(1,14757008,1,1,2) [2025-03-25 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757008', 'tblTempUsageDetail_20' ) start [2025-03-25 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757008', 'tblTempUsageDetail_20' ) end [2025-03-25 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:21:22] Production.INFO: ==27652== Releasing lock... [2025-03-25 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:21:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:22:05 [end_date_ymd] => 2025-03-25 04:22:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:22:05' and `end` < '2025-03-25 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-03-25 04:22:18] Production.INFO: count ==373 [2025-03-25 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:22:05 - End Time 2025-03-25 04:22:05 [2025-03-25 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757013', 'tblTempUsageDetail_20' ) start [2025-03-25 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757013', 'tblTempUsageDetail_20' ) end [2025-03-25 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757013', 'tblTempVendorCDR_20' ) start [2025-03-25 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757013', 'tblTempVendorCDR_20' ) end [2025-03-25 04:22:18] Production.INFO: ProcessCDR(1,14757013,1,1,2) [2025-03-25 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757013', 'tblTempUsageDetail_20' ) start [2025-03-25 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757013', 'tblTempUsageDetail_20' ) end [2025-03-25 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:22:21] Production.INFO: ==27744== Releasing lock... [2025-03-25 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:23:06 [end_date_ymd] => 2025-03-25 04:23:06 [RateCDR] => 1 ) [2025-03-25 04:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:23:06' and `end` < '2025-03-25 04:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:23:18] Production.INFO: count ==373 [2025-03-25 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:23:06 - End Time 2025-03-25 04:23:06 [2025-03-25 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757018', 'tblTempUsageDetail_20' ) start [2025-03-25 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757018', 'tblTempUsageDetail_20' ) end [2025-03-25 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757018', 'tblTempVendorCDR_20' ) start [2025-03-25 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757018', 'tblTempVendorCDR_20' ) end [2025-03-25 04:23:18] Production.INFO: ProcessCDR(1,14757018,1,1,2) [2025-03-25 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757018', 'tblTempUsageDetail_20' ) start [2025-03-25 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757018', 'tblTempUsageDetail_20' ) end [2025-03-25 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:23:22] Production.INFO: ==27833== Releasing lock... [2025-03-25 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:24:06 [end_date_ymd] => 2025-03-25 04:24:06 [RateCDR] => 1 ) [2025-03-25 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:24:06' and `end` < '2025-03-25 04: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-03-25 04:24:18] Production.INFO: count ==373 [2025-03-25 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:24:06 - End Time 2025-03-25 04:24:06 [2025-03-25 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757023', 'tblTempUsageDetail_20' ) start [2025-03-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757023', 'tblTempUsageDetail_20' ) end [2025-03-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757023', 'tblTempVendorCDR_20' ) start [2025-03-25 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757023', 'tblTempVendorCDR_20' ) end [2025-03-25 04:24:18] Production.INFO: ProcessCDR(1,14757023,1,1,2) [2025-03-25 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757023', 'tblTempUsageDetail_20' ) start [2025-03-25 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757023', 'tblTempUsageDetail_20' ) end [2025-03-25 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:24:22] Production.INFO: ==27919== Releasing lock... [2025-03-25 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:25:06 [end_date_ymd] => 2025-03-25 04:25:06 [RateCDR] => 1 ) [2025-03-25 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:25:06' and `end` < '2025-03-25 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:25:18] Production.INFO: count ==373 [2025-03-25 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:25:06 - End Time 2025-03-25 04:25:06 [2025-03-25 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757028', 'tblTempUsageDetail_20' ) start [2025-03-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757028', 'tblTempUsageDetail_20' ) end [2025-03-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757028', 'tblTempVendorCDR_20' ) start [2025-03-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757028', 'tblTempVendorCDR_20' ) end [2025-03-25 04:25:18] Production.INFO: ProcessCDR(1,14757028,1,1,2) [2025-03-25 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757028', 'tblTempUsageDetail_20' ) start [2025-03-25 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757028', 'tblTempUsageDetail_20' ) end [2025-03-25 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:25:21] Production.INFO: ==28049== Releasing lock... [2025-03-25 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:26:05 [end_date_ymd] => 2025-03-25 04:26:05 [RateCDR] => 1 ) [2025-03-25 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:26:05' and `end` < '2025-03-25 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:26:17] Production.INFO: count ==373 [2025-03-25 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:26:05 - End Time 2025-03-25 04:26:05 [2025-03-25 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757033', 'tblTempUsageDetail_20' ) start [2025-03-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757033', 'tblTempUsageDetail_20' ) end [2025-03-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757033', 'tblTempVendorCDR_20' ) start [2025-03-25 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757033', 'tblTempVendorCDR_20' ) end [2025-03-25 04:26:17] Production.INFO: ProcessCDR(1,14757033,1,1,2) [2025-03-25 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757033', 'tblTempUsageDetail_20' ) start [2025-03-25 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757033', 'tblTempUsageDetail_20' ) end [2025-03-25 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:26:21] Production.INFO: ==28138== Releasing lock... [2025-03-25 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:27:05 [end_date_ymd] => 2025-03-25 04:27:05 [RateCDR] => 1 ) [2025-03-25 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:27:05' and `end` < '2025-03-25 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:27:17] Production.INFO: count ==371 [2025-03-25 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:27:05 - End Time 2025-03-25 04:27:05 [2025-03-25 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757038', 'tblTempUsageDetail_20' ) start [2025-03-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757038', 'tblTempUsageDetail_20' ) end [2025-03-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757038', 'tblTempVendorCDR_20' ) start [2025-03-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757038', 'tblTempVendorCDR_20' ) end [2025-03-25 04:27:18] Production.INFO: ProcessCDR(1,14757038,1,1,2) [2025-03-25 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757038', 'tblTempUsageDetail_20' ) start [2025-03-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757038', 'tblTempUsageDetail_20' ) end [2025-03-25 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:27:21] Production.INFO: ==28222== Releasing lock... [2025-03-25 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:28:05 [end_date_ymd] => 2025-03-25 04:28:05 [RateCDR] => 1 ) [2025-03-25 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:28:05' and `end` < '2025-03-25 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:28:17] Production.INFO: count ==371 [2025-03-25 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:28:05 - End Time 2025-03-25 04:28:05 [2025-03-25 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757043', 'tblTempUsageDetail_20' ) start [2025-03-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757043', 'tblTempUsageDetail_20' ) end [2025-03-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757043', 'tblTempVendorCDR_20' ) start [2025-03-25 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757043', 'tblTempVendorCDR_20' ) end [2025-03-25 04:28:17] Production.INFO: ProcessCDR(1,14757043,1,1,2) [2025-03-25 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757043', 'tblTempUsageDetail_20' ) start [2025-03-25 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757043', 'tblTempUsageDetail_20' ) end [2025-03-25 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:28:20] Production.INFO: ==28309== Releasing lock... [2025-03-25 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:28:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:29:05 [end_date_ymd] => 2025-03-25 04:29:05 [RateCDR] => 1 ) [2025-03-25 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:29:05' and `end` < '2025-03-25 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:29:18] Production.INFO: count ==371 [2025-03-25 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:29:05 - End Time 2025-03-25 04:29:05 [2025-03-25 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757048', 'tblTempUsageDetail_20' ) start [2025-03-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757048', 'tblTempUsageDetail_20' ) end [2025-03-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757048', 'tblTempVendorCDR_20' ) start [2025-03-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757048', 'tblTempVendorCDR_20' ) end [2025-03-25 04:29:18] Production.INFO: ProcessCDR(1,14757048,1,1,2) [2025-03-25 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757048', 'tblTempUsageDetail_20' ) start [2025-03-25 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757048', 'tblTempUsageDetail_20' ) end [2025-03-25 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:29:21] Production.INFO: ==28401== Releasing lock... [2025-03-25 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:30:06 [end_date_ymd] => 2025-03-25 04:30:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:30:06' and `end` < '2025-03-25 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-03-25 04:30:19] Production.INFO: count ==362 [2025-03-25 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:30:06 - End Time 2025-03-25 04:30:06 [2025-03-25 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757055', 'tblTempUsageDetail_20' ) start [2025-03-25 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757055', 'tblTempUsageDetail_20' ) end [2025-03-25 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757055', 'tblTempVendorCDR_20' ) start [2025-03-25 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757055', 'tblTempVendorCDR_20' ) end [2025-03-25 04:30:19] Production.INFO: ProcessCDR(1,14757055,1,1,2) [2025-03-25 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757055', 'tblTempUsageDetail_20' ) start [2025-03-25 04:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757055', 'tblTempUsageDetail_20' ) end [2025-03-25 04:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:30:25] Production.INFO: ==28495== Releasing lock... [2025-03-25 04:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:30:25] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:31:06 [end_date_ymd] => 2025-03-25 04:31:06 [RateCDR] => 1 ) [2025-03-25 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:31:06' and `end` < '2025-03-25 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:31:18] Production.INFO: count ==353 [2025-03-25 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:31:06 - End Time 2025-03-25 04:31:06 [2025-03-25 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757060', 'tblTempUsageDetail_20' ) start [2025-03-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757060', 'tblTempUsageDetail_20' ) end [2025-03-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757060', 'tblTempVendorCDR_20' ) start [2025-03-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757060', 'tblTempVendorCDR_20' ) end [2025-03-25 04:31:18] Production.INFO: ProcessCDR(1,14757060,1,1,2) [2025-03-25 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757060', 'tblTempUsageDetail_20' ) start [2025-03-25 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757060', 'tblTempUsageDetail_20' ) end [2025-03-25 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:31:22] Production.INFO: ==28647== Releasing lock... [2025-03-25 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:31:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:32:06 [end_date_ymd] => 2025-03-25 04:32:06 [RateCDR] => 1 ) [2025-03-25 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:32:06' and `end` < '2025-03-25 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:32:18] Production.INFO: count ==353 [2025-03-25 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:32:06 - End Time 2025-03-25 04:32:06 [2025-03-25 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757065', 'tblTempUsageDetail_20' ) start [2025-03-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757065', 'tblTempUsageDetail_20' ) end [2025-03-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757065', 'tblTempVendorCDR_20' ) start [2025-03-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757065', 'tblTempVendorCDR_20' ) end [2025-03-25 04:32:18] Production.INFO: ProcessCDR(1,14757065,1,1,2) [2025-03-25 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757065', 'tblTempUsageDetail_20' ) start [2025-03-25 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757065', 'tblTempUsageDetail_20' ) end [2025-03-25 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:32:22] Production.INFO: ==28736== Releasing lock... [2025-03-25 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:33:05 [end_date_ymd] => 2025-03-25 04:33:05 [RateCDR] => 1 ) [2025-03-25 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:33:05' and `end` < '2025-03-25 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:33:18] Production.INFO: count ==352 [2025-03-25 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:33:05 - End Time 2025-03-25 04:33:05 [2025-03-25 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757070', 'tblTempUsageDetail_20' ) start [2025-03-25 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757070', 'tblTempUsageDetail_20' ) end [2025-03-25 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757070', 'tblTempVendorCDR_20' ) start [2025-03-25 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757070', 'tblTempVendorCDR_20' ) end [2025-03-25 04:33:18] Production.INFO: ProcessCDR(1,14757070,1,1,2) [2025-03-25 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757070', 'tblTempUsageDetail_20' ) start [2025-03-25 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757070', 'tblTempUsageDetail_20' ) end [2025-03-25 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:33:21] Production.INFO: ==28820== Releasing lock... [2025-03-25 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:34:06 [end_date_ymd] => 2025-03-25 04:34:06 [RateCDR] => 1 ) [2025-03-25 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:34:06' and `end` < '2025-03-25 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:34:18] Production.INFO: count ==352 [2025-03-25 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:34:06 - End Time 2025-03-25 04:34:06 [2025-03-25 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757075', 'tblTempUsageDetail_20' ) start [2025-03-25 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757075', 'tblTempUsageDetail_20' ) end [2025-03-25 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757075', 'tblTempVendorCDR_20' ) start [2025-03-25 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757075', 'tblTempVendorCDR_20' ) end [2025-03-25 04:34:19] Production.INFO: ProcessCDR(1,14757075,1,1,2) [2025-03-25 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757075', 'tblTempUsageDetail_20' ) start [2025-03-25 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757075', 'tblTempUsageDetail_20' ) end [2025-03-25 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:34:22] Production.INFO: ==28909== Releasing lock... [2025-03-25 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:35:05 [end_date_ymd] => 2025-03-25 04:35:05 [RateCDR] => 1 ) [2025-03-25 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:35:05' and `end` < '2025-03-25 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:35:17] Production.INFO: count ==352 [2025-03-25 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:35:05 - End Time 2025-03-25 04:35:05 [2025-03-25 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757080', 'tblTempUsageDetail_20' ) start [2025-03-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757080', 'tblTempUsageDetail_20' ) end [2025-03-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757080', 'tblTempVendorCDR_20' ) start [2025-03-25 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757080', 'tblTempVendorCDR_20' ) end [2025-03-25 04:35:17] Production.INFO: ProcessCDR(1,14757080,1,1,2) [2025-03-25 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757080', 'tblTempUsageDetail_20' ) start [2025-03-25 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757080', 'tblTempUsageDetail_20' ) end [2025-03-25 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:35:21] Production.INFO: ==29005== Releasing lock... [2025-03-25 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:36:05 [end_date_ymd] => 2025-03-25 04:36:05 [RateCDR] => 1 ) [2025-03-25 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:36:05' and `end` < '2025-03-25 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:36:18] Production.INFO: count ==352 [2025-03-25 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:36:05 - End Time 2025-03-25 04:36:05 [2025-03-25 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757085', 'tblTempUsageDetail_20' ) start [2025-03-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757085', 'tblTempUsageDetail_20' ) end [2025-03-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757085', 'tblTempVendorCDR_20' ) start [2025-03-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757085', 'tblTempVendorCDR_20' ) end [2025-03-25 04:36:18] Production.INFO: ProcessCDR(1,14757085,1,1,2) [2025-03-25 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757085', 'tblTempUsageDetail_20' ) start [2025-03-25 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757085', 'tblTempUsageDetail_20' ) end [2025-03-25 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:36:22] Production.INFO: ==29101== Releasing lock... [2025-03-25 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:37:05 [end_date_ymd] => 2025-03-25 04:37:05 [RateCDR] => 1 ) [2025-03-25 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:37:05' and `end` < '2025-03-25 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:37:17] Production.INFO: count ==352 [2025-03-25 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:37:05 - End Time 2025-03-25 04:37:05 [2025-03-25 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757090', 'tblTempUsageDetail_20' ) start [2025-03-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757090', 'tblTempUsageDetail_20' ) end [2025-03-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757090', 'tblTempVendorCDR_20' ) start [2025-03-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757090', 'tblTempVendorCDR_20' ) end [2025-03-25 04:37:18] Production.INFO: ProcessCDR(1,14757090,1,1,2) [2025-03-25 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757090', 'tblTempUsageDetail_20' ) start [2025-03-25 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757090', 'tblTempUsageDetail_20' ) end [2025-03-25 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:37:21] Production.INFO: ==29188== Releasing lock... [2025-03-25 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:38:05 [end_date_ymd] => 2025-03-25 04:38:05 [RateCDR] => 1 ) [2025-03-25 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:38:05' and `end` < '2025-03-25 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:38:18] Production.INFO: count ==351 [2025-03-25 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:38:05 - End Time 2025-03-25 04:38:05 [2025-03-25 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757095', 'tblTempUsageDetail_20' ) start [2025-03-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757095', 'tblTempUsageDetail_20' ) end [2025-03-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757095', 'tblTempVendorCDR_20' ) start [2025-03-25 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757095', 'tblTempVendorCDR_20' ) end [2025-03-25 04:38:18] Production.INFO: ProcessCDR(1,14757095,1,1,2) [2025-03-25 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757095', 'tblTempUsageDetail_20' ) start [2025-03-25 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757095', 'tblTempUsageDetail_20' ) end [2025-03-25 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:38:21] Production.INFO: ==29281== Releasing lock... [2025-03-25 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:39:05 [end_date_ymd] => 2025-03-25 04:39:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:39:05' and `end` < '2025-03-25 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-03-25 04:39:17] Production.INFO: count ==350 [2025-03-25 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:39:05 - End Time 2025-03-25 04:39:05 [2025-03-25 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757100', 'tblTempUsageDetail_20' ) start [2025-03-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757100', 'tblTempUsageDetail_20' ) end [2025-03-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757100', 'tblTempVendorCDR_20' ) start [2025-03-25 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757100', 'tblTempVendorCDR_20' ) end [2025-03-25 04:39:17] Production.INFO: ProcessCDR(1,14757100,1,1,2) [2025-03-25 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757100', 'tblTempUsageDetail_20' ) start [2025-03-25 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757100', 'tblTempUsageDetail_20' ) end [2025-03-25 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:39:21] Production.INFO: ==29366== Releasing lock... [2025-03-25 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:40:06 [end_date_ymd] => 2025-03-25 04:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:40:06' and `end` < '2025-03-25 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-03-25 04:40:19] Production.INFO: count ==327 [2025-03-25 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:40:06 - End Time 2025-03-25 04:40:06 [2025-03-25 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757106', 'tblTempUsageDetail_20' ) start [2025-03-25 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757106', 'tblTempUsageDetail_20' ) end [2025-03-25 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757106', 'tblTempVendorCDR_20' ) start [2025-03-25 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757106', 'tblTempVendorCDR_20' ) end [2025-03-25 04:40:19] Production.INFO: ProcessCDR(1,14757106,1,1,2) [2025-03-25 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757106', 'tblTempUsageDetail_20' ) start [2025-03-25 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757106', 'tblTempUsageDetail_20' ) end [2025-03-25 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:40:22] Production.INFO: ==29491== Releasing lock... [2025-03-25 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:41:05 [end_date_ymd] => 2025-03-25 04:41:05 [RateCDR] => 1 ) [2025-03-25 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:41:05' and `end` < '2025-03-25 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:41:17] Production.INFO: count ==309 [2025-03-25 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:41:05 - End Time 2025-03-25 04:41:05 [2025-03-25 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757111', 'tblTempUsageDetail_20' ) start [2025-03-25 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757111', 'tblTempUsageDetail_20' ) end [2025-03-25 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757111', 'tblTempVendorCDR_20' ) start [2025-03-25 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757111', 'tblTempVendorCDR_20' ) end [2025-03-25 04:41:17] Production.INFO: ProcessCDR(1,14757111,1,1,2) [2025-03-25 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757111', 'tblTempUsageDetail_20' ) start [2025-03-25 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757111', 'tblTempUsageDetail_20' ) end [2025-03-25 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:41:21] Production.INFO: ==29579== Releasing lock... [2025-03-25 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:41:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:42:05 [end_date_ymd] => 2025-03-25 04:42:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:42:05' and `end` < '2025-03-25 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-03-25 04:42:18] Production.INFO: count ==309 [2025-03-25 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:42:05 - End Time 2025-03-25 04:42:05 [2025-03-25 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757116', 'tblTempUsageDetail_20' ) start [2025-03-25 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757116', 'tblTempUsageDetail_20' ) end [2025-03-25 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757116', 'tblTempVendorCDR_20' ) start [2025-03-25 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757116', 'tblTempVendorCDR_20' ) end [2025-03-25 04:42:18] Production.INFO: ProcessCDR(1,14757116,1,1,2) [2025-03-25 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757116', 'tblTempUsageDetail_20' ) start [2025-03-25 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757116', 'tblTempUsageDetail_20' ) end [2025-03-25 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:42:22] Production.INFO: ==29673== Releasing lock... [2025-03-25 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:43:06 [end_date_ymd] => 2025-03-25 04:43:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:43:06' and `end` < '2025-03-25 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-03-25 04:43:18] Production.INFO: count ==295 [2025-03-25 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:43:06 - End Time 2025-03-25 04:43:06 [2025-03-25 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757121', 'tblTempUsageDetail_20' ) start [2025-03-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757121', 'tblTempUsageDetail_20' ) end [2025-03-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757121', 'tblTempVendorCDR_20' ) start [2025-03-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757121', 'tblTempVendorCDR_20' ) end [2025-03-25 04:43:18] Production.INFO: ProcessCDR(1,14757121,1,1,2) [2025-03-25 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757121', 'tblTempUsageDetail_20' ) start [2025-03-25 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757121', 'tblTempUsageDetail_20' ) end [2025-03-25 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:43:22] Production.INFO: ==29764== Releasing lock... [2025-03-25 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:44:05 [end_date_ymd] => 2025-03-25 04:44:05 [RateCDR] => 1 ) [2025-03-25 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:44:05' and `end` < '2025-03-25 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:44:17] Production.INFO: count ==295 [2025-03-25 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:44:05 - End Time 2025-03-25 04:44:05 [2025-03-25 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757126', 'tblTempUsageDetail_20' ) start [2025-03-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757126', 'tblTempUsageDetail_20' ) end [2025-03-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757126', 'tblTempVendorCDR_20' ) start [2025-03-25 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757126', 'tblTempVendorCDR_20' ) end [2025-03-25 04:44:17] Production.INFO: ProcessCDR(1,14757126,1,1,2) [2025-03-25 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757126', 'tblTempUsageDetail_20' ) start [2025-03-25 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757126', 'tblTempUsageDetail_20' ) end [2025-03-25 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:44:22] Production.INFO: ==29852== Releasing lock... [2025-03-25 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:44:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:45:06 [end_date_ymd] => 2025-03-25 04:45:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:45:06' and `end` < '2025-03-25 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-03-25 04:45:19] Production.INFO: count ==294 [2025-03-25 04:45:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:45:06 - End Time 2025-03-25 04:45:06 [2025-03-25 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757131', 'tblTempUsageDetail_20' ) start [2025-03-25 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757131', 'tblTempUsageDetail_20' ) end [2025-03-25 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757131', 'tblTempVendorCDR_20' ) start [2025-03-25 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757131', 'tblTempVendorCDR_20' ) end [2025-03-25 04:45:19] Production.INFO: ProcessCDR(1,14757131,1,1,2) [2025-03-25 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757131', 'tblTempUsageDetail_20' ) start [2025-03-25 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757131', 'tblTempUsageDetail_20' ) end [2025-03-25 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:45:22] Production.INFO: ==29941== Releasing lock... [2025-03-25 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:45:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:46:06 [end_date_ymd] => 2025-03-25 04:46:06 [RateCDR] => 1 ) [2025-03-25 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:46:06' and `end` < '2025-03-25 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:46:18] Production.INFO: count ==294 [2025-03-25 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:46:06 - End Time 2025-03-25 04:46:06 [2025-03-25 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757136', 'tblTempUsageDetail_20' ) start [2025-03-25 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757136', 'tblTempUsageDetail_20' ) end [2025-03-25 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757136', 'tblTempVendorCDR_20' ) start [2025-03-25 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757136', 'tblTempVendorCDR_20' ) end [2025-03-25 04:46:18] Production.INFO: ProcessCDR(1,14757136,1,1,2) [2025-03-25 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757136', 'tblTempUsageDetail_20' ) start [2025-03-25 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757136', 'tblTempUsageDetail_20' ) end [2025-03-25 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:46:22] Production.INFO: ==30029== Releasing lock... [2025-03-25 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:46:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:47:05 [end_date_ymd] => 2025-03-25 04:47:05 [RateCDR] => 1 ) [2025-03-25 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:47:05' and `end` < '2025-03-25 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:47:18] Production.INFO: count ==294 [2025-03-25 04:47:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:47:05 - End Time 2025-03-25 04:47:05 [2025-03-25 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757141', 'tblTempUsageDetail_20' ) start [2025-03-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757141', 'tblTempUsageDetail_20' ) end [2025-03-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757141', 'tblTempVendorCDR_20' ) start [2025-03-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757141', 'tblTempVendorCDR_20' ) end [2025-03-25 04:47:19] Production.INFO: ProcessCDR(1,14757141,1,1,2) [2025-03-25 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757141', 'tblTempUsageDetail_20' ) start [2025-03-25 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757141', 'tblTempUsageDetail_20' ) end [2025-03-25 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:47:22] Production.INFO: ==30116== Releasing lock... [2025-03-25 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:47:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:48:05 [end_date_ymd] => 2025-03-25 04:48:05 [RateCDR] => 1 ) [2025-03-25 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:48:05' and `end` < '2025-03-25 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:48:18] Production.INFO: count ==294 [2025-03-25 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:48:05 - End Time 2025-03-25 04:48:05 [2025-03-25 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757146', 'tblTempUsageDetail_20' ) start [2025-03-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757146', 'tblTempUsageDetail_20' ) end [2025-03-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757146', 'tblTempVendorCDR_20' ) start [2025-03-25 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757146', 'tblTempVendorCDR_20' ) end [2025-03-25 04:48:18] Production.INFO: ProcessCDR(1,14757146,1,1,2) [2025-03-25 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757146', 'tblTempUsageDetail_20' ) start [2025-03-25 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757146', 'tblTempUsageDetail_20' ) end [2025-03-25 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:48:21] Production.INFO: ==30208== Releasing lock... [2025-03-25 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:48:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:49:06 [end_date_ymd] => 2025-03-25 04:49:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:49:06' and `end` < '2025-03-25 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-03-25 04:49:19] Production.INFO: count ==291 [2025-03-25 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:49:06 - End Time 2025-03-25 04:49:06 [2025-03-25 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757151', 'tblTempUsageDetail_20' ) start [2025-03-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757151', 'tblTempUsageDetail_20' ) end [2025-03-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757151', 'tblTempVendorCDR_20' ) start [2025-03-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757151', 'tblTempVendorCDR_20' ) end [2025-03-25 04:49:19] Production.INFO: ProcessCDR(1,14757151,1,1,2) [2025-03-25 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757151', 'tblTempUsageDetail_20' ) start [2025-03-25 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757151', 'tblTempUsageDetail_20' ) end [2025-03-25 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:49:22] Production.INFO: ==30305== Releasing lock... [2025-03-25 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:50:05 [end_date_ymd] => 2025-03-25 04:50:05 [RateCDR] => 1 ) [2025-03-25 04: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-03-25 01:50:05' and `end` < '2025-03-25 04: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-03-25 04:50:18] Production.INFO: count ==285 [2025-03-25 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:50:05 - End Time 2025-03-25 04:50:05 [2025-03-25 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757157', 'tblTempUsageDetail_20' ) start [2025-03-25 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757157', 'tblTempUsageDetail_20' ) end [2025-03-25 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757157', 'tblTempVendorCDR_20' ) start [2025-03-25 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757157', 'tblTempVendorCDR_20' ) end [2025-03-25 04:50:18] Production.INFO: ProcessCDR(1,14757157,1,1,2) [2025-03-25 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757157', 'tblTempUsageDetail_20' ) start [2025-03-25 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757157', 'tblTempUsageDetail_20' ) end [2025-03-25 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:50:22] Production.INFO: ==30394== Releasing lock... [2025-03-25 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:51:05 [end_date_ymd] => 2025-03-25 04:51:05 [RateCDR] => 1 ) [2025-03-25 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:51:05' and `end` < '2025-03-25 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:51:17] Production.INFO: count ==283 [2025-03-25 04:51:17] Production.ERROR: pbx CDR StartTime 2025-03-25 01:51:05 - End Time 2025-03-25 04:51:05 [2025-03-25 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757160', 'tblTempUsageDetail_20' ) start [2025-03-25 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757160', 'tblTempUsageDetail_20' ) end [2025-03-25 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757160', 'tblTempVendorCDR_20' ) start [2025-03-25 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757160', 'tblTempVendorCDR_20' ) end [2025-03-25 04:51:17] Production.INFO: ProcessCDR(1,14757160,1,1,2) [2025-03-25 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757160', 'tblTempUsageDetail_20' ) start [2025-03-25 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757160', 'tblTempUsageDetail_20' ) end [2025-03-25 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:51:21] Production.INFO: ==30484== Releasing lock... [2025-03-25 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:52:05 [end_date_ymd] => 2025-03-25 04:52:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:52:05' and `end` < '2025-03-25 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-03-25 04:52:18] Production.INFO: count ==279 [2025-03-25 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:52:05 - End Time 2025-03-25 04:52:05 [2025-03-25 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757167', 'tblTempUsageDetail_20' ) start [2025-03-25 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757167', 'tblTempUsageDetail_20' ) end [2025-03-25 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757167', 'tblTempVendorCDR_20' ) start [2025-03-25 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757167', 'tblTempVendorCDR_20' ) end [2025-03-25 04:52:18] Production.INFO: ProcessCDR(1,14757167,1,1,2) [2025-03-25 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757167', 'tblTempUsageDetail_20' ) start [2025-03-25 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757167', 'tblTempUsageDetail_20' ) end [2025-03-25 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:52:21] Production.INFO: ==30572== Releasing lock... [2025-03-25 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:53:05 [end_date_ymd] => 2025-03-25 04:53:05 [RateCDR] => 1 ) [2025-03-25 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:53:05' and `end` < '2025-03-25 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:53:18] Production.INFO: count ==276 [2025-03-25 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:53:05 - End Time 2025-03-25 04:53:05 [2025-03-25 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757172', 'tblTempUsageDetail_20' ) start [2025-03-25 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757172', 'tblTempUsageDetail_20' ) end [2025-03-25 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757172', 'tblTempVendorCDR_20' ) start [2025-03-25 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757172', 'tblTempVendorCDR_20' ) end [2025-03-25 04:53:18] Production.INFO: ProcessCDR(1,14757172,1,1,2) [2025-03-25 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757172', 'tblTempUsageDetail_20' ) start [2025-03-25 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757172', 'tblTempUsageDetail_20' ) end [2025-03-25 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:53:21] Production.INFO: ==30674== Releasing lock... [2025-03-25 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:54:05 [end_date_ymd] => 2025-03-25 04:54:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 01:54:05' and `end` < '2025-03-25 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-03-25 04:54:18] Production.INFO: count ==276 [2025-03-25 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:54:05 - End Time 2025-03-25 04:54:05 [2025-03-25 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757177', 'tblTempUsageDetail_20' ) start [2025-03-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757177', 'tblTempUsageDetail_20' ) end [2025-03-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757177', 'tblTempVendorCDR_20' ) start [2025-03-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757177', 'tblTempVendorCDR_20' ) end [2025-03-25 04:54:18] Production.INFO: ProcessCDR(1,14757177,1,1,2) [2025-03-25 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757177', 'tblTempUsageDetail_20' ) start [2025-03-25 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757177', 'tblTempUsageDetail_20' ) end [2025-03-25 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:54:21] Production.INFO: ==30764== Releasing lock... [2025-03-25 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:55:05 [end_date_ymd] => 2025-03-25 04:55:05 [RateCDR] => 1 ) [2025-03-25 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:55:05' and `end` < '2025-03-25 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:55:18] Production.INFO: count ==276 [2025-03-25 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:55:05 - End Time 2025-03-25 04:55:05 [2025-03-25 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757182', 'tblTempUsageDetail_20' ) start [2025-03-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757182', 'tblTempUsageDetail_20' ) end [2025-03-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757182', 'tblTempVendorCDR_20' ) start [2025-03-25 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757182', 'tblTempVendorCDR_20' ) end [2025-03-25 04:55:18] Production.INFO: ProcessCDR(1,14757182,1,1,2) [2025-03-25 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757182', 'tblTempUsageDetail_20' ) start [2025-03-25 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757182', 'tblTempUsageDetail_20' ) end [2025-03-25 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:55:21] Production.INFO: ==30851== Releasing lock... [2025-03-25 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:56:06 [end_date_ymd] => 2025-03-25 04:56:06 [RateCDR] => 1 ) [2025-03-25 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:56:06' and `end` < '2025-03-25 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:56:19] Production.INFO: count ==276 [2025-03-25 04:56:19] Production.ERROR: pbx CDR StartTime 2025-03-25 01:56:06 - End Time 2025-03-25 04:56:06 [2025-03-25 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757187', 'tblTempUsageDetail_20' ) start [2025-03-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757187', 'tblTempUsageDetail_20' ) end [2025-03-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757187', 'tblTempVendorCDR_20' ) start [2025-03-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757187', 'tblTempVendorCDR_20' ) end [2025-03-25 04:56:19] Production.INFO: ProcessCDR(1,14757187,1,1,2) [2025-03-25 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757187', 'tblTempUsageDetail_20' ) start [2025-03-25 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757187', 'tblTempUsageDetail_20' ) end [2025-03-25 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:56:23] Production.INFO: ==30978== Releasing lock... [2025-03-25 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:56:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:57:05 [end_date_ymd] => 2025-03-25 04:57:05 [RateCDR] => 1 ) [2025-03-25 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:57:05' and `end` < '2025-03-25 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:57:18] Production.INFO: count ==281 [2025-03-25 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:57:05 - End Time 2025-03-25 04:57:05 [2025-03-25 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757192', 'tblTempUsageDetail_20' ) start [2025-03-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757192', 'tblTempUsageDetail_20' ) end [2025-03-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757192', 'tblTempVendorCDR_20' ) start [2025-03-25 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757192', 'tblTempVendorCDR_20' ) end [2025-03-25 04:57:18] Production.INFO: ProcessCDR(1,14757192,1,1,2) [2025-03-25 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757192', 'tblTempUsageDetail_20' ) start [2025-03-25 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757192', 'tblTempUsageDetail_20' ) end [2025-03-25 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:57:21] Production.INFO: ==31064== Releasing lock... [2025-03-25 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:58:05 [end_date_ymd] => 2025-03-25 04:58:05 [RateCDR] => 1 ) [2025-03-25 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:58:05' and `end` < '2025-03-25 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:58:18] Production.INFO: count ==286 [2025-03-25 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:58:05 - End Time 2025-03-25 04:58:05 [2025-03-25 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757197', 'tblTempUsageDetail_20' ) start [2025-03-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757197', 'tblTempUsageDetail_20' ) end [2025-03-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757197', 'tblTempVendorCDR_20' ) start [2025-03-25 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757197', 'tblTempVendorCDR_20' ) end [2025-03-25 04:58:18] Production.INFO: ProcessCDR(1,14757197,1,1,2) [2025-03-25 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757197', 'tblTempUsageDetail_20' ) start [2025-03-25 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757197', 'tblTempUsageDetail_20' ) end [2025-03-25 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:58:21] Production.INFO: ==31153== Releasing lock... [2025-03-25 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 01:59:05 [end_date_ymd] => 2025-03-25 04:59:05 [RateCDR] => 1 ) [2025-03-25 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 01:59:05' and `end` < '2025-03-25 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 04:59:18] Production.INFO: count ==288 [2025-03-25 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 01:59:05 - End Time 2025-03-25 04:59:05 [2025-03-25 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757202', 'tblTempUsageDetail_20' ) start [2025-03-25 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757202', 'tblTempUsageDetail_20' ) end [2025-03-25 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757202', 'tblTempVendorCDR_20' ) start [2025-03-25 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757202', 'tblTempVendorCDR_20' ) end [2025-03-25 04:59:18] Production.INFO: ProcessCDR(1,14757202,1,1,2) [2025-03-25 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757202', 'tblTempUsageDetail_20' ) start [2025-03-25 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757202', 'tblTempUsageDetail_20' ) end [2025-03-25 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 04:59:22] Production.INFO: ==31238== Releasing lock... [2025-03-25 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 04:59:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:00:06 [end_date_ymd] => 2025-03-25 05:00:06 [RateCDR] => 1 ) [2025-03-25 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:00:06' and `end` < '2025-03-25 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:00:19] Production.INFO: count ==288 [2025-03-25 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 02:00:06 - End Time 2025-03-25 05:00:06 [2025-03-25 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757207', 'tblTempUsageDetail_20' ) start [2025-03-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757207', 'tblTempUsageDetail_20' ) end [2025-03-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757207', 'tblTempVendorCDR_20' ) start [2025-03-25 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757207', 'tblTempVendorCDR_20' ) end [2025-03-25 05:00:19] Production.INFO: ProcessCDR(1,14757207,1,1,2) [2025-03-25 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757207', 'tblTempUsageDetail_20' ) start [2025-03-25 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757207', 'tblTempUsageDetail_20' ) end [2025-03-25 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:00:23] Production.INFO: ==31328== Releasing lock... [2025-03-25 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:00:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:01:05 [end_date_ymd] => 2025-03-25 05:01:05 [RateCDR] => 1 ) [2025-03-25 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:01:05' and `end` < '2025-03-25 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:01:18] Production.INFO: count ==288 [2025-03-25 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:01:05 - End Time 2025-03-25 05:01:05 [2025-03-25 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757213', 'tblTempUsageDetail_20' ) start [2025-03-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757213', 'tblTempUsageDetail_20' ) end [2025-03-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757213', 'tblTempVendorCDR_20' ) start [2025-03-25 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757213', 'tblTempVendorCDR_20' ) end [2025-03-25 05:01:18] Production.INFO: ProcessCDR(1,14757213,1,1,2) [2025-03-25 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757213', 'tblTempUsageDetail_20' ) start [2025-03-25 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757213', 'tblTempUsageDetail_20' ) end [2025-03-25 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:01:21] Production.INFO: ==31431== Releasing lock... [2025-03-25 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:02:06 [end_date_ymd] => 2025-03-25 05:02:06 [RateCDR] => 1 ) [2025-03-25 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:02:06' and `end` < '2025-03-25 05: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-03-25 05:02:20] Production.INFO: count ==288 [2025-03-25 05:02:20] Production.ERROR: pbx CDR StartTime 2025-03-25 02:02:06 - End Time 2025-03-25 05:02:06 [2025-03-25 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757218', 'tblTempUsageDetail_20' ) start [2025-03-25 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757218', 'tblTempUsageDetail_20' ) end [2025-03-25 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757218', 'tblTempVendorCDR_20' ) start [2025-03-25 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757218', 'tblTempVendorCDR_20' ) end [2025-03-25 05:02:20] Production.INFO: ProcessCDR(1,14757218,1,1,2) [2025-03-25 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757218', 'tblTempUsageDetail_20' ) start [2025-03-25 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757218', 'tblTempUsageDetail_20' ) end [2025-03-25 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:02:23] Production.INFO: ==31528== Releasing lock... [2025-03-25 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:02:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:03:06 [end_date_ymd] => 2025-03-25 05:03:06 [RateCDR] => 1 ) [2025-03-25 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:03:06' and `end` < '2025-03-25 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:03:18] Production.INFO: count ==288 [2025-03-25 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:03:06 - End Time 2025-03-25 05:03:06 [2025-03-25 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757223', 'tblTempUsageDetail_20' ) start [2025-03-25 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757223', 'tblTempUsageDetail_20' ) end [2025-03-25 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757223', 'tblTempVendorCDR_20' ) start [2025-03-25 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757223', 'tblTempVendorCDR_20' ) end [2025-03-25 05:03:19] Production.INFO: ProcessCDR(1,14757223,1,1,2) [2025-03-25 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757223', 'tblTempUsageDetail_20' ) start [2025-03-25 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757223', 'tblTempUsageDetail_20' ) end [2025-03-25 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:03:22] Production.INFO: ==31617== Releasing lock... [2025-03-25 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:03:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:04:06 [end_date_ymd] => 2025-03-25 05:04:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:04:06' and `end` < '2025-03-25 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-03-25 05:04:19] Production.INFO: count ==288 [2025-03-25 05:04:19] Production.ERROR: pbx CDR StartTime 2025-03-25 02:04:06 - End Time 2025-03-25 05:04:06 [2025-03-25 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757228', 'tblTempUsageDetail_20' ) start [2025-03-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757228', 'tblTempUsageDetail_20' ) end [2025-03-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757228', 'tblTempVendorCDR_20' ) start [2025-03-25 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757228', 'tblTempVendorCDR_20' ) end [2025-03-25 05:04:19] Production.INFO: ProcessCDR(1,14757228,1,1,2) [2025-03-25 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757228', 'tblTempUsageDetail_20' ) start [2025-03-25 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757228', 'tblTempUsageDetail_20' ) end [2025-03-25 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:04:22] Production.INFO: ==31715== Releasing lock... [2025-03-25 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:04:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:05:05 [end_date_ymd] => 2025-03-25 05:05:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:05:05' and `end` < '2025-03-25 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-03-25 05:05:17] Production.INFO: count ==288 [2025-03-25 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:05:05 - End Time 2025-03-25 05:05:05 [2025-03-25 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757233', 'tblTempUsageDetail_20' ) start [2025-03-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757233', 'tblTempUsageDetail_20' ) end [2025-03-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757233', 'tblTempVendorCDR_20' ) start [2025-03-25 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757233', 'tblTempVendorCDR_20' ) end [2025-03-25 05:05:17] Production.INFO: ProcessCDR(1,14757233,1,1,2) [2025-03-25 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757233', 'tblTempUsageDetail_20' ) start [2025-03-25 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757233', 'tblTempUsageDetail_20' ) end [2025-03-25 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:05:20] Production.INFO: ==31803== Releasing lock... [2025-03-25 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:05:20] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:06:06 [end_date_ymd] => 2025-03-25 05:06:06 [RateCDR] => 1 ) [2025-03-25 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:06:06' and `end` < '2025-03-25 05: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-03-25 05:06:18] Production.INFO: count ==288 [2025-03-25 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:06:06 - End Time 2025-03-25 05:06:06 [2025-03-25 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757238', 'tblTempUsageDetail_20' ) start [2025-03-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757238', 'tblTempUsageDetail_20' ) end [2025-03-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757238', 'tblTempVendorCDR_20' ) start [2025-03-25 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757238', 'tblTempVendorCDR_20' ) end [2025-03-25 05:06:18] Production.INFO: ProcessCDR(1,14757238,1,1,2) [2025-03-25 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757238', 'tblTempUsageDetail_20' ) start [2025-03-25 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757238', 'tblTempUsageDetail_20' ) end [2025-03-25 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:06:22] Production.INFO: ==31890== Releasing lock... [2025-03-25 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:06:22] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:07:05 [end_date_ymd] => 2025-03-25 05:07:05 [RateCDR] => 1 ) [2025-03-25 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:07:05' and `end` < '2025-03-25 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:07:18] Production.INFO: count ==288 [2025-03-25 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:07:05 - End Time 2025-03-25 05:07:05 [2025-03-25 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757243', 'tblTempUsageDetail_20' ) start [2025-03-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757243', 'tblTempUsageDetail_20' ) end [2025-03-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757243', 'tblTempVendorCDR_20' ) start [2025-03-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757243', 'tblTempVendorCDR_20' ) end [2025-03-25 05:07:18] Production.INFO: ProcessCDR(1,14757243,1,1,2) [2025-03-25 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757243', 'tblTempUsageDetail_20' ) start [2025-03-25 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757243', 'tblTempUsageDetail_20' ) end [2025-03-25 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:07:21] Production.INFO: ==31975== Releasing lock... [2025-03-25 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:08:05 [end_date_ymd] => 2025-03-25 05:08:05 [RateCDR] => 1 ) [2025-03-25 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:08:05' and `end` < '2025-03-25 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:08:17] Production.INFO: count ==288 [2025-03-25 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:08:05 - End Time 2025-03-25 05:08:05 [2025-03-25 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757248', 'tblTempUsageDetail_20' ) start [2025-03-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757248', 'tblTempUsageDetail_20' ) end [2025-03-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757248', 'tblTempVendorCDR_20' ) start [2025-03-25 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757248', 'tblTempVendorCDR_20' ) end [2025-03-25 05:08:18] Production.INFO: ProcessCDR(1,14757248,1,1,2) [2025-03-25 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757248', 'tblTempUsageDetail_20' ) start [2025-03-25 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757248', 'tblTempUsageDetail_20' ) end [2025-03-25 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:08:21] Production.INFO: ==32066== Releasing lock... [2025-03-25 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:09:05 [end_date_ymd] => 2025-03-25 05:09:05 [RateCDR] => 1 ) [2025-03-25 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:09:05' and `end` < '2025-03-25 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:09:17] Production.INFO: count ==288 [2025-03-25 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:09:05 - End Time 2025-03-25 05:09:05 [2025-03-25 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757253', 'tblTempUsageDetail_20' ) start [2025-03-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757253', 'tblTempUsageDetail_20' ) end [2025-03-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757253', 'tblTempVendorCDR_20' ) start [2025-03-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757253', 'tblTempVendorCDR_20' ) end [2025-03-25 05:09:18] Production.INFO: ProcessCDR(1,14757253,1,1,2) [2025-03-25 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757253', 'tblTempUsageDetail_20' ) start [2025-03-25 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757253', 'tblTempUsageDetail_20' ) end [2025-03-25 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:09:21] Production.INFO: ==32155== Releasing lock... [2025-03-25 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:09:21] Production.INFO: 31 MB #Memory Used# [2025-03-25 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:10:07 [end_date_ymd] => 2025-03-25 05:10:07 [RateCDR] => 1 ) [2025-03-25 05:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:10:07' and `end` < '2025-03-25 05:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:10:19] Production.INFO: count ==280 [2025-03-25 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 02:10:07 - End Time 2025-03-25 05:10:07 [2025-03-25 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757259', 'tblTempUsageDetail_20' ) start [2025-03-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757259', 'tblTempUsageDetail_20' ) end [2025-03-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757259', 'tblTempVendorCDR_20' ) start [2025-03-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757259', 'tblTempVendorCDR_20' ) end [2025-03-25 05:10:19] Production.INFO: ProcessCDR(1,14757259,1,1,2) [2025-03-25 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757259', 'tblTempUsageDetail_20' ) start [2025-03-25 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757259', 'tblTempUsageDetail_20' ) end [2025-03-25 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:10:23] Production.INFO: ==32240== Releasing lock... [2025-03-25 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:11:05 [end_date_ymd] => 2025-03-25 05:11:05 [RateCDR] => 1 ) [2025-03-25 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:11:05' and `end` < '2025-03-25 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:11:17] Production.INFO: count ==272 [2025-03-25 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:11:05 - End Time 2025-03-25 05:11:05 [2025-03-25 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757264', 'tblTempUsageDetail_20' ) start [2025-03-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757264', 'tblTempUsageDetail_20' ) end [2025-03-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757264', 'tblTempVendorCDR_20' ) start [2025-03-25 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757264', 'tblTempVendorCDR_20' ) end [2025-03-25 05:11:17] Production.INFO: ProcessCDR(1,14757264,1,1,2) [2025-03-25 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757264', 'tblTempUsageDetail_20' ) start [2025-03-25 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757264', 'tblTempUsageDetail_20' ) end [2025-03-25 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:11:21] Production.INFO: ==32370== Releasing lock... [2025-03-25 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:12:06 [end_date_ymd] => 2025-03-25 05:12:06 [RateCDR] => 1 ) [2025-03-25 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:12:06' and `end` < '2025-03-25 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:12:18] Production.INFO: count ==265 [2025-03-25 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:12:06 - End Time 2025-03-25 05:12:06 [2025-03-25 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757269', 'tblTempUsageDetail_20' ) start [2025-03-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757269', 'tblTempUsageDetail_20' ) end [2025-03-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757269', 'tblTempVendorCDR_20' ) start [2025-03-25 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757269', 'tblTempVendorCDR_20' ) end [2025-03-25 05:12:18] Production.INFO: ProcessCDR(1,14757269,1,1,2) [2025-03-25 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757269', 'tblTempUsageDetail_20' ) start [2025-03-25 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757269', 'tblTempUsageDetail_20' ) end [2025-03-25 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:12:22] Production.INFO: ==32456== Releasing lock... [2025-03-25 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:13:05 [end_date_ymd] => 2025-03-25 05:13:05 [RateCDR] => 1 ) [2025-03-25 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:13:05' and `end` < '2025-03-25 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:13:17] Production.INFO: count ==262 [2025-03-25 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:13:05 - End Time 2025-03-25 05:13:05 [2025-03-25 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757274', 'tblTempUsageDetail_20' ) start [2025-03-25 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757274', 'tblTempUsageDetail_20' ) end [2025-03-25 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757274', 'tblTempVendorCDR_20' ) start [2025-03-25 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757274', 'tblTempVendorCDR_20' ) end [2025-03-25 05:13:17] Production.INFO: ProcessCDR(1,14757274,1,1,2) [2025-03-25 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757274', 'tblTempUsageDetail_20' ) start [2025-03-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757274', 'tblTempUsageDetail_20' ) end [2025-03-25 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:13:21] Production.INFO: ==32543== Releasing lock... [2025-03-25 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:14:05 [end_date_ymd] => 2025-03-25 05:14:05 [RateCDR] => 1 ) [2025-03-25 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:14:05' and `end` < '2025-03-25 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:14:17] Production.INFO: count ==262 [2025-03-25 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:14:05 - End Time 2025-03-25 05:14:05 [2025-03-25 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757279', 'tblTempUsageDetail_20' ) start [2025-03-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757279', 'tblTempUsageDetail_20' ) end [2025-03-25 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757279', 'tblTempVendorCDR_20' ) start [2025-03-25 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757279', 'tblTempVendorCDR_20' ) end [2025-03-25 05:14:18] Production.INFO: ProcessCDR(1,14757279,1,1,2) [2025-03-25 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757279', 'tblTempUsageDetail_20' ) start [2025-03-25 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757279', 'tblTempUsageDetail_20' ) end [2025-03-25 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:14:21] Production.INFO: ==32629== Releasing lock... [2025-03-25 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:15:05 [end_date_ymd] => 2025-03-25 05:15:05 [RateCDR] => 1 ) [2025-03-25 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:15:05' and `end` < '2025-03-25 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:15:18] Production.INFO: count ==262 [2025-03-25 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:15:05 - End Time 2025-03-25 05:15:05 [2025-03-25 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757284', 'tblTempUsageDetail_20' ) start [2025-03-25 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757284', 'tblTempUsageDetail_20' ) end [2025-03-25 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757284', 'tblTempVendorCDR_20' ) start [2025-03-25 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757284', 'tblTempVendorCDR_20' ) end [2025-03-25 05:15:18] Production.INFO: ProcessCDR(1,14757284,1,1,2) [2025-03-25 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757284', 'tblTempUsageDetail_20' ) start [2025-03-25 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757284', 'tblTempUsageDetail_20' ) end [2025-03-25 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:15:21] Production.INFO: ==32721== Releasing lock... [2025-03-25 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:16:05 [end_date_ymd] => 2025-03-25 05:16:05 [RateCDR] => 1 ) [2025-03-25 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:16:05' and `end` < '2025-03-25 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:16:17] Production.INFO: count ==268 [2025-03-25 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:16:05 - End Time 2025-03-25 05:16:05 [2025-03-25 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757289', 'tblTempUsageDetail_20' ) start [2025-03-25 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757289', 'tblTempUsageDetail_20' ) end [2025-03-25 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757289', 'tblTempVendorCDR_20' ) start [2025-03-25 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757289', 'tblTempVendorCDR_20' ) end [2025-03-25 05:16:17] Production.INFO: ProcessCDR(1,14757289,1,1,2) [2025-03-25 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757289', 'tblTempUsageDetail_20' ) start [2025-03-25 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757289', 'tblTempUsageDetail_20' ) end [2025-03-25 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:16:21] Production.INFO: ==363== Releasing lock... [2025-03-25 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:17:05 [end_date_ymd] => 2025-03-25 05:17:05 [RateCDR] => 1 ) [2025-03-25 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:17:05' and `end` < '2025-03-25 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:17:17] Production.INFO: count ==264 [2025-03-25 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:17:05 - End Time 2025-03-25 05:17:05 [2025-03-25 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757294', 'tblTempUsageDetail_20' ) start [2025-03-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757294', 'tblTempUsageDetail_20' ) end [2025-03-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757294', 'tblTempVendorCDR_20' ) start [2025-03-25 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757294', 'tblTempVendorCDR_20' ) end [2025-03-25 05:17:17] Production.INFO: ProcessCDR(1,14757294,1,1,2) [2025-03-25 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757294', 'tblTempUsageDetail_20' ) start [2025-03-25 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757294', 'tblTempUsageDetail_20' ) end [2025-03-25 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:17:20] Production.INFO: ==447== Releasing lock... [2025-03-25 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:18:05 [end_date_ymd] => 2025-03-25 05:18:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:18:05' and `end` < '2025-03-25 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-03-25 05:18:17] Production.INFO: count ==256 [2025-03-25 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:18:05 - End Time 2025-03-25 05:18:05 [2025-03-25 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757299', 'tblTempUsageDetail_20' ) start [2025-03-25 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757299', 'tblTempUsageDetail_20' ) end [2025-03-25 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757299', 'tblTempVendorCDR_20' ) start [2025-03-25 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757299', 'tblTempVendorCDR_20' ) end [2025-03-25 05:18:17] Production.INFO: ProcessCDR(1,14757299,1,1,2) [2025-03-25 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757299', 'tblTempUsageDetail_20' ) start [2025-03-25 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757299', 'tblTempUsageDetail_20' ) end [2025-03-25 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:18:20] Production.INFO: ==548== Releasing lock... [2025-03-25 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:18:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:19:05 [end_date_ymd] => 2025-03-25 05:19:05 [RateCDR] => 1 ) [2025-03-25 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:19:05' and `end` < '2025-03-25 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:19:18] Production.INFO: count ==246 [2025-03-25 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:19:05 - End Time 2025-03-25 05:19:05 [2025-03-25 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757304', 'tblTempUsageDetail_20' ) start [2025-03-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757304', 'tblTempUsageDetail_20' ) end [2025-03-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757304', 'tblTempVendorCDR_20' ) start [2025-03-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757304', 'tblTempVendorCDR_20' ) end [2025-03-25 05:19:18] Production.INFO: ProcessCDR(1,14757304,1,1,2) [2025-03-25 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757304', 'tblTempUsageDetail_20' ) start [2025-03-25 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757304', 'tblTempUsageDetail_20' ) end [2025-03-25 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:19:21] Production.INFO: ==646== Releasing lock... [2025-03-25 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:19:21] Production.INFO: 30 MB #Memory Used# [2025-03-25 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:20:05 [end_date_ymd] => 2025-03-25 05:20:05 [RateCDR] => 1 ) [2025-03-25 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:20:05' and `end` < '2025-03-25 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:20:18] Production.INFO: count ==236 [2025-03-25 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:20:05 - End Time 2025-03-25 05:20:05 [2025-03-25 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757309', 'tblTempUsageDetail_20' ) start [2025-03-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757309', 'tblTempUsageDetail_20' ) end [2025-03-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757309', 'tblTempVendorCDR_20' ) start [2025-03-25 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757309', 'tblTempVendorCDR_20' ) end [2025-03-25 05:20:18] Production.INFO: ProcessCDR(1,14757309,1,1,2) [2025-03-25 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757309', 'tblTempUsageDetail_20' ) start [2025-03-25 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757309', 'tblTempUsageDetail_20' ) end [2025-03-25 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:20:21] Production.INFO: ==764== Releasing lock... [2025-03-25 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:21:05 [end_date_ymd] => 2025-03-25 05:21:05 [RateCDR] => 1 ) [2025-03-25 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:21:05' and `end` < '2025-03-25 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:21:18] Production.INFO: count ==224 [2025-03-25 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:21:05 - End Time 2025-03-25 05:21:05 [2025-03-25 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757315', 'tblTempUsageDetail_20' ) start [2025-03-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757315', 'tblTempUsageDetail_20' ) end [2025-03-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757315', 'tblTempVendorCDR_20' ) start [2025-03-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757315', 'tblTempVendorCDR_20' ) end [2025-03-25 05:21:18] Production.INFO: ProcessCDR(1,14757315,1,1,2) [2025-03-25 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757315', 'tblTempUsageDetail_20' ) start [2025-03-25 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757315', 'tblTempUsageDetail_20' ) end [2025-03-25 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:21:21] Production.INFO: ==860== Releasing lock... [2025-03-25 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:22:05 [end_date_ymd] => 2025-03-25 05:22:05 [RateCDR] => 1 ) [2025-03-25 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:22:05' and `end` < '2025-03-25 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:22:18] Production.INFO: count ==216 [2025-03-25 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:22:05 - End Time 2025-03-25 05:22:05 [2025-03-25 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757320', 'tblTempUsageDetail_20' ) start [2025-03-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757320', 'tblTempUsageDetail_20' ) end [2025-03-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757320', 'tblTempVendorCDR_20' ) start [2025-03-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757320', 'tblTempVendorCDR_20' ) end [2025-03-25 05:22:18] Production.INFO: ProcessCDR(1,14757320,1,1,2) [2025-03-25 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757320', 'tblTempUsageDetail_20' ) start [2025-03-25 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757320', 'tblTempUsageDetail_20' ) end [2025-03-25 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:22:21] Production.INFO: ==946== Releasing lock... [2025-03-25 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:23:05 [end_date_ymd] => 2025-03-25 05:23:05 [RateCDR] => 1 ) [2025-03-25 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:23:05' and `end` < '2025-03-25 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:23:18] Production.INFO: count ==212 [2025-03-25 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:23:05 - End Time 2025-03-25 05:23:05 [2025-03-25 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757325', 'tblTempUsageDetail_20' ) start [2025-03-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757325', 'tblTempUsageDetail_20' ) end [2025-03-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757325', 'tblTempVendorCDR_20' ) start [2025-03-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757325', 'tblTempVendorCDR_20' ) end [2025-03-25 05:23:18] Production.INFO: ProcessCDR(1,14757325,1,1,2) [2025-03-25 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757325', 'tblTempUsageDetail_20' ) start [2025-03-25 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757325', 'tblTempUsageDetail_20' ) end [2025-03-25 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:23:21] Production.INFO: ==1034== Releasing lock... [2025-03-25 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:23:21] Production.INFO: 30 MB #Memory Used# [2025-03-25 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:24:05 [end_date_ymd] => 2025-03-25 05:24:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:24:05' and `end` < '2025-03-25 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-03-25 05:24:18] Production.INFO: count ==202 [2025-03-25 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:24:05 - End Time 2025-03-25 05:24:05 [2025-03-25 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757330', 'tblTempUsageDetail_20' ) start [2025-03-25 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757330', 'tblTempUsageDetail_20' ) end [2025-03-25 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757330', 'tblTempVendorCDR_20' ) start [2025-03-25 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757330', 'tblTempVendorCDR_20' ) end [2025-03-25 05:24:18] Production.INFO: ProcessCDR(1,14757330,1,1,2) [2025-03-25 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757330', 'tblTempUsageDetail_20' ) start [2025-03-25 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757330', 'tblTempUsageDetail_20' ) end [2025-03-25 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:24:22] Production.INFO: ==1122== Releasing lock... [2025-03-25 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:25:05 [end_date_ymd] => 2025-03-25 05:25:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:25:05' and `end` < '2025-03-25 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-03-25 05:25:17] Production.INFO: count ==194 [2025-03-25 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:25:05 - End Time 2025-03-25 05:25:05 [2025-03-25 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757335', 'tblTempUsageDetail_20' ) start [2025-03-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757335', 'tblTempUsageDetail_20' ) end [2025-03-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757335', 'tblTempVendorCDR_20' ) start [2025-03-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757335', 'tblTempVendorCDR_20' ) end [2025-03-25 05:25:17] Production.INFO: ProcessCDR(1,14757335,1,1,2) [2025-03-25 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757335', 'tblTempUsageDetail_20' ) start [2025-03-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757335', 'tblTempUsageDetail_20' ) end [2025-03-25 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:25:21] Production.INFO: ==1215== Releasing lock... [2025-03-25 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:25:21] Production.INFO: 30 MB #Memory Used# [2025-03-25 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:26:05 [end_date_ymd] => 2025-03-25 05:26:05 [RateCDR] => 1 ) [2025-03-25 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:26:05' and `end` < '2025-03-25 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:26:18] Production.INFO: count ==182 [2025-03-25 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:26:05 - End Time 2025-03-25 05:26:05 [2025-03-25 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757340', 'tblTempUsageDetail_20' ) start [2025-03-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757340', 'tblTempUsageDetail_20' ) end [2025-03-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757340', 'tblTempVendorCDR_20' ) start [2025-03-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757340', 'tblTempVendorCDR_20' ) end [2025-03-25 05:26:18] Production.INFO: ProcessCDR(1,14757340,1,1,2) [2025-03-25 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757340', 'tblTempUsageDetail_20' ) start [2025-03-25 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757340', 'tblTempUsageDetail_20' ) end [2025-03-25 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:26:21] Production.INFO: ==1371== Releasing lock... [2025-03-25 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:27:05 [end_date_ymd] => 2025-03-25 05:27:05 [RateCDR] => 1 ) [2025-03-25 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:27:05' and `end` < '2025-03-25 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:27:17] Production.INFO: count ==180 [2025-03-25 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:27:05 - End Time 2025-03-25 05:27:05 [2025-03-25 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757345', 'tblTempUsageDetail_20' ) start [2025-03-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757345', 'tblTempUsageDetail_20' ) end [2025-03-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757345', 'tblTempVendorCDR_20' ) start [2025-03-25 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757345', 'tblTempVendorCDR_20' ) end [2025-03-25 05:27:17] Production.INFO: ProcessCDR(1,14757345,1,1,2) [2025-03-25 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757345', 'tblTempUsageDetail_20' ) start [2025-03-25 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757345', 'tblTempUsageDetail_20' ) end [2025-03-25 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:27:21] Production.INFO: ==1472== Releasing lock... [2025-03-25 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:27:21] Production.INFO: 30 MB #Memory Used# [2025-03-25 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:28:05 [end_date_ymd] => 2025-03-25 05:28:05 [RateCDR] => 1 ) [2025-03-25 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:28:05' and `end` < '2025-03-25 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:28:18] Production.INFO: count ==179 [2025-03-25 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:28:05 - End Time 2025-03-25 05:28:05 [2025-03-25 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757350', 'tblTempUsageDetail_20' ) start [2025-03-25 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757350', 'tblTempUsageDetail_20' ) end [2025-03-25 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757350', 'tblTempVendorCDR_20' ) start [2025-03-25 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757350', 'tblTempVendorCDR_20' ) end [2025-03-25 05:28:18] Production.INFO: ProcessCDR(1,14757350,1,1,2) [2025-03-25 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757350', 'tblTempUsageDetail_20' ) start [2025-03-25 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757350', 'tblTempUsageDetail_20' ) end [2025-03-25 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:28:21] Production.INFO: ==1618== Releasing lock... [2025-03-25 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:28:21] Production.INFO: 30 MB #Memory Used# [2025-03-25 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:29:05 [end_date_ymd] => 2025-03-25 05:29:05 [RateCDR] => 1 ) [2025-03-25 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:29:05' and `end` < '2025-03-25 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:29:18] Production.INFO: count ==176 [2025-03-25 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:29:05 - End Time 2025-03-25 05:29:05 [2025-03-25 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757355', 'tblTempUsageDetail_20' ) start [2025-03-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757355', 'tblTempUsageDetail_20' ) end [2025-03-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757355', 'tblTempVendorCDR_20' ) start [2025-03-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757355', 'tblTempVendorCDR_20' ) end [2025-03-25 05:29:18] Production.INFO: ProcessCDR(1,14757355,1,1,2) [2025-03-25 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757355', 'tblTempUsageDetail_20' ) start [2025-03-25 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757355', 'tblTempUsageDetail_20' ) end [2025-03-25 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:29:21] Production.INFO: ==1721== Releasing lock... [2025-03-25 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:30:06 [end_date_ymd] => 2025-03-25 05:30:06 [RateCDR] => 1 ) [2025-03-25 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:30:06' and `end` < '2025-03-25 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:30:19] Production.INFO: count ==166 [2025-03-25 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 02:30:06 - End Time 2025-03-25 05:30:06 [2025-03-25 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757361', 'tblTempUsageDetail_20' ) start [2025-03-25 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757361', 'tblTempUsageDetail_20' ) end [2025-03-25 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757361', 'tblTempVendorCDR_20' ) start [2025-03-25 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757361', 'tblTempVendorCDR_20' ) end [2025-03-25 05:30:19] Production.INFO: ProcessCDR(1,14757361,1,1,2) [2025-03-25 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757361', 'tblTempUsageDetail_20' ) start [2025-03-25 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757361', 'tblTempUsageDetail_20' ) end [2025-03-25 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:30:22] Production.INFO: ==1817== Releasing lock... [2025-03-25 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:31:05 [end_date_ymd] => 2025-03-25 05:31:05 [RateCDR] => 1 ) [2025-03-25 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:31:05' and `end` < '2025-03-25 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:31:18] Production.INFO: count ==166 [2025-03-25 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:31:05 - End Time 2025-03-25 05:31:05 [2025-03-25 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757366', 'tblTempUsageDetail_20' ) start [2025-03-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757366', 'tblTempUsageDetail_20' ) end [2025-03-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757366', 'tblTempVendorCDR_20' ) start [2025-03-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757366', 'tblTempVendorCDR_20' ) end [2025-03-25 05:31:18] Production.INFO: ProcessCDR(1,14757366,1,1,2) [2025-03-25 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757366', 'tblTempUsageDetail_20' ) start [2025-03-25 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757366', 'tblTempUsageDetail_20' ) end [2025-03-25 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:31:21] Production.INFO: ==1924== Releasing lock... [2025-03-25 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:32:05 [end_date_ymd] => 2025-03-25 05:32:05 [RateCDR] => 1 ) [2025-03-25 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:32:05' and `end` < '2025-03-25 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:32:17] Production.INFO: count ==166 [2025-03-25 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:32:05 - End Time 2025-03-25 05:32:05 [2025-03-25 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757371', 'tblTempUsageDetail_20' ) start [2025-03-25 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757371', 'tblTempUsageDetail_20' ) end [2025-03-25 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757371', 'tblTempVendorCDR_20' ) start [2025-03-25 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757371', 'tblTempVendorCDR_20' ) end [2025-03-25 05:32:17] Production.INFO: ProcessCDR(1,14757371,1,1,2) [2025-03-25 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757371', 'tblTempUsageDetail_20' ) start [2025-03-25 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757371', 'tblTempUsageDetail_20' ) end [2025-03-25 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:32:21] Production.INFO: ==2025== Releasing lock... [2025-03-25 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:33:05 [end_date_ymd] => 2025-03-25 05:33:05 [RateCDR] => 1 ) [2025-03-25 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:33:05' and `end` < '2025-03-25 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:33:17] Production.INFO: count ==166 [2025-03-25 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:33:05 - End Time 2025-03-25 05:33:05 [2025-03-25 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757376', 'tblTempUsageDetail_20' ) start [2025-03-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757376', 'tblTempUsageDetail_20' ) end [2025-03-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757376', 'tblTempVendorCDR_20' ) start [2025-03-25 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757376', 'tblTempVendorCDR_20' ) end [2025-03-25 05:33:17] Production.INFO: ProcessCDR(1,14757376,1,1,2) [2025-03-25 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757376', 'tblTempUsageDetail_20' ) start [2025-03-25 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757376', 'tblTempUsageDetail_20' ) end [2025-03-25 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:33:20] Production.INFO: ==2124== Releasing lock... [2025-03-25 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:33:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:34:05 [end_date_ymd] => 2025-03-25 05:34:05 [RateCDR] => 1 ) [2025-03-25 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:34:05' and `end` < '2025-03-25 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:34:17] Production.INFO: count ==166 [2025-03-25 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:34:05 - End Time 2025-03-25 05:34:05 [2025-03-25 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757381', 'tblTempUsageDetail_20' ) start [2025-03-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757381', 'tblTempUsageDetail_20' ) end [2025-03-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757381', 'tblTempVendorCDR_20' ) start [2025-03-25 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757381', 'tblTempVendorCDR_20' ) end [2025-03-25 05:34:18] Production.INFO: ProcessCDR(1,14757381,1,1,2) [2025-03-25 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757381', 'tblTempUsageDetail_20' ) start [2025-03-25 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757381', 'tblTempUsageDetail_20' ) end [2025-03-25 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:34:21] Production.INFO: ==2228== Releasing lock... [2025-03-25 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:35:05 [end_date_ymd] => 2025-03-25 05:35:05 [RateCDR] => 1 ) [2025-03-25 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:35:05' and `end` < '2025-03-25 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:35:17] Production.INFO: count ==166 [2025-03-25 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:35:05 - End Time 2025-03-25 05:35:05 [2025-03-25 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757386', 'tblTempUsageDetail_20' ) start [2025-03-25 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757386', 'tblTempUsageDetail_20' ) end [2025-03-25 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757386', 'tblTempVendorCDR_20' ) start [2025-03-25 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757386', 'tblTempVendorCDR_20' ) end [2025-03-25 05:35:17] Production.INFO: ProcessCDR(1,14757386,1,1,2) [2025-03-25 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757386', 'tblTempUsageDetail_20' ) start [2025-03-25 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757386', 'tblTempUsageDetail_20' ) end [2025-03-25 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:35:21] Production.INFO: ==2321== Releasing lock... [2025-03-25 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:36:05 [end_date_ymd] => 2025-03-25 05:36:05 [RateCDR] => 1 ) [2025-03-25 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:36:05' and `end` < '2025-03-25 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:36:17] Production.INFO: count ==166 [2025-03-25 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:36:05 - End Time 2025-03-25 05:36:05 [2025-03-25 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757391', 'tblTempUsageDetail_20' ) start [2025-03-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757391', 'tblTempUsageDetail_20' ) end [2025-03-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757391', 'tblTempVendorCDR_20' ) start [2025-03-25 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757391', 'tblTempVendorCDR_20' ) end [2025-03-25 05:36:17] Production.INFO: ProcessCDR(1,14757391,1,1,2) [2025-03-25 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757391', 'tblTempUsageDetail_20' ) start [2025-03-25 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757391', 'tblTempUsageDetail_20' ) end [2025-03-25 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:36:21] Production.INFO: ==2418== Releasing lock... [2025-03-25 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:37:05 [end_date_ymd] => 2025-03-25 05:37:05 [RateCDR] => 1 ) [2025-03-25 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:37:05' and `end` < '2025-03-25 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:37:17] Production.INFO: count ==166 [2025-03-25 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:37:05 - End Time 2025-03-25 05:37:05 [2025-03-25 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757396', 'tblTempUsageDetail_20' ) start [2025-03-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757396', 'tblTempUsageDetail_20' ) end [2025-03-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757396', 'tblTempVendorCDR_20' ) start [2025-03-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757396', 'tblTempVendorCDR_20' ) end [2025-03-25 05:37:18] Production.INFO: ProcessCDR(1,14757396,1,1,2) [2025-03-25 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757396', 'tblTempUsageDetail_20' ) start [2025-03-25 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757396', 'tblTempUsageDetail_20' ) end [2025-03-25 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:37:21] Production.INFO: ==2514== Releasing lock... [2025-03-25 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:38:06 [end_date_ymd] => 2025-03-25 05:38:06 [RateCDR] => 1 ) [2025-03-25 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:38:06' and `end` < '2025-03-25 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:38:18] Production.INFO: count ==162 [2025-03-25 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:38:06 - End Time 2025-03-25 05:38:06 [2025-03-25 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757401', 'tblTempUsageDetail_20' ) start [2025-03-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757401', 'tblTempUsageDetail_20' ) end [2025-03-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757401', 'tblTempVendorCDR_20' ) start [2025-03-25 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757401', 'tblTempVendorCDR_20' ) end [2025-03-25 05:38:18] Production.INFO: ProcessCDR(1,14757401,1,1,2) [2025-03-25 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757401', 'tblTempUsageDetail_20' ) start [2025-03-25 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757401', 'tblTempUsageDetail_20' ) end [2025-03-25 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:38:22] Production.INFO: ==2614== Releasing lock... [2025-03-25 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:39:05 [end_date_ymd] => 2025-03-25 05:39:05 [RateCDR] => 1 ) [2025-03-25 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:39:05' and `end` < '2025-03-25 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:39:18] Production.INFO: count ==159 [2025-03-25 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:39:05 - End Time 2025-03-25 05:39:05 [2025-03-25 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757406', 'tblTempUsageDetail_20' ) start [2025-03-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757406', 'tblTempUsageDetail_20' ) end [2025-03-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757406', 'tblTempVendorCDR_20' ) start [2025-03-25 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757406', 'tblTempVendorCDR_20' ) end [2025-03-25 05:39:18] Production.INFO: ProcessCDR(1,14757406,1,1,2) [2025-03-25 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757406', 'tblTempUsageDetail_20' ) start [2025-03-25 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757406', 'tblTempUsageDetail_20' ) end [2025-03-25 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:39:21] Production.INFO: ==2710== Releasing lock... [2025-03-25 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:40:06 [end_date_ymd] => 2025-03-25 05:40:06 [RateCDR] => 1 ) [2025-03-25 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:40:06' and `end` < '2025-03-25 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:40:18] Production.INFO: count ==157 [2025-03-25 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:40:06 - End Time 2025-03-25 05:40:06 [2025-03-25 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757412', 'tblTempUsageDetail_20' ) start [2025-03-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757412', 'tblTempUsageDetail_20' ) end [2025-03-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757412', 'tblTempVendorCDR_20' ) start [2025-03-25 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757412', 'tblTempVendorCDR_20' ) end [2025-03-25 05:40:18] Production.INFO: ProcessCDR(1,14757412,1,1,2) [2025-03-25 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757412', 'tblTempUsageDetail_20' ) start [2025-03-25 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757412', 'tblTempUsageDetail_20' ) end [2025-03-25 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:40:21] Production.INFO: ==2822== Releasing lock... [2025-03-25 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:40:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:41:05 [end_date_ymd] => 2025-03-25 05:41:05 [RateCDR] => 1 ) [2025-03-25 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:41:05' and `end` < '2025-03-25 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:41:18] Production.INFO: count ==157 [2025-03-25 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:41:05 - End Time 2025-03-25 05:41:05 [2025-03-25 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757417', 'tblTempUsageDetail_20' ) start [2025-03-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757417', 'tblTempUsageDetail_20' ) end [2025-03-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757417', 'tblTempVendorCDR_20' ) start [2025-03-25 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757417', 'tblTempVendorCDR_20' ) end [2025-03-25 05:41:18] Production.INFO: ProcessCDR(1,14757417,1,1,2) [2025-03-25 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757417', 'tblTempUsageDetail_20' ) start [2025-03-25 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757417', 'tblTempUsageDetail_20' ) end [2025-03-25 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:41:21] Production.INFO: ==2923== Releasing lock... [2025-03-25 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:42:05 [end_date_ymd] => 2025-03-25 05:42:05 [RateCDR] => 1 ) [2025-03-25 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:42:05' and `end` < '2025-03-25 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:42:17] Production.INFO: count ==143 [2025-03-25 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:42:05 - End Time 2025-03-25 05:42:05 [2025-03-25 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757422', 'tblTempUsageDetail_20' ) start [2025-03-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757422', 'tblTempUsageDetail_20' ) end [2025-03-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757422', 'tblTempVendorCDR_20' ) start [2025-03-25 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757422', 'tblTempVendorCDR_20' ) end [2025-03-25 05:42:17] Production.INFO: ProcessCDR(1,14757422,1,1,2) [2025-03-25 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757422', 'tblTempUsageDetail_20' ) start [2025-03-25 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757422', 'tblTempUsageDetail_20' ) end [2025-03-25 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:42:21] Production.INFO: ==3062== Releasing lock... [2025-03-25 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:43:05 [end_date_ymd] => 2025-03-25 05:43:05 [RateCDR] => 1 ) [2025-03-25 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:43:05' and `end` < '2025-03-25 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:43:18] Production.INFO: count ==143 [2025-03-25 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:43:05 - End Time 2025-03-25 05:43:05 [2025-03-25 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757427', 'tblTempUsageDetail_20' ) start [2025-03-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757427', 'tblTempUsageDetail_20' ) end [2025-03-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757427', 'tblTempVendorCDR_20' ) start [2025-03-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757427', 'tblTempVendorCDR_20' ) end [2025-03-25 05:43:18] Production.INFO: ProcessCDR(1,14757427,1,1,2) [2025-03-25 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757427', 'tblTempUsageDetail_20' ) start [2025-03-25 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757427', 'tblTempUsageDetail_20' ) end [2025-03-25 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:43:21] Production.INFO: ==3163== Releasing lock... [2025-03-25 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:44:05 [end_date_ymd] => 2025-03-25 05:44:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:44:05' and `end` < '2025-03-25 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-03-25 05:44:17] Production.INFO: count ==142 [2025-03-25 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:44:05 - End Time 2025-03-25 05:44:05 [2025-03-25 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757432', 'tblTempUsageDetail_20' ) start [2025-03-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757432', 'tblTempUsageDetail_20' ) end [2025-03-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757432', 'tblTempVendorCDR_20' ) start [2025-03-25 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757432', 'tblTempVendorCDR_20' ) end [2025-03-25 05:44:17] Production.INFO: ProcessCDR(1,14757432,1,1,2) [2025-03-25 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757432', 'tblTempUsageDetail_20' ) start [2025-03-25 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757432', 'tblTempUsageDetail_20' ) end [2025-03-25 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:44:21] Production.INFO: ==3263== Releasing lock... [2025-03-25 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:45:05 [end_date_ymd] => 2025-03-25 05:45:05 [RateCDR] => 1 ) [2025-03-25 05:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:45:05' and `end` < '2025-03-25 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:45:18] Production.INFO: count ==142 [2025-03-25 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:45:05 - End Time 2025-03-25 05:45:05 [2025-03-25 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757437', 'tblTempUsageDetail_20' ) start [2025-03-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757437', 'tblTempUsageDetail_20' ) end [2025-03-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757437', 'tblTempVendorCDR_20' ) start [2025-03-25 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757437', 'tblTempVendorCDR_20' ) end [2025-03-25 05:45:18] Production.INFO: ProcessCDR(1,14757437,1,1,2) [2025-03-25 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757437', 'tblTempUsageDetail_20' ) start [2025-03-25 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757437', 'tblTempUsageDetail_20' ) end [2025-03-25 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:45:21] Production.INFO: ==3364== Releasing lock... [2025-03-25 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:46:05 [end_date_ymd] => 2025-03-25 05:46:05 [RateCDR] => 1 ) [2025-03-25 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:46:05' and `end` < '2025-03-25 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:46:17] Production.INFO: count ==143 [2025-03-25 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:46:05 - End Time 2025-03-25 05:46:05 [2025-03-25 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757442', 'tblTempUsageDetail_20' ) start [2025-03-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757442', 'tblTempUsageDetail_20' ) end [2025-03-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757442', 'tblTempVendorCDR_20' ) start [2025-03-25 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757442', 'tblTempVendorCDR_20' ) end [2025-03-25 05:46:17] Production.INFO: ProcessCDR(1,14757442,1,1,2) [2025-03-25 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757442', 'tblTempUsageDetail_20' ) start [2025-03-25 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757442', 'tblTempUsageDetail_20' ) end [2025-03-25 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:46:22] Production.INFO: ==3457== Releasing lock... [2025-03-25 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:47:05 [end_date_ymd] => 2025-03-25 05:47:05 [RateCDR] => 1 ) [2025-03-25 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:47:05' and `end` < '2025-03-25 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:47:17] Production.INFO: count ==143 [2025-03-25 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:47:05 - End Time 2025-03-25 05:47:05 [2025-03-25 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757447', 'tblTempUsageDetail_20' ) start [2025-03-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757447', 'tblTempUsageDetail_20' ) end [2025-03-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757447', 'tblTempVendorCDR_20' ) start [2025-03-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757447', 'tblTempVendorCDR_20' ) end [2025-03-25 05:47:18] Production.INFO: ProcessCDR(1,14757447,1,1,2) [2025-03-25 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757447', 'tblTempUsageDetail_20' ) start [2025-03-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757447', 'tblTempUsageDetail_20' ) end [2025-03-25 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:47:21] Production.INFO: ==3562== Releasing lock... [2025-03-25 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:48:05 [end_date_ymd] => 2025-03-25 05:48:05 [RateCDR] => 1 ) [2025-03-25 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:48:05' and `end` < '2025-03-25 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:48:17] Production.INFO: count ==143 [2025-03-25 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:48:05 - End Time 2025-03-25 05:48:05 [2025-03-25 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757452', 'tblTempUsageDetail_20' ) start [2025-03-25 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757452', 'tblTempUsageDetail_20' ) end [2025-03-25 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757452', 'tblTempVendorCDR_20' ) start [2025-03-25 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757452', 'tblTempVendorCDR_20' ) end [2025-03-25 05:48:17] Production.INFO: ProcessCDR(1,14757452,1,1,2) [2025-03-25 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757452', 'tblTempUsageDetail_20' ) start [2025-03-25 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757452', 'tblTempUsageDetail_20' ) end [2025-03-25 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:48:20] Production.INFO: ==3660== Releasing lock... [2025-03-25 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:49:05 [end_date_ymd] => 2025-03-25 05:49:05 [RateCDR] => 1 ) [2025-03-25 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:49:05' and `end` < '2025-03-25 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:49:18] Production.INFO: count ==143 [2025-03-25 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:49:05 - End Time 2025-03-25 05:49:05 [2025-03-25 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757457', 'tblTempUsageDetail_20' ) start [2025-03-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757457', 'tblTempUsageDetail_20' ) end [2025-03-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757457', 'tblTempVendorCDR_20' ) start [2025-03-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757457', 'tblTempVendorCDR_20' ) end [2025-03-25 05:49:18] Production.INFO: ProcessCDR(1,14757457,1,1,2) [2025-03-25 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757457', 'tblTempUsageDetail_20' ) start [2025-03-25 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757457', 'tblTempUsageDetail_20' ) end [2025-03-25 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:49:21] Production.INFO: ==3757== Releasing lock... [2025-03-25 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:50:06 [end_date_ymd] => 2025-03-25 05:50:06 [RateCDR] => 1 ) [2025-03-25 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:50:06' and `end` < '2025-03-25 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:50:19] Production.INFO: count ==143 [2025-03-25 05:50:19] Production.ERROR: pbx CDR StartTime 2025-03-25 02:50:06 - End Time 2025-03-25 05:50:06 [2025-03-25 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757463', 'tblTempUsageDetail_20' ) start [2025-03-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757463', 'tblTempUsageDetail_20' ) end [2025-03-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757463', 'tblTempVendorCDR_20' ) start [2025-03-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757463', 'tblTempVendorCDR_20' ) end [2025-03-25 05:50:19] Production.INFO: ProcessCDR(1,14757463,1,1,2) [2025-03-25 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757463', 'tblTempUsageDetail_20' ) start [2025-03-25 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757463', 'tblTempUsageDetail_20' ) end [2025-03-25 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:50:22] Production.INFO: ==3859== Releasing lock... [2025-03-25 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:51:05 [end_date_ymd] => 2025-03-25 05:51:05 [RateCDR] => 1 ) [2025-03-25 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:51:05' and `end` < '2025-03-25 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:51:18] Production.INFO: count ==143 [2025-03-25 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:51:05 - End Time 2025-03-25 05:51:05 [2025-03-25 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757468', 'tblTempUsageDetail_20' ) start [2025-03-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757468', 'tblTempUsageDetail_20' ) end [2025-03-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757468', 'tblTempVendorCDR_20' ) start [2025-03-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757468', 'tblTempVendorCDR_20' ) end [2025-03-25 05:51:18] Production.INFO: ProcessCDR(1,14757468,1,1,2) [2025-03-25 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757468', 'tblTempUsageDetail_20' ) start [2025-03-25 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757468', 'tblTempUsageDetail_20' ) end [2025-03-25 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:51:21] Production.INFO: ==3958== Releasing lock... [2025-03-25 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:52:06 [end_date_ymd] => 2025-03-25 05:52:06 [RateCDR] => 1 ) [2025-03-25 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:52:06' and `end` < '2025-03-25 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:52:19] Production.INFO: count ==143 [2025-03-25 05:52:19] Production.ERROR: pbx CDR StartTime 2025-03-25 02:52:06 - End Time 2025-03-25 05:52:06 [2025-03-25 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757473', 'tblTempUsageDetail_20' ) start [2025-03-25 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757473', 'tblTempUsageDetail_20' ) end [2025-03-25 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757473', 'tblTempVendorCDR_20' ) start [2025-03-25 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757473', 'tblTempVendorCDR_20' ) end [2025-03-25 05:52:19] Production.INFO: ProcessCDR(1,14757473,1,1,2) [2025-03-25 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757473', 'tblTempUsageDetail_20' ) start [2025-03-25 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757473', 'tblTempUsageDetail_20' ) end [2025-03-25 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:52:22] Production.INFO: ==4055== Releasing lock... [2025-03-25 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:53:05 [end_date_ymd] => 2025-03-25 05:53:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:53:05' and `end` < '2025-03-25 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-03-25 05:53:18] Production.INFO: count ==143 [2025-03-25 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:53:05 - End Time 2025-03-25 05:53:05 [2025-03-25 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757478', 'tblTempUsageDetail_20' ) start [2025-03-25 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757478', 'tblTempUsageDetail_20' ) end [2025-03-25 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757478', 'tblTempVendorCDR_20' ) start [2025-03-25 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757478', 'tblTempVendorCDR_20' ) end [2025-03-25 05:53:18] Production.INFO: ProcessCDR(1,14757478,1,1,2) [2025-03-25 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757478', 'tblTempUsageDetail_20' ) start [2025-03-25 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757478', 'tblTempUsageDetail_20' ) end [2025-03-25 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:53:21] Production.INFO: ==4162== Releasing lock... [2025-03-25 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:54:05 [end_date_ymd] => 2025-03-25 05:54:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:54:05' and `end` < '2025-03-25 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-03-25 05:54:17] Production.INFO: count ==143 [2025-03-25 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:54:05 - End Time 2025-03-25 05:54:05 [2025-03-25 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757483', 'tblTempUsageDetail_20' ) start [2025-03-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757483', 'tblTempUsageDetail_20' ) end [2025-03-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757483', 'tblTempVendorCDR_20' ) start [2025-03-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757483', 'tblTempVendorCDR_20' ) end [2025-03-25 05:54:18] Production.INFO: ProcessCDR(1,14757483,1,1,2) [2025-03-25 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757483', 'tblTempUsageDetail_20' ) start [2025-03-25 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757483', 'tblTempUsageDetail_20' ) end [2025-03-25 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:54:21] Production.INFO: ==4261== Releasing lock... [2025-03-25 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:55:05 [end_date_ymd] => 2025-03-25 05:55:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:55:05' and `end` < '2025-03-25 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-03-25 05:55:17] Production.INFO: count ==123 [2025-03-25 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:55:05 - End Time 2025-03-25 05:55:05 [2025-03-25 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757488', 'tblTempUsageDetail_20' ) start [2025-03-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757488', 'tblTempUsageDetail_20' ) end [2025-03-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757488', 'tblTempVendorCDR_20' ) start [2025-03-25 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757488', 'tblTempVendorCDR_20' ) end [2025-03-25 05:55:17] Production.INFO: ProcessCDR(1,14757488,1,1,2) [2025-03-25 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757488', 'tblTempUsageDetail_20' ) start [2025-03-25 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757488', 'tblTempUsageDetail_20' ) end [2025-03-25 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:55:22] Production.INFO: ==4354== Releasing lock... [2025-03-25 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:56:05 [end_date_ymd] => 2025-03-25 05:56:05 [RateCDR] => 1 ) [2025-03-25 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:56:05' and `end` < '2025-03-25 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:56:17] Production.INFO: count ==124 [2025-03-25 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:56:05 - End Time 2025-03-25 05:56:05 [2025-03-25 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757493', 'tblTempUsageDetail_20' ) start [2025-03-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757493', 'tblTempUsageDetail_20' ) end [2025-03-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757493', 'tblTempVendorCDR_20' ) start [2025-03-25 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757493', 'tblTempVendorCDR_20' ) end [2025-03-25 05:56:17] Production.INFO: ProcessCDR(1,14757493,1,1,2) [2025-03-25 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757493', 'tblTempUsageDetail_20' ) start [2025-03-25 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757493', 'tblTempUsageDetail_20' ) end [2025-03-25 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:56:22] Production.INFO: ==4457== Releasing lock... [2025-03-25 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:57:05 [end_date_ymd] => 2025-03-25 05:57:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 02:57:05' and `end` < '2025-03-25 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-03-25 05:57:18] Production.INFO: count ==122 [2025-03-25 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:57:05 - End Time 2025-03-25 05:57:05 [2025-03-25 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757498', 'tblTempUsageDetail_20' ) start [2025-03-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757498', 'tblTempUsageDetail_20' ) end [2025-03-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757498', 'tblTempVendorCDR_20' ) start [2025-03-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757498', 'tblTempVendorCDR_20' ) end [2025-03-25 05:57:18] Production.INFO: ProcessCDR(1,14757498,1,1,2) [2025-03-25 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757498', 'tblTempUsageDetail_20' ) start [2025-03-25 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757498', 'tblTempUsageDetail_20' ) end [2025-03-25 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:57:22] Production.INFO: ==4607== Releasing lock... [2025-03-25 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:58:05 [end_date_ymd] => 2025-03-25 05:58:05 [RateCDR] => 1 ) [2025-03-25 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:58:05' and `end` < '2025-03-25 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:58:18] Production.INFO: count ==122 [2025-03-25 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 02:58:05 - End Time 2025-03-25 05:58:05 [2025-03-25 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757503', 'tblTempUsageDetail_20' ) start [2025-03-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757503', 'tblTempUsageDetail_20' ) end [2025-03-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757503', 'tblTempVendorCDR_20' ) start [2025-03-25 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757503', 'tblTempVendorCDR_20' ) end [2025-03-25 05:58:18] Production.INFO: ProcessCDR(1,14757503,1,1,2) [2025-03-25 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757503', 'tblTempUsageDetail_20' ) start [2025-03-25 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757503', 'tblTempUsageDetail_20' ) end [2025-03-25 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:58:21] Production.INFO: ==4715== Releasing lock... [2025-03-25 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 02:59:05 [end_date_ymd] => 2025-03-25 05:59:05 [RateCDR] => 1 ) [2025-03-25 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 02:59:05' and `end` < '2025-03-25 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 05:59:17] Production.INFO: count ==123 [2025-03-25 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-25 02:59:05 - End Time 2025-03-25 05:59:05 [2025-03-25 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757508', 'tblTempUsageDetail_20' ) start [2025-03-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757508', 'tblTempUsageDetail_20' ) end [2025-03-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757508', 'tblTempVendorCDR_20' ) start [2025-03-25 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757508', 'tblTempVendorCDR_20' ) end [2025-03-25 05:59:17] Production.INFO: ProcessCDR(1,14757508,1,1,2) [2025-03-25 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757508', 'tblTempUsageDetail_20' ) start [2025-03-25 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757508', 'tblTempUsageDetail_20' ) end [2025-03-25 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 05:59:22] Production.INFO: ==4821== Releasing lock... [2025-03-25 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 05:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:00:05 [end_date_ymd] => 2025-03-25 06:00:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:00:05' and `end` < '2025-03-25 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:00:18] Production.INFO: count ==123 [2025-03-25 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:00:05 - End Time 2025-03-25 06:00:05 [2025-03-25 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757514', 'tblTempUsageDetail_20' ) start [2025-03-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757514', 'tblTempUsageDetail_20' ) end [2025-03-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757514', 'tblTempVendorCDR_20' ) start [2025-03-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757514', 'tblTempVendorCDR_20' ) end [2025-03-25 06:00:18] Production.INFO: ProcessCDR(1,14757514,1,1,2) [2025-03-25 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757514', 'tblTempUsageDetail_20' ) start [2025-03-25 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757514', 'tblTempUsageDetail_20' ) end [2025-03-25 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:00:22] Production.INFO: ==4939== Releasing lock... [2025-03-25 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:01:04 [end_date_ymd] => 2025-03-25 06:01:04 [RateCDR] => 1 ) [2025-03-25 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:01:04' and `end` < '2025-03-25 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:01:17] Production.INFO: count ==123 [2025-03-25 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:01:04 - End Time 2025-03-25 06:01:04 [2025-03-25 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757519', 'tblTempUsageDetail_20' ) start [2025-03-25 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757519', 'tblTempUsageDetail_20' ) end [2025-03-25 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757519', 'tblTempVendorCDR_20' ) start [2025-03-25 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757519', 'tblTempVendorCDR_20' ) end [2025-03-25 06:01:17] Production.INFO: ProcessCDR(1,14757519,1,1,2) [2025-03-25 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757519', 'tblTempUsageDetail_20' ) start [2025-03-25 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757519', 'tblTempUsageDetail_20' ) end [2025-03-25 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:01:20] Production.INFO: ==5066== Releasing lock... [2025-03-25 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:01:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:02:05 [end_date_ymd] => 2025-03-25 06:02:05 [RateCDR] => 1 ) [2025-03-25 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:02:05' and `end` < '2025-03-25 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:02:18] Production.INFO: count ==123 [2025-03-25 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:02:05 - End Time 2025-03-25 06:02:05 [2025-03-25 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757524', 'tblTempUsageDetail_20' ) start [2025-03-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757524', 'tblTempUsageDetail_20' ) end [2025-03-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757524', 'tblTempVendorCDR_20' ) start [2025-03-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757524', 'tblTempVendorCDR_20' ) end [2025-03-25 06:02:18] Production.INFO: ProcessCDR(1,14757524,1,1,2) [2025-03-25 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757524', 'tblTempUsageDetail_20' ) start [2025-03-25 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757524', 'tblTempUsageDetail_20' ) end [2025-03-25 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:02:22] Production.INFO: ==5173== Releasing lock... [2025-03-25 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:03:05 [end_date_ymd] => 2025-03-25 06:03:05 [RateCDR] => 1 ) [2025-03-25 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:03:05' and `end` < '2025-03-25 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:03:18] Production.INFO: count ==123 [2025-03-25 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:03:05 - End Time 2025-03-25 06:03:05 [2025-03-25 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757529', 'tblTempUsageDetail_20' ) start [2025-03-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757529', 'tblTempUsageDetail_20' ) end [2025-03-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757529', 'tblTempVendorCDR_20' ) start [2025-03-25 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757529', 'tblTempVendorCDR_20' ) end [2025-03-25 06:03:18] Production.INFO: ProcessCDR(1,14757529,1,1,2) [2025-03-25 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757529', 'tblTempUsageDetail_20' ) start [2025-03-25 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757529', 'tblTempUsageDetail_20' ) end [2025-03-25 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:03:21] Production.INFO: ==5275== Releasing lock... [2025-03-25 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:04:05 [end_date_ymd] => 2025-03-25 06:04:05 [RateCDR] => 1 ) [2025-03-25 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:04:05' and `end` < '2025-03-25 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:04:18] Production.INFO: count ==124 [2025-03-25 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:04:05 - End Time 2025-03-25 06:04:05 [2025-03-25 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757534', 'tblTempUsageDetail_20' ) start [2025-03-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757534', 'tblTempUsageDetail_20' ) end [2025-03-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757534', 'tblTempVendorCDR_20' ) start [2025-03-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757534', 'tblTempVendorCDR_20' ) end [2025-03-25 06:04:18] Production.INFO: ProcessCDR(1,14757534,1,1,2) [2025-03-25 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757534', 'tblTempUsageDetail_20' ) start [2025-03-25 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757534', 'tblTempUsageDetail_20' ) end [2025-03-25 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:04:23] Production.INFO: ==5385== Releasing lock... [2025-03-25 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:05:05 [end_date_ymd] => 2025-03-25 06:05:05 [RateCDR] => 1 ) [2025-03-25 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:05:05' and `end` < '2025-03-25 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:05:18] Production.INFO: count ==111 [2025-03-25 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:05:05 - End Time 2025-03-25 06:05:05 [2025-03-25 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757539', 'tblTempUsageDetail_20' ) start [2025-03-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757539', 'tblTempUsageDetail_20' ) end [2025-03-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757539', 'tblTempVendorCDR_20' ) start [2025-03-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757539', 'tblTempVendorCDR_20' ) end [2025-03-25 06:05:18] Production.INFO: ProcessCDR(1,14757539,1,1,2) [2025-03-25 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757539', 'tblTempUsageDetail_20' ) start [2025-03-25 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757539', 'tblTempUsageDetail_20' ) end [2025-03-25 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:05:22] Production.INFO: ==5497== Releasing lock... [2025-03-25 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:06:06 [end_date_ymd] => 2025-03-25 06:06:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:06:06' and `end` < '2025-03-25 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-03-25 06:06:18] Production.INFO: count ==111 [2025-03-25 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:06:06 - End Time 2025-03-25 06:06:06 [2025-03-25 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757544', 'tblTempUsageDetail_20' ) start [2025-03-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757544', 'tblTempUsageDetail_20' ) end [2025-03-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757544', 'tblTempVendorCDR_20' ) start [2025-03-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757544', 'tblTempVendorCDR_20' ) end [2025-03-25 06:06:18] Production.INFO: ProcessCDR(1,14757544,1,1,2) [2025-03-25 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757544', 'tblTempUsageDetail_20' ) start [2025-03-25 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757544', 'tblTempUsageDetail_20' ) end [2025-03-25 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:06:22] Production.INFO: ==5609== Releasing lock... [2025-03-25 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:07:05 [end_date_ymd] => 2025-03-25 06:07:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:07:05' and `end` < '2025-03-25 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-03-25 06:07:18] Production.INFO: count ==111 [2025-03-25 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:07:05 - End Time 2025-03-25 06:07:05 [2025-03-25 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757549', 'tblTempUsageDetail_20' ) start [2025-03-25 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757549', 'tblTempUsageDetail_20' ) end [2025-03-25 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757549', 'tblTempVendorCDR_20' ) start [2025-03-25 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757549', 'tblTempVendorCDR_20' ) end [2025-03-25 06:07:18] Production.INFO: ProcessCDR(1,14757549,1,1,2) [2025-03-25 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757549', 'tblTempUsageDetail_20' ) start [2025-03-25 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757549', 'tblTempUsageDetail_20' ) end [2025-03-25 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:07:21] Production.INFO: ==5715== Releasing lock... [2025-03-25 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:08:06 [end_date_ymd] => 2025-03-25 06:08:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:08:06' and `end` < '2025-03-25 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-03-25 06:08:18] Production.INFO: count ==91 [2025-03-25 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:08:06 - End Time 2025-03-25 06:08:06 [2025-03-25 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757554', 'tblTempUsageDetail_20' ) start [2025-03-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757554', 'tblTempUsageDetail_20' ) end [2025-03-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757554', 'tblTempVendorCDR_20' ) start [2025-03-25 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757554', 'tblTempVendorCDR_20' ) end [2025-03-25 06:08:18] Production.INFO: ProcessCDR(1,14757554,1,1,2) [2025-03-25 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757554', 'tblTempUsageDetail_20' ) start [2025-03-25 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757554', 'tblTempUsageDetail_20' ) end [2025-03-25 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:08:22] Production.INFO: ==5827== Releasing lock... [2025-03-25 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:09:06 [end_date_ymd] => 2025-03-25 06:09:06 [RateCDR] => 1 ) [2025-03-25 06: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-03-25 03:09:06' and `end` < '2025-03-25 06: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-03-25 06:09:18] Production.INFO: count ==63 [2025-03-25 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:09:06 - End Time 2025-03-25 06:09:06 [2025-03-25 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757559', 'tblTempUsageDetail_20' ) start [2025-03-25 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757559', 'tblTempUsageDetail_20' ) end [2025-03-25 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757559', 'tblTempVendorCDR_20' ) start [2025-03-25 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757559', 'tblTempVendorCDR_20' ) end [2025-03-25 06:09:18] Production.INFO: ProcessCDR(1,14757559,1,1,2) [2025-03-25 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757559', 'tblTempUsageDetail_20' ) start [2025-03-25 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757559', 'tblTempUsageDetail_20' ) end [2025-03-25 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:09:22] Production.INFO: ==5933== Releasing lock... [2025-03-25 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:10:06 [end_date_ymd] => 2025-03-25 06:10:06 [RateCDR] => 1 ) [2025-03-25 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:10:06' and `end` < '2025-03-25 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:10:18] Production.INFO: count ==63 [2025-03-25 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:10:06 - End Time 2025-03-25 06:10:06 [2025-03-25 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757564', 'tblTempUsageDetail_20' ) start [2025-03-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757564', 'tblTempUsageDetail_20' ) end [2025-03-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757564', 'tblTempVendorCDR_20' ) start [2025-03-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757564', 'tblTempVendorCDR_20' ) end [2025-03-25 06:10:18] Production.INFO: ProcessCDR(1,14757564,1,1,2) [2025-03-25 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757564', 'tblTempUsageDetail_20' ) start [2025-03-25 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757564', 'tblTempUsageDetail_20' ) end [2025-03-25 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:10:22] Production.INFO: ==6042== Releasing lock... [2025-03-25 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:11:05 [end_date_ymd] => 2025-03-25 06:11:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:11:05' and `end` < '2025-03-25 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-03-25 06:11:17] Production.INFO: count ==63 [2025-03-25 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:11:05 - End Time 2025-03-25 06:11:05 [2025-03-25 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757570', 'tblTempUsageDetail_20' ) start [2025-03-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757570', 'tblTempUsageDetail_20' ) end [2025-03-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757570', 'tblTempVendorCDR_20' ) start [2025-03-25 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757570', 'tblTempVendorCDR_20' ) end [2025-03-25 06:11:17] Production.INFO: ProcessCDR(1,14757570,1,1,2) [2025-03-25 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757570', 'tblTempUsageDetail_20' ) start [2025-03-25 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757570', 'tblTempUsageDetail_20' ) end [2025-03-25 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:11:21] Production.INFO: ==6163== Releasing lock... [2025-03-25 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:12:05 [end_date_ymd] => 2025-03-25 06:12:05 [RateCDR] => 1 ) [2025-03-25 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:12:05' and `end` < '2025-03-25 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:12:18] Production.INFO: count ==63 [2025-03-25 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:12:05 - End Time 2025-03-25 06:12:05 [2025-03-25 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757575', 'tblTempUsageDetail_20' ) start [2025-03-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757575', 'tblTempUsageDetail_20' ) end [2025-03-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757575', 'tblTempVendorCDR_20' ) start [2025-03-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757575', 'tblTempVendorCDR_20' ) end [2025-03-25 06:12:18] Production.INFO: ProcessCDR(1,14757575,1,1,2) [2025-03-25 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757575', 'tblTempUsageDetail_20' ) start [2025-03-25 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757575', 'tblTempUsageDetail_20' ) end [2025-03-25 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:12:21] Production.INFO: ==6268== Releasing lock... [2025-03-25 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:13:05 [end_date_ymd] => 2025-03-25 06:13:05 [RateCDR] => 1 ) [2025-03-25 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:13:05' and `end` < '2025-03-25 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:13:17] Production.INFO: count ==66 [2025-03-25 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:13:05 - End Time 2025-03-25 06:13:05 [2025-03-25 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757580', 'tblTempUsageDetail_20' ) start [2025-03-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757580', 'tblTempUsageDetail_20' ) end [2025-03-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757580', 'tblTempVendorCDR_20' ) start [2025-03-25 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757580', 'tblTempVendorCDR_20' ) end [2025-03-25 06:13:17] Production.INFO: ProcessCDR(1,14757580,1,1,2) [2025-03-25 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757580', 'tblTempUsageDetail_20' ) start [2025-03-25 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757580', 'tblTempUsageDetail_20' ) end [2025-03-25 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:13:21] Production.INFO: ==6418== Releasing lock... [2025-03-25 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:14:06 [end_date_ymd] => 2025-03-25 06:14:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:14:06' and `end` < '2025-03-25 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-03-25 06:14:18] Production.INFO: count ==66 [2025-03-25 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:14:06 - End Time 2025-03-25 06:14:06 [2025-03-25 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757585', 'tblTempUsageDetail_20' ) start [2025-03-25 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757585', 'tblTempUsageDetail_20' ) end [2025-03-25 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757585', 'tblTempVendorCDR_20' ) start [2025-03-25 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757585', 'tblTempVendorCDR_20' ) end [2025-03-25 06:14:18] Production.INFO: ProcessCDR(1,14757585,1,1,2) [2025-03-25 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757585', 'tblTempUsageDetail_20' ) start [2025-03-25 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757585', 'tblTempUsageDetail_20' ) end [2025-03-25 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:14:21] Production.INFO: ==6530== Releasing lock... [2025-03-25 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:15:05 [end_date_ymd] => 2025-03-25 06:15:05 [RateCDR] => 1 ) [2025-03-25 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:15:05' and `end` < '2025-03-25 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:15:17] Production.INFO: count ==66 [2025-03-25 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:15:05 - End Time 2025-03-25 06:15:05 [2025-03-25 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757590', 'tblTempUsageDetail_20' ) start [2025-03-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757590', 'tblTempUsageDetail_20' ) end [2025-03-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757590', 'tblTempVendorCDR_20' ) start [2025-03-25 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757590', 'tblTempVendorCDR_20' ) end [2025-03-25 06:15:17] Production.INFO: ProcessCDR(1,14757590,1,1,2) [2025-03-25 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757590', 'tblTempUsageDetail_20' ) start [2025-03-25 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757590', 'tblTempUsageDetail_20' ) end [2025-03-25 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:15:21] Production.INFO: ==6637== Releasing lock... [2025-03-25 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:16:05 [end_date_ymd] => 2025-03-25 06:16:05 [RateCDR] => 1 ) [2025-03-25 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:16:05' and `end` < '2025-03-25 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:16:18] Production.INFO: count ==66 [2025-03-25 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:16:05 - End Time 2025-03-25 06:16:05 [2025-03-25 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757595', 'tblTempUsageDetail_20' ) start [2025-03-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757595', 'tblTempUsageDetail_20' ) end [2025-03-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757595', 'tblTempVendorCDR_20' ) start [2025-03-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757595', 'tblTempVendorCDR_20' ) end [2025-03-25 06:16:18] Production.INFO: ProcessCDR(1,14757595,1,1,2) [2025-03-25 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757595', 'tblTempUsageDetail_20' ) start [2025-03-25 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757595', 'tblTempUsageDetail_20' ) end [2025-03-25 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:16:21] Production.INFO: ==6746== Releasing lock... [2025-03-25 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:17:05 [end_date_ymd] => 2025-03-25 06:17:05 [RateCDR] => 1 ) [2025-03-25 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:17:05' and `end` < '2025-03-25 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:17:17] Production.INFO: count ==68 [2025-03-25 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:17:05 - End Time 2025-03-25 06:17:05 [2025-03-25 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757600', 'tblTempUsageDetail_20' ) start [2025-03-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757600', 'tblTempUsageDetail_20' ) end [2025-03-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757600', 'tblTempVendorCDR_20' ) start [2025-03-25 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757600', 'tblTempVendorCDR_20' ) end [2025-03-25 06:17:17] Production.INFO: ProcessCDR(1,14757600,1,1,2) [2025-03-25 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757600', 'tblTempUsageDetail_20' ) start [2025-03-25 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757600', 'tblTempUsageDetail_20' ) end [2025-03-25 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:17:21] Production.INFO: ==6856== Releasing lock... [2025-03-25 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:18:06 [end_date_ymd] => 2025-03-25 06:18:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:18:06' and `end` < '2025-03-25 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-03-25 06:18:18] Production.INFO: count ==76 [2025-03-25 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:18:06 - End Time 2025-03-25 06:18:06 [2025-03-25 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757605', 'tblTempUsageDetail_20' ) start [2025-03-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757605', 'tblTempUsageDetail_20' ) end [2025-03-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757605', 'tblTempVendorCDR_20' ) start [2025-03-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757605', 'tblTempVendorCDR_20' ) end [2025-03-25 06:18:18] Production.INFO: ProcessCDR(1,14757605,1,1,2) [2025-03-25 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757605', 'tblTempUsageDetail_20' ) start [2025-03-25 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757605', 'tblTempUsageDetail_20' ) end [2025-03-25 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:18:22] Production.INFO: ==6966== Releasing lock... [2025-03-25 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:19:05 [end_date_ymd] => 2025-03-25 06:19:05 [RateCDR] => 1 ) [2025-03-25 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:19:05' and `end` < '2025-03-25 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:19:17] Production.INFO: count ==76 [2025-03-25 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:19:05 - End Time 2025-03-25 06:19:05 [2025-03-25 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757610', 'tblTempUsageDetail_20' ) start [2025-03-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757610', 'tblTempUsageDetail_20' ) end [2025-03-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757610', 'tblTempVendorCDR_20' ) start [2025-03-25 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757610', 'tblTempVendorCDR_20' ) end [2025-03-25 06:19:18] Production.INFO: ProcessCDR(1,14757610,1,1,2) [2025-03-25 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757610', 'tblTempUsageDetail_20' ) start [2025-03-25 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757610', 'tblTempUsageDetail_20' ) end [2025-03-25 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:19:21] Production.INFO: ==7082== Releasing lock... [2025-03-25 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:20:06 [end_date_ymd] => 2025-03-25 06:20:06 [RateCDR] => 1 ) [2025-03-25 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:20:06' and `end` < '2025-03-25 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:20:19] Production.INFO: count ==76 [2025-03-25 06:20:19] Production.ERROR: pbx CDR StartTime 2025-03-25 03:20:06 - End Time 2025-03-25 06:20:06 [2025-03-25 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757616', 'tblTempUsageDetail_20' ) start [2025-03-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757616', 'tblTempUsageDetail_20' ) end [2025-03-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757616', 'tblTempVendorCDR_20' ) start [2025-03-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757616', 'tblTempVendorCDR_20' ) end [2025-03-25 06:20:19] Production.INFO: ProcessCDR(1,14757616,1,1,2) [2025-03-25 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757616', 'tblTempUsageDetail_20' ) start [2025-03-25 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757616', 'tblTempUsageDetail_20' ) end [2025-03-25 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:20:22] Production.INFO: ==7194== Releasing lock... [2025-03-25 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:21:05 [end_date_ymd] => 2025-03-25 06:21:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:21:05' and `end` < '2025-03-25 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-03-25 06:21:18] Production.INFO: count ==76 [2025-03-25 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:21:05 - End Time 2025-03-25 06:21:05 [2025-03-25 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757621', 'tblTempUsageDetail_20' ) start [2025-03-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757621', 'tblTempUsageDetail_20' ) end [2025-03-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757621', 'tblTempVendorCDR_20' ) start [2025-03-25 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757621', 'tblTempVendorCDR_20' ) end [2025-03-25 06:21:18] Production.INFO: ProcessCDR(1,14757621,1,1,2) [2025-03-25 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757621', 'tblTempUsageDetail_20' ) start [2025-03-25 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757621', 'tblTempUsageDetail_20' ) end [2025-03-25 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:21:21] Production.INFO: ==7301== Releasing lock... [2025-03-25 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:22:05 [end_date_ymd] => 2025-03-25 06:22:05 [RateCDR] => 1 ) [2025-03-25 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:22:05' and `end` < '2025-03-25 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:22:18] Production.INFO: count ==71 [2025-03-25 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:22:05 - End Time 2025-03-25 06:22:05 [2025-03-25 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757626', 'tblTempUsageDetail_20' ) start [2025-03-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757626', 'tblTempUsageDetail_20' ) end [2025-03-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757626', 'tblTempVendorCDR_20' ) start [2025-03-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757626', 'tblTempVendorCDR_20' ) end [2025-03-25 06:22:18] Production.INFO: ProcessCDR(1,14757626,1,1,2) [2025-03-25 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757626', 'tblTempUsageDetail_20' ) start [2025-03-25 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757626', 'tblTempUsageDetail_20' ) end [2025-03-25 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:22:21] Production.INFO: ==7419== Releasing lock... [2025-03-25 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:23:06 [end_date_ymd] => 2025-03-25 06:23:06 [RateCDR] => 1 ) [2025-03-25 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:23:06' and `end` < '2025-03-25 06: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-03-25 06:23:18] Production.INFO: count ==71 [2025-03-25 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:23:06 - End Time 2025-03-25 06:23:06 [2025-03-25 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757631', 'tblTempUsageDetail_20' ) start [2025-03-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757631', 'tblTempUsageDetail_20' ) end [2025-03-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757631', 'tblTempVendorCDR_20' ) start [2025-03-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757631', 'tblTempVendorCDR_20' ) end [2025-03-25 06:23:18] Production.INFO: ProcessCDR(1,14757631,1,1,2) [2025-03-25 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757631', 'tblTempUsageDetail_20' ) start [2025-03-25 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757631', 'tblTempUsageDetail_20' ) end [2025-03-25 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:23:22] Production.INFO: ==7525== Releasing lock... [2025-03-25 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:24:05 [end_date_ymd] => 2025-03-25 06:24:05 [RateCDR] => 1 ) [2025-03-25 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:24:05' and `end` < '2025-03-25 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:24:17] Production.INFO: count ==71 [2025-03-25 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:24:05 - End Time 2025-03-25 06:24:05 [2025-03-25 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757636', 'tblTempUsageDetail_20' ) start [2025-03-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757636', 'tblTempUsageDetail_20' ) end [2025-03-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757636', 'tblTempVendorCDR_20' ) start [2025-03-25 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757636', 'tblTempVendorCDR_20' ) end [2025-03-25 06:24:17] Production.INFO: ProcessCDR(1,14757636,1,1,2) [2025-03-25 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757636', 'tblTempUsageDetail_20' ) start [2025-03-25 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757636', 'tblTempUsageDetail_20' ) end [2025-03-25 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:24:20] Production.INFO: ==7637== Releasing lock... [2025-03-25 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:25:05 [end_date_ymd] => 2025-03-25 06:25:05 [RateCDR] => 1 ) [2025-03-25 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:25:05' and `end` < '2025-03-25 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:25:18] Production.INFO: count ==70 [2025-03-25 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:25:05 - End Time 2025-03-25 06:25:05 [2025-03-25 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757641', 'tblTempUsageDetail_20' ) start [2025-03-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757641', 'tblTempUsageDetail_20' ) end [2025-03-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757641', 'tblTempVendorCDR_20' ) start [2025-03-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757641', 'tblTempVendorCDR_20' ) end [2025-03-25 06:25:18] Production.INFO: ProcessCDR(1,14757641,1,1,2) [2025-03-25 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757641', 'tblTempUsageDetail_20' ) start [2025-03-25 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757641', 'tblTempUsageDetail_20' ) end [2025-03-25 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:25:21] Production.INFO: ==7745== Releasing lock... [2025-03-25 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:26:04 [end_date_ymd] => 2025-03-25 06:26:04 [RateCDR] => 1 ) [2025-03-25 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:26:04' and `end` < '2025-03-25 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:26:17] Production.INFO: count ==70 [2025-03-25 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:26:04 - End Time 2025-03-25 06:26:04 [2025-03-25 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757646', 'tblTempUsageDetail_20' ) start [2025-03-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757646', 'tblTempUsageDetail_20' ) end [2025-03-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757646', 'tblTempVendorCDR_20' ) start [2025-03-25 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757646', 'tblTempVendorCDR_20' ) end [2025-03-25 06:26:17] Production.INFO: ProcessCDR(1,14757646,1,1,2) [2025-03-25 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757646', 'tblTempUsageDetail_20' ) start [2025-03-25 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757646', 'tblTempUsageDetail_20' ) end [2025-03-25 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:26:20] Production.INFO: ==7858== Releasing lock... [2025-03-25 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:27:06 [end_date_ymd] => 2025-03-25 06:27:06 [RateCDR] => 1 ) [2025-03-25 06:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:27:06' and `end` < '2025-03-25 06:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:27:18] Production.INFO: count ==70 [2025-03-25 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:27:06 - End Time 2025-03-25 06:27:06 [2025-03-25 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757651', 'tblTempUsageDetail_20' ) start [2025-03-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757651', 'tblTempUsageDetail_20' ) end [2025-03-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757651', 'tblTempVendorCDR_20' ) start [2025-03-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757651', 'tblTempVendorCDR_20' ) end [2025-03-25 06:27:18] Production.INFO: ProcessCDR(1,14757651,1,1,2) [2025-03-25 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757651', 'tblTempUsageDetail_20' ) start [2025-03-25 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757651', 'tblTempUsageDetail_20' ) end [2025-03-25 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:27:22] Production.INFO: ==7963== Releasing lock... [2025-03-25 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:28:05 [end_date_ymd] => 2025-03-25 06:28:05 [RateCDR] => 1 ) [2025-03-25 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:28:05' and `end` < '2025-03-25 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:28:17] Production.INFO: count ==70 [2025-03-25 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:28:05 - End Time 2025-03-25 06:28:05 [2025-03-25 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757656', 'tblTempUsageDetail_20' ) start [2025-03-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757656', 'tblTempUsageDetail_20' ) end [2025-03-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757656', 'tblTempVendorCDR_20' ) start [2025-03-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757656', 'tblTempVendorCDR_20' ) end [2025-03-25 06:28:17] Production.INFO: ProcessCDR(1,14757656,1,1,2) [2025-03-25 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757656', 'tblTempUsageDetail_20' ) start [2025-03-25 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757656', 'tblTempUsageDetail_20' ) end [2025-03-25 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:28:20] Production.INFO: ==8111== Releasing lock... [2025-03-25 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:29:06 [end_date_ymd] => 2025-03-25 06:29:06 [RateCDR] => 1 ) [2025-03-25 06: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-03-25 03:29:06' and `end` < '2025-03-25 06: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-03-25 06:29:18] Production.INFO: count ==70 [2025-03-25 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:29:06 - End Time 2025-03-25 06:29:06 [2025-03-25 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757661', 'tblTempUsageDetail_20' ) start [2025-03-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757661', 'tblTempUsageDetail_20' ) end [2025-03-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757661', 'tblTempVendorCDR_20' ) start [2025-03-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757661', 'tblTempVendorCDR_20' ) end [2025-03-25 06:29:18] Production.INFO: ProcessCDR(1,14757661,1,1,2) [2025-03-25 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757661', 'tblTempUsageDetail_20' ) start [2025-03-25 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757661', 'tblTempUsageDetail_20' ) end [2025-03-25 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:29:21] Production.INFO: ==8226== Releasing lock... [2025-03-25 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:30:06 [end_date_ymd] => 2025-03-25 06:30:06 [RateCDR] => 1 ) [2025-03-25 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:30:06' and `end` < '2025-03-25 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:30:18] Production.INFO: count ==57 [2025-03-25 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:30:06 - End Time 2025-03-25 06:30:06 [2025-03-25 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757667', 'tblTempUsageDetail_20' ) start [2025-03-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757667', 'tblTempUsageDetail_20' ) end [2025-03-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757667', 'tblTempVendorCDR_20' ) start [2025-03-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757667', 'tblTempVendorCDR_20' ) end [2025-03-25 06:30:18] Production.INFO: ProcessCDR(1,14757667,1,1,2) [2025-03-25 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757667', 'tblTempUsageDetail_20' ) start [2025-03-25 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757667', 'tblTempUsageDetail_20' ) end [2025-03-25 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:30:22] Production.INFO: ==8338== Releasing lock... [2025-03-25 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:31:05 [end_date_ymd] => 2025-03-25 06:31:05 [RateCDR] => 1 ) [2025-03-25 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:31:05' and `end` < '2025-03-25 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:31:17] Production.INFO: count ==57 [2025-03-25 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:31:05 - End Time 2025-03-25 06:31:05 [2025-03-25 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757672', 'tblTempUsageDetail_20' ) start [2025-03-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757672', 'tblTempUsageDetail_20' ) end [2025-03-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757672', 'tblTempVendorCDR_20' ) start [2025-03-25 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757672', 'tblTempVendorCDR_20' ) end [2025-03-25 06:31:17] Production.INFO: ProcessCDR(1,14757672,1,1,2) [2025-03-25 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757672', 'tblTempUsageDetail_20' ) start [2025-03-25 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757672', 'tblTempUsageDetail_20' ) end [2025-03-25 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:31:21] Production.INFO: ==8447== Releasing lock... [2025-03-25 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:32:05 [end_date_ymd] => 2025-03-25 06:32:05 [RateCDR] => 1 ) [2025-03-25 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:32:05' and `end` < '2025-03-25 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:32:17] Production.INFO: count ==57 [2025-03-25 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:32:05 - End Time 2025-03-25 06:32:05 [2025-03-25 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757677', 'tblTempUsageDetail_20' ) start [2025-03-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757677', 'tblTempUsageDetail_20' ) end [2025-03-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757677', 'tblTempVendorCDR_20' ) start [2025-03-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757677', 'tblTempVendorCDR_20' ) end [2025-03-25 06:32:17] Production.INFO: ProcessCDR(1,14757677,1,1,2) [2025-03-25 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757677', 'tblTempUsageDetail_20' ) start [2025-03-25 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757677', 'tblTempUsageDetail_20' ) end [2025-03-25 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:32:20] Production.INFO: ==8558== Releasing lock... [2025-03-25 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:33:05 [end_date_ymd] => 2025-03-25 06:33:05 [RateCDR] => 1 ) [2025-03-25 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:33:05' and `end` < '2025-03-25 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:33:18] Production.INFO: count ==57 [2025-03-25 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:33:05 - End Time 2025-03-25 06:33:05 [2025-03-25 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757682', 'tblTempUsageDetail_20' ) start [2025-03-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757682', 'tblTempUsageDetail_20' ) end [2025-03-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757682', 'tblTempVendorCDR_20' ) start [2025-03-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757682', 'tblTempVendorCDR_20' ) end [2025-03-25 06:33:18] Production.INFO: ProcessCDR(1,14757682,1,1,2) [2025-03-25 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757682', 'tblTempUsageDetail_20' ) start [2025-03-25 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757682', 'tblTempUsageDetail_20' ) end [2025-03-25 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:33:21] Production.INFO: ==8674== Releasing lock... [2025-03-25 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:34:05 [end_date_ymd] => 2025-03-25 06:34:05 [RateCDR] => 1 ) [2025-03-25 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:34:05' and `end` < '2025-03-25 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:34:18] Production.INFO: count ==57 [2025-03-25 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:34:05 - End Time 2025-03-25 06:34:05 [2025-03-25 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757687', 'tblTempUsageDetail_20' ) start [2025-03-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757687', 'tblTempUsageDetail_20' ) end [2025-03-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757687', 'tblTempVendorCDR_20' ) start [2025-03-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757687', 'tblTempVendorCDR_20' ) end [2025-03-25 06:34:18] Production.INFO: ProcessCDR(1,14757687,1,1,2) [2025-03-25 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757687', 'tblTempUsageDetail_20' ) start [2025-03-25 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757687', 'tblTempUsageDetail_20' ) end [2025-03-25 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:34:21] Production.INFO: ==8779== Releasing lock... [2025-03-25 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:35:05 [end_date_ymd] => 2025-03-25 06:35:05 [RateCDR] => 1 ) [2025-03-25 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:35:05' and `end` < '2025-03-25 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:35:18] Production.INFO: count ==57 [2025-03-25 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:35:05 - End Time 2025-03-25 06:35:05 [2025-03-25 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757692', 'tblTempUsageDetail_20' ) start [2025-03-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757692', 'tblTempUsageDetail_20' ) end [2025-03-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757692', 'tblTempVendorCDR_20' ) start [2025-03-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757692', 'tblTempVendorCDR_20' ) end [2025-03-25 06:35:18] Production.INFO: ProcessCDR(1,14757692,1,1,2) [2025-03-25 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757692', 'tblTempUsageDetail_20' ) start [2025-03-25 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757692', 'tblTempUsageDetail_20' ) end [2025-03-25 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:35:21] Production.INFO: ==8885== Releasing lock... [2025-03-25 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:36:06 [end_date_ymd] => 2025-03-25 06:36:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:36:06' and `end` < '2025-03-25 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-03-25 06:36:18] Production.INFO: count ==62 [2025-03-25 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:36:06 - End Time 2025-03-25 06:36:06 [2025-03-25 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757697', 'tblTempUsageDetail_20' ) start [2025-03-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757697', 'tblTempUsageDetail_20' ) end [2025-03-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757697', 'tblTempVendorCDR_20' ) start [2025-03-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757697', 'tblTempVendorCDR_20' ) end [2025-03-25 06:36:18] Production.INFO: ProcessCDR(1,14757697,1,1,2) [2025-03-25 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757697', 'tblTempUsageDetail_20' ) start [2025-03-25 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757697', 'tblTempUsageDetail_20' ) end [2025-03-25 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:36:21] Production.INFO: ==9004== Releasing lock... [2025-03-25 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:37:05 [end_date_ymd] => 2025-03-25 06:37:05 [RateCDR] => 1 ) [2025-03-25 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:37:05' and `end` < '2025-03-25 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:37:17] Production.INFO: count ==67 [2025-03-25 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:37:05 - End Time 2025-03-25 06:37:05 [2025-03-25 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757702', 'tblTempUsageDetail_20' ) start [2025-03-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757702', 'tblTempUsageDetail_20' ) end [2025-03-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757702', 'tblTempVendorCDR_20' ) start [2025-03-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757702', 'tblTempVendorCDR_20' ) end [2025-03-25 06:37:17] Production.INFO: ProcessCDR(1,14757702,1,1,2) [2025-03-25 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757702', 'tblTempUsageDetail_20' ) start [2025-03-25 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757702', 'tblTempUsageDetail_20' ) end [2025-03-25 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:37:20] Production.INFO: ==9109== Releasing lock... [2025-03-25 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:38:06 [end_date_ymd] => 2025-03-25 06:38:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:38:06' and `end` < '2025-03-25 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-03-25 06:38:18] Production.INFO: count ==67 [2025-03-25 06:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:38:06 - End Time 2025-03-25 06:38:06 [2025-03-25 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757707', 'tblTempUsageDetail_20' ) start [2025-03-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757707', 'tblTempUsageDetail_20' ) end [2025-03-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757707', 'tblTempVendorCDR_20' ) start [2025-03-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757707', 'tblTempVendorCDR_20' ) end [2025-03-25 06:38:18] Production.INFO: ProcessCDR(1,14757707,1,1,2) [2025-03-25 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757707', 'tblTempUsageDetail_20' ) start [2025-03-25 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757707', 'tblTempUsageDetail_20' ) end [2025-03-25 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:38:21] Production.INFO: ==9220== Releasing lock... [2025-03-25 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:39:05 [end_date_ymd] => 2025-03-25 06:39:05 [RateCDR] => 1 ) [2025-03-25 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:39:05' and `end` < '2025-03-25 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:39:17] Production.INFO: count ==67 [2025-03-25 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:39:05 - End Time 2025-03-25 06:39:05 [2025-03-25 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757712', 'tblTempUsageDetail_20' ) start [2025-03-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757712', 'tblTempUsageDetail_20' ) end [2025-03-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757712', 'tblTempVendorCDR_20' ) start [2025-03-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757712', 'tblTempVendorCDR_20' ) end [2025-03-25 06:39:17] Production.INFO: ProcessCDR(1,14757712,1,1,2) [2025-03-25 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757712', 'tblTempUsageDetail_20' ) start [2025-03-25 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757712', 'tblTempUsageDetail_20' ) end [2025-03-25 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:39:21] Production.INFO: ==9320== Releasing lock... [2025-03-25 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:40:06 [end_date_ymd] => 2025-03-25 06:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:40:06' and `end` < '2025-03-25 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-03-25 06:40:19] Production.INFO: count ==67 [2025-03-25 06:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 03:40:06 - End Time 2025-03-25 06:40:06 [2025-03-25 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757718', 'tblTempUsageDetail_20' ) start [2025-03-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757718', 'tblTempUsageDetail_20' ) end [2025-03-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757718', 'tblTempVendorCDR_20' ) start [2025-03-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757718', 'tblTempVendorCDR_20' ) end [2025-03-25 06:40:19] Production.INFO: ProcessCDR(1,14757718,1,1,2) [2025-03-25 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757718', 'tblTempUsageDetail_20' ) start [2025-03-25 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757718', 'tblTempUsageDetail_20' ) end [2025-03-25 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:40:22] Production.INFO: ==9419== Releasing lock... [2025-03-25 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:41:05 [end_date_ymd] => 2025-03-25 06:41:05 [RateCDR] => 1 ) [2025-03-25 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:41:05' and `end` < '2025-03-25 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:41:17] Production.INFO: count ==67 [2025-03-25 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:41:05 - End Time 2025-03-25 06:41:05 [2025-03-25 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757723', 'tblTempUsageDetail_20' ) start [2025-03-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757723', 'tblTempUsageDetail_20' ) end [2025-03-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757723', 'tblTempVendorCDR_20' ) start [2025-03-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757723', 'tblTempVendorCDR_20' ) end [2025-03-25 06:41:17] Production.INFO: ProcessCDR(1,14757723,1,1,2) [2025-03-25 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757723', 'tblTempUsageDetail_20' ) start [2025-03-25 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757723', 'tblTempUsageDetail_20' ) end [2025-03-25 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:41:21] Production.INFO: ==9516== Releasing lock... [2025-03-25 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:41:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:42:06 [end_date_ymd] => 2025-03-25 06:42:06 [RateCDR] => 1 ) [2025-03-25 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:42:06' and `end` < '2025-03-25 06: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-03-25 06:42:18] Production.INFO: count ==67 [2025-03-25 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:42:06 - End Time 2025-03-25 06:42:06 [2025-03-25 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757728', 'tblTempUsageDetail_20' ) start [2025-03-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757728', 'tblTempUsageDetail_20' ) end [2025-03-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757728', 'tblTempVendorCDR_20' ) start [2025-03-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757728', 'tblTempVendorCDR_20' ) end [2025-03-25 06:42:18] Production.INFO: ProcessCDR(1,14757728,1,1,2) [2025-03-25 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757728', 'tblTempUsageDetail_20' ) start [2025-03-25 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757728', 'tblTempUsageDetail_20' ) end [2025-03-25 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:42:22] Production.INFO: ==9615== Releasing lock... [2025-03-25 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:43:04 [end_date_ymd] => 2025-03-25 06:43:04 [RateCDR] => 1 ) [2025-03-25 06: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-03-25 03:43:04' and `end` < '2025-03-25 06: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-03-25 06:43:17] Production.INFO: count ==67 [2025-03-25 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:43:04 - End Time 2025-03-25 06:43:04 [2025-03-25 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757733', 'tblTempUsageDetail_20' ) start [2025-03-25 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757733', 'tblTempUsageDetail_20' ) end [2025-03-25 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757733', 'tblTempVendorCDR_20' ) start [2025-03-25 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757733', 'tblTempVendorCDR_20' ) end [2025-03-25 06:43:17] Production.INFO: ProcessCDR(1,14757733,1,1,2) [2025-03-25 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757733', 'tblTempUsageDetail_20' ) start [2025-03-25 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757733', 'tblTempUsageDetail_20' ) end [2025-03-25 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:43:20] Production.INFO: ==9716== Releasing lock... [2025-03-25 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:44:06 [end_date_ymd] => 2025-03-25 06:44:06 [RateCDR] => 1 ) [2025-03-25 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:44:06' and `end` < '2025-03-25 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:44:18] Production.INFO: count ==67 [2025-03-25 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:44:06 - End Time 2025-03-25 06:44:06 [2025-03-25 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757738', 'tblTempUsageDetail_20' ) start [2025-03-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757738', 'tblTempUsageDetail_20' ) end [2025-03-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757738', 'tblTempVendorCDR_20' ) start [2025-03-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757738', 'tblTempVendorCDR_20' ) end [2025-03-25 06:44:18] Production.INFO: ProcessCDR(1,14757738,1,1,2) [2025-03-25 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757738', 'tblTempUsageDetail_20' ) start [2025-03-25 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757738', 'tblTempUsageDetail_20' ) end [2025-03-25 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:44:22] Production.INFO: ==9857== Releasing lock... [2025-03-25 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:45:05 [end_date_ymd] => 2025-03-25 06:45:05 [RateCDR] => 1 ) [2025-03-25 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:45:05' and `end` < '2025-03-25 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:45:17] Production.INFO: count ==67 [2025-03-25 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:45:05 - End Time 2025-03-25 06:45:05 [2025-03-25 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757743', 'tblTempUsageDetail_20' ) start [2025-03-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757743', 'tblTempUsageDetail_20' ) end [2025-03-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757743', 'tblTempVendorCDR_20' ) start [2025-03-25 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757743', 'tblTempVendorCDR_20' ) end [2025-03-25 06:45:17] Production.INFO: ProcessCDR(1,14757743,1,1,2) [2025-03-25 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757743', 'tblTempUsageDetail_20' ) start [2025-03-25 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757743', 'tblTempUsageDetail_20' ) end [2025-03-25 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:45:21] Production.INFO: ==9964== Releasing lock... [2025-03-25 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:46:06 [end_date_ymd] => 2025-03-25 06:46:06 [RateCDR] => 1 ) [2025-03-25 06:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:46:06' and `end` < '2025-03-25 06:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:46:18] Production.INFO: count ==67 [2025-03-25 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:46:06 - End Time 2025-03-25 06:46:06 [2025-03-25 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757748', 'tblTempUsageDetail_20' ) start [2025-03-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757748', 'tblTempUsageDetail_20' ) end [2025-03-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757748', 'tblTempVendorCDR_20' ) start [2025-03-25 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757748', 'tblTempVendorCDR_20' ) end [2025-03-25 06:46:18] Production.INFO: ProcessCDR(1,14757748,1,1,2) [2025-03-25 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757748', 'tblTempUsageDetail_20' ) start [2025-03-25 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757748', 'tblTempUsageDetail_20' ) end [2025-03-25 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:46:21] Production.INFO: ==10061== Releasing lock... [2025-03-25 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:47:05 [end_date_ymd] => 2025-03-25 06:47:05 [RateCDR] => 1 ) [2025-03-25 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:47:05' and `end` < '2025-03-25 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:47:17] Production.INFO: count ==67 [2025-03-25 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:47:05 - End Time 2025-03-25 06:47:05 [2025-03-25 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757753', 'tblTempUsageDetail_20' ) start [2025-03-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757753', 'tblTempUsageDetail_20' ) end [2025-03-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757753', 'tblTempVendorCDR_20' ) start [2025-03-25 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757753', 'tblTempVendorCDR_20' ) end [2025-03-25 06:47:17] Production.INFO: ProcessCDR(1,14757753,1,1,2) [2025-03-25 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757753', 'tblTempUsageDetail_20' ) start [2025-03-25 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757753', 'tblTempUsageDetail_20' ) end [2025-03-25 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:47:20] Production.INFO: ==10158== Releasing lock... [2025-03-25 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:48:05 [end_date_ymd] => 2025-03-25 06:48:05 [RateCDR] => 1 ) [2025-03-25 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:48:05' and `end` < '2025-03-25 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:48:18] Production.INFO: count ==67 [2025-03-25 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:48:05 - End Time 2025-03-25 06:48:05 [2025-03-25 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757758', 'tblTempUsageDetail_20' ) start [2025-03-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757758', 'tblTempUsageDetail_20' ) end [2025-03-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757758', 'tblTempVendorCDR_20' ) start [2025-03-25 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757758', 'tblTempVendorCDR_20' ) end [2025-03-25 06:48:18] Production.INFO: ProcessCDR(1,14757758,1,1,2) [2025-03-25 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757758', 'tblTempUsageDetail_20' ) start [2025-03-25 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757758', 'tblTempUsageDetail_20' ) end [2025-03-25 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:48:21] Production.INFO: ==10255== Releasing lock... [2025-03-25 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:49:06 [end_date_ymd] => 2025-03-25 06:49:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:49:06' and `end` < '2025-03-25 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-03-25 06:49:18] Production.INFO: count ==67 [2025-03-25 06:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:49:06 - End Time 2025-03-25 06:49:06 [2025-03-25 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757763', 'tblTempUsageDetail_20' ) start [2025-03-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757763', 'tblTempUsageDetail_20' ) end [2025-03-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757763', 'tblTempVendorCDR_20' ) start [2025-03-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757763', 'tblTempVendorCDR_20' ) end [2025-03-25 06:49:18] Production.INFO: ProcessCDR(1,14757763,1,1,2) [2025-03-25 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757763', 'tblTempUsageDetail_20' ) start [2025-03-25 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757763', 'tblTempUsageDetail_20' ) end [2025-03-25 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:49:22] Production.INFO: ==10353== Releasing lock... [2025-03-25 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:50:05 [end_date_ymd] => 2025-03-25 06:50:05 [RateCDR] => 1 ) [2025-03-25 06: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-03-25 03:50:05' and `end` < '2025-03-25 06: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-03-25 06:50:18] Production.INFO: count ==73 [2025-03-25 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:50:05 - End Time 2025-03-25 06:50:05 [2025-03-25 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757767', 'tblTempUsageDetail_20' ) start [2025-03-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757767', 'tblTempUsageDetail_20' ) end [2025-03-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757767', 'tblTempVendorCDR_20' ) start [2025-03-25 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757767', 'tblTempVendorCDR_20' ) end [2025-03-25 06:50:18] Production.INFO: ProcessCDR(1,14757767,1,1,2) [2025-03-25 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757767', 'tblTempUsageDetail_20' ) start [2025-03-25 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757767', 'tblTempUsageDetail_20' ) end [2025-03-25 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:50:21] Production.INFO: ==10461== Releasing lock... [2025-03-25 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:51:05 [end_date_ymd] => 2025-03-25 06:51:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:51:05' and `end` < '2025-03-25 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-03-25 06:51:18] Production.INFO: count ==80 [2025-03-25 06:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:51:05 - End Time 2025-03-25 06:51:05 [2025-03-25 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757774', 'tblTempUsageDetail_20' ) start [2025-03-25 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757774', 'tblTempUsageDetail_20' ) end [2025-03-25 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757774', 'tblTempVendorCDR_20' ) start [2025-03-25 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757774', 'tblTempVendorCDR_20' ) end [2025-03-25 06:51:18] Production.INFO: ProcessCDR(1,14757774,1,1,2) [2025-03-25 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757774', 'tblTempUsageDetail_20' ) start [2025-03-25 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757774', 'tblTempUsageDetail_20' ) end [2025-03-25 06:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:51:23] Production.INFO: ==10558== Releasing lock... [2025-03-25 06:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:51:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:52:05 [end_date_ymd] => 2025-03-25 06:52:05 [RateCDR] => 1 ) [2025-03-25 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:52:05' and `end` < '2025-03-25 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:52:17] Production.INFO: count ==82 [2025-03-25 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:52:05 - End Time 2025-03-25 06:52:05 [2025-03-25 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757779', 'tblTempUsageDetail_20' ) start [2025-03-25 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757779', 'tblTempUsageDetail_20' ) end [2025-03-25 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757779', 'tblTempVendorCDR_20' ) start [2025-03-25 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757779', 'tblTempVendorCDR_20' ) end [2025-03-25 06:52:17] Production.INFO: ProcessCDR(1,14757779,1,1,2) [2025-03-25 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757779', 'tblTempUsageDetail_20' ) start [2025-03-25 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757779', 'tblTempUsageDetail_20' ) end [2025-03-25 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:52:22] Production.INFO: ==10661== Releasing lock... [2025-03-25 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:53:06 [end_date_ymd] => 2025-03-25 06:53:06 [RateCDR] => 1 ) [2025-03-25 06:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:53:06' and `end` < '2025-03-25 06:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:53:18] Production.INFO: count ==83 [2025-03-25 06:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:53:06 - End Time 2025-03-25 06:53:06 [2025-03-25 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757784', 'tblTempUsageDetail_20' ) start [2025-03-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757784', 'tblTempUsageDetail_20' ) end [2025-03-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757784', 'tblTempVendorCDR_20' ) start [2025-03-25 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757784', 'tblTempVendorCDR_20' ) end [2025-03-25 06:53:18] Production.INFO: ProcessCDR(1,14757784,1,1,2) [2025-03-25 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757784', 'tblTempUsageDetail_20' ) start [2025-03-25 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757784', 'tblTempUsageDetail_20' ) end [2025-03-25 06:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:53:23] Production.INFO: ==10754== Releasing lock... [2025-03-25 06:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:53:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:54:05 [end_date_ymd] => 2025-03-25 06:54:05 [RateCDR] => 1 ) [2025-03-25 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:54:05' and `end` < '2025-03-25 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:54:17] Production.INFO: count ==83 [2025-03-25 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:54:05 - End Time 2025-03-25 06:54:05 [2025-03-25 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757789', 'tblTempUsageDetail_20' ) start [2025-03-25 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757789', 'tblTempUsageDetail_20' ) end [2025-03-25 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757789', 'tblTempVendorCDR_20' ) start [2025-03-25 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757789', 'tblTempVendorCDR_20' ) end [2025-03-25 06:54:17] Production.INFO: ProcessCDR(1,14757789,1,1,2) [2025-03-25 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757789', 'tblTempUsageDetail_20' ) start [2025-03-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757789', 'tblTempUsageDetail_20' ) end [2025-03-25 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:54:21] Production.INFO: ==10850== Releasing lock... [2025-03-25 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:55:05 [end_date_ymd] => 2025-03-25 06:55:05 [RateCDR] => 1 ) [2025-03-25 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:55:05' and `end` < '2025-03-25 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:55:18] Production.INFO: count ==83 [2025-03-25 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:55:05 - End Time 2025-03-25 06:55:05 [2025-03-25 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757794', 'tblTempUsageDetail_20' ) start [2025-03-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757794', 'tblTempUsageDetail_20' ) end [2025-03-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757794', 'tblTempVendorCDR_20' ) start [2025-03-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757794', 'tblTempVendorCDR_20' ) end [2025-03-25 06:55:18] Production.INFO: ProcessCDR(1,14757794,1,1,2) [2025-03-25 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757794', 'tblTempUsageDetail_20' ) start [2025-03-25 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757794', 'tblTempUsageDetail_20' ) end [2025-03-25 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:55:21] Production.INFO: ==10939== Releasing lock... [2025-03-25 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:56:05 [end_date_ymd] => 2025-03-25 06:56:05 [RateCDR] => 1 ) [2025-03-25 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:56:05' and `end` < '2025-03-25 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:56:17] Production.INFO: count ==78 [2025-03-25 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:56:05 - End Time 2025-03-25 06:56:05 [2025-03-25 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757799', 'tblTempUsageDetail_20' ) start [2025-03-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757799', 'tblTempUsageDetail_20' ) end [2025-03-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757799', 'tblTempVendorCDR_20' ) start [2025-03-25 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757799', 'tblTempVendorCDR_20' ) end [2025-03-25 06:56:17] Production.INFO: ProcessCDR(1,14757799,1,1,2) [2025-03-25 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757799', 'tblTempUsageDetail_20' ) start [2025-03-25 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757799', 'tblTempUsageDetail_20' ) end [2025-03-25 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:56:21] Production.INFO: ==11025== Releasing lock... [2025-03-25 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:57:05 [end_date_ymd] => 2025-03-25 06:57:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 03:57:05' and `end` < '2025-03-25 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-03-25 06:57:18] Production.INFO: count ==78 [2025-03-25 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:57:05 - End Time 2025-03-25 06:57:05 [2025-03-25 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757804', 'tblTempUsageDetail_20' ) start [2025-03-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757804', 'tblTempUsageDetail_20' ) end [2025-03-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757804', 'tblTempVendorCDR_20' ) start [2025-03-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757804', 'tblTempVendorCDR_20' ) end [2025-03-25 06:57:18] Production.INFO: ProcessCDR(1,14757804,1,1,2) [2025-03-25 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757804', 'tblTempUsageDetail_20' ) start [2025-03-25 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757804', 'tblTempUsageDetail_20' ) end [2025-03-25 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:57:21] Production.INFO: ==11117== Releasing lock... [2025-03-25 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:58:05 [end_date_ymd] => 2025-03-25 06:58:05 [RateCDR] => 1 ) [2025-03-25 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:58:05' and `end` < '2025-03-25 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:58:17] Production.INFO: count ==78 [2025-03-25 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-25 03:58:05 - End Time 2025-03-25 06:58:05 [2025-03-25 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757809', 'tblTempUsageDetail_20' ) start [2025-03-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757809', 'tblTempUsageDetail_20' ) end [2025-03-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757809', 'tblTempVendorCDR_20' ) start [2025-03-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757809', 'tblTempVendorCDR_20' ) end [2025-03-25 06:58:17] Production.INFO: ProcessCDR(1,14757809,1,1,2) [2025-03-25 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757809', 'tblTempUsageDetail_20' ) start [2025-03-25 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757809', 'tblTempUsageDetail_20' ) end [2025-03-25 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:58:20] Production.INFO: ==11204== Releasing lock... [2025-03-25 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 03:59:05 [end_date_ymd] => 2025-03-25 06:59:05 [RateCDR] => 1 ) [2025-03-25 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 03:59:05' and `end` < '2025-03-25 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 06:59:18] Production.INFO: count ==79 [2025-03-25 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 03:59:05 - End Time 2025-03-25 06:59:05 [2025-03-25 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757814', 'tblTempUsageDetail_20' ) start [2025-03-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757814', 'tblTempUsageDetail_20' ) end [2025-03-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757814', 'tblTempVendorCDR_20' ) start [2025-03-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757814', 'tblTempVendorCDR_20' ) end [2025-03-25 06:59:18] Production.INFO: ProcessCDR(1,14757814,1,1,2) [2025-03-25 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 06:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757814', 'tblTempUsageDetail_20' ) start [2025-03-25 06:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757814', 'tblTempUsageDetail_20' ) end [2025-03-25 06:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 06:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 06:59:23] Production.INFO: ==11330== Releasing lock... [2025-03-25 06:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 06:59:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:00:06 [end_date_ymd] => 2025-03-25 07:00:06 [RateCDR] => 1 ) [2025-03-25 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:00:06' and `end` < '2025-03-25 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:00:19] Production.INFO: count ==79 [2025-03-25 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:00:06 - End Time 2025-03-25 07:00:06 [2025-03-25 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757820', 'tblTempUsageDetail_20' ) start [2025-03-25 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757820', 'tblTempUsageDetail_20' ) end [2025-03-25 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757820', 'tblTempVendorCDR_20' ) start [2025-03-25 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757820', 'tblTempVendorCDR_20' ) end [2025-03-25 07:00:19] Production.INFO: ProcessCDR(1,14757820,1,1,2) [2025-03-25 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757820', 'tblTempUsageDetail_20' ) start [2025-03-25 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757820', 'tblTempUsageDetail_20' ) end [2025-03-25 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:00:22] Production.INFO: ==11423== Releasing lock... [2025-03-25 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:01:05 [end_date_ymd] => 2025-03-25 07:01:05 [RateCDR] => 1 ) [2025-03-25 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:01:05' and `end` < '2025-03-25 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:01:18] Production.INFO: count ==84 [2025-03-25 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:01:05 - End Time 2025-03-25 07:01:05 [2025-03-25 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757825', 'tblTempUsageDetail_20' ) start [2025-03-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757825', 'tblTempUsageDetail_20' ) end [2025-03-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757825', 'tblTempVendorCDR_20' ) start [2025-03-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757825', 'tblTempVendorCDR_20' ) end [2025-03-25 07:01:18] Production.INFO: ProcessCDR(1,14757825,1,1,2) [2025-03-25 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757825', 'tblTempUsageDetail_20' ) start [2025-03-25 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757825', 'tblTempUsageDetail_20' ) end [2025-03-25 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:01:21] Production.INFO: ==11577== Releasing lock... [2025-03-25 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:02:06 [end_date_ymd] => 2025-03-25 07:02:06 [RateCDR] => 1 ) [2025-03-25 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:02:06' and `end` < '2025-03-25 07: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-03-25 07:02:18] Production.INFO: count ==84 [2025-03-25 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:02:06 - End Time 2025-03-25 07:02:06 [2025-03-25 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757830', 'tblTempUsageDetail_20' ) start [2025-03-25 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757830', 'tblTempUsageDetail_20' ) end [2025-03-25 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757830', 'tblTempVendorCDR_20' ) start [2025-03-25 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757830', 'tblTempVendorCDR_20' ) end [2025-03-25 07:02:18] Production.INFO: ProcessCDR(1,14757830,1,1,2) [2025-03-25 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757830', 'tblTempUsageDetail_20' ) start [2025-03-25 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757830', 'tblTempUsageDetail_20' ) end [2025-03-25 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:02:22] Production.INFO: ==11711== Releasing lock... [2025-03-25 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:03:05 [end_date_ymd] => 2025-03-25 07:03:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:03:05' and `end` < '2025-03-25 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-03-25 07:03:18] Production.INFO: count ==84 [2025-03-25 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:03:05 - End Time 2025-03-25 07:03:05 [2025-03-25 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757835', 'tblTempUsageDetail_20' ) start [2025-03-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757835', 'tblTempUsageDetail_20' ) end [2025-03-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757835', 'tblTempVendorCDR_20' ) start [2025-03-25 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757835', 'tblTempVendorCDR_20' ) end [2025-03-25 07:03:18] Production.INFO: ProcessCDR(1,14757835,1,1,2) [2025-03-25 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757835', 'tblTempUsageDetail_20' ) start [2025-03-25 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757835', 'tblTempUsageDetail_20' ) end [2025-03-25 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:03:21] Production.INFO: ==11803== Releasing lock... [2025-03-25 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:04:06 [end_date_ymd] => 2025-03-25 07:04:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:04:06' and `end` < '2025-03-25 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-03-25 07:04:19] Production.INFO: count ==84 [2025-03-25 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:04:06 - End Time 2025-03-25 07:04:06 [2025-03-25 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757840', 'tblTempUsageDetail_20' ) start [2025-03-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757840', 'tblTempUsageDetail_20' ) end [2025-03-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757840', 'tblTempVendorCDR_20' ) start [2025-03-25 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757840', 'tblTempVendorCDR_20' ) end [2025-03-25 07:04:19] Production.INFO: ProcessCDR(1,14757840,1,1,2) [2025-03-25 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757840', 'tblTempUsageDetail_20' ) start [2025-03-25 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757840', 'tblTempUsageDetail_20' ) end [2025-03-25 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:04:23] Production.INFO: ==11890== Releasing lock... [2025-03-25 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:05:05 [end_date_ymd] => 2025-03-25 07:05:05 [RateCDR] => 1 ) [2025-03-25 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:05:05' and `end` < '2025-03-25 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:05:19] Production.INFO: count ==84 [2025-03-25 07:05:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:05:05 - End Time 2025-03-25 07:05:05 [2025-03-25 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757845', 'tblTempUsageDetail_20' ) start [2025-03-25 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757845', 'tblTempUsageDetail_20' ) end [2025-03-25 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757845', 'tblTempVendorCDR_20' ) start [2025-03-25 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757845', 'tblTempVendorCDR_20' ) end [2025-03-25 07:05:19] Production.INFO: ProcessCDR(1,14757845,1,1,2) [2025-03-25 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757845', 'tblTempUsageDetail_20' ) start [2025-03-25 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757845', 'tblTempUsageDetail_20' ) end [2025-03-25 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:05:22] Production.INFO: ==12052== Releasing lock... [2025-03-25 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:06:06 [end_date_ymd] => 2025-03-25 07:06:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:06:06' and `end` < '2025-03-25 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-03-25 07:06:19] Production.INFO: count ==84 [2025-03-25 07:06:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:06:06 - End Time 2025-03-25 07:06:06 [2025-03-25 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757850', 'tblTempUsageDetail_20' ) start [2025-03-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757850', 'tblTempUsageDetail_20' ) end [2025-03-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757850', 'tblTempVendorCDR_20' ) start [2025-03-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757850', 'tblTempVendorCDR_20' ) end [2025-03-25 07:06:19] Production.INFO: ProcessCDR(1,14757850,1,1,2) [2025-03-25 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757850', 'tblTempUsageDetail_20' ) start [2025-03-25 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757850', 'tblTempUsageDetail_20' ) end [2025-03-25 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:06:22] Production.INFO: ==12138== Releasing lock... [2025-03-25 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:07:05 [end_date_ymd] => 2025-03-25 07:07:05 [RateCDR] => 1 ) [2025-03-25 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:07:05' and `end` < '2025-03-25 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:07:18] Production.INFO: count ==84 [2025-03-25 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:07:05 - End Time 2025-03-25 07:07:05 [2025-03-25 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757855', 'tblTempUsageDetail_20' ) start [2025-03-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757855', 'tblTempUsageDetail_20' ) end [2025-03-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757855', 'tblTempVendorCDR_20' ) start [2025-03-25 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757855', 'tblTempVendorCDR_20' ) end [2025-03-25 07:07:18] Production.INFO: ProcessCDR(1,14757855,1,1,2) [2025-03-25 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757855', 'tblTempUsageDetail_20' ) start [2025-03-25 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757855', 'tblTempUsageDetail_20' ) end [2025-03-25 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:07:21] Production.INFO: ==12224== Releasing lock... [2025-03-25 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-25 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:08:05 [end_date_ymd] => 2025-03-25 07:08:05 [RateCDR] => 1 ) [2025-03-25 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:08:05' and `end` < '2025-03-25 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:08:19] Production.INFO: count ==81 [2025-03-25 07:08:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:08:05 - End Time 2025-03-25 07:08:05 [2025-03-25 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757860', 'tblTempUsageDetail_20' ) start [2025-03-25 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757860', 'tblTempUsageDetail_20' ) end [2025-03-25 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757860', 'tblTempVendorCDR_20' ) start [2025-03-25 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757860', 'tblTempVendorCDR_20' ) end [2025-03-25 07:08:19] Production.INFO: ProcessCDR(1,14757860,1,1,2) [2025-03-25 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757860', 'tblTempUsageDetail_20' ) start [2025-03-25 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757860', 'tblTempUsageDetail_20' ) end [2025-03-25 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:08:23] Production.INFO: ==12397== Releasing lock... [2025-03-25 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:08:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:09:05 [end_date_ymd] => 2025-03-25 07:09:05 [RateCDR] => 1 ) [2025-03-25 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:09:05' and `end` < '2025-03-25 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:09:18] Production.INFO: count ==79 [2025-03-25 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:09:05 - End Time 2025-03-25 07:09:05 [2025-03-25 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757865', 'tblTempUsageDetail_20' ) start [2025-03-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757865', 'tblTempUsageDetail_20' ) end [2025-03-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757865', 'tblTempVendorCDR_20' ) start [2025-03-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757865', 'tblTempVendorCDR_20' ) end [2025-03-25 07:09:18] Production.INFO: ProcessCDR(1,14757865,1,1,2) [2025-03-25 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757865', 'tblTempUsageDetail_20' ) start [2025-03-25 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757865', 'tblTempUsageDetail_20' ) end [2025-03-25 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:09:22] Production.INFO: ==12491== Releasing lock... [2025-03-25 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:10:07 [end_date_ymd] => 2025-03-25 07:10:07 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:10:07' and `end` < '2025-03-25 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-03-25 07:10:19] Production.INFO: count ==87 [2025-03-25 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:10:07 - End Time 2025-03-25 07:10:07 [2025-03-25 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757871', 'tblTempUsageDetail_20' ) start [2025-03-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757871', 'tblTempUsageDetail_20' ) end [2025-03-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757871', 'tblTempVendorCDR_20' ) start [2025-03-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757871', 'tblTempVendorCDR_20' ) end [2025-03-25 07:10:19] Production.INFO: ProcessCDR(1,14757871,1,1,2) [2025-03-25 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757871', 'tblTempUsageDetail_20' ) start [2025-03-25 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757871', 'tblTempUsageDetail_20' ) end [2025-03-25 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:10:22] Production.INFO: ==12582== Releasing lock... [2025-03-25 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:11:05 [end_date_ymd] => 2025-03-25 07:11:05 [RateCDR] => 1 ) [2025-03-25 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:11:05' and `end` < '2025-03-25 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:11:19] Production.INFO: count ==87 [2025-03-25 07:11:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:11:05 - End Time 2025-03-25 07:11:05 [2025-03-25 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757876', 'tblTempUsageDetail_20' ) start [2025-03-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757876', 'tblTempUsageDetail_20' ) end [2025-03-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757876', 'tblTempVendorCDR_20' ) start [2025-03-25 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757876', 'tblTempVendorCDR_20' ) end [2025-03-25 07:11:19] Production.INFO: ProcessCDR(1,14757876,1,1,2) [2025-03-25 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757876', 'tblTempUsageDetail_20' ) start [2025-03-25 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757876', 'tblTempUsageDetail_20' ) end [2025-03-25 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:11:22] Production.INFO: ==12672== Releasing lock... [2025-03-25 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:12:05 [end_date_ymd] => 2025-03-25 07:12:05 [RateCDR] => 1 ) [2025-03-25 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:12:05' and `end` < '2025-03-25 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:12:18] Production.INFO: count ==87 [2025-03-25 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:12:05 - End Time 2025-03-25 07:12:05 [2025-03-25 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757881', 'tblTempUsageDetail_20' ) start [2025-03-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757881', 'tblTempUsageDetail_20' ) end [2025-03-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757881', 'tblTempVendorCDR_20' ) start [2025-03-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757881', 'tblTempVendorCDR_20' ) end [2025-03-25 07:12:18] Production.INFO: ProcessCDR(1,14757881,1,1,2) [2025-03-25 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757881', 'tblTempUsageDetail_20' ) start [2025-03-25 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757881', 'tblTempUsageDetail_20' ) end [2025-03-25 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:12:22] Production.INFO: ==12836== Releasing lock... [2025-03-25 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:13:05 [end_date_ymd] => 2025-03-25 07:13:05 [RateCDR] => 1 ) [2025-03-25 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:13:05' and `end` < '2025-03-25 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:13:18] Production.INFO: count ==87 [2025-03-25 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:13:05 - End Time 2025-03-25 07:13:05 [2025-03-25 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757886', 'tblTempUsageDetail_20' ) start [2025-03-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757886', 'tblTempUsageDetail_20' ) end [2025-03-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757886', 'tblTempVendorCDR_20' ) start [2025-03-25 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757886', 'tblTempVendorCDR_20' ) end [2025-03-25 07:13:18] Production.INFO: ProcessCDR(1,14757886,1,1,2) [2025-03-25 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757886', 'tblTempUsageDetail_20' ) start [2025-03-25 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757886', 'tblTempUsageDetail_20' ) end [2025-03-25 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:13:21] Production.INFO: ==12925== Releasing lock... [2025-03-25 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:14:05 [end_date_ymd] => 2025-03-25 07:14:05 [RateCDR] => 1 ) [2025-03-25 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:14:05' and `end` < '2025-03-25 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:14:18] Production.INFO: count ==87 [2025-03-25 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:14:05 - End Time 2025-03-25 07:14:05 [2025-03-25 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757891', 'tblTempUsageDetail_20' ) start [2025-03-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757891', 'tblTempUsageDetail_20' ) end [2025-03-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757891', 'tblTempVendorCDR_20' ) start [2025-03-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757891', 'tblTempVendorCDR_20' ) end [2025-03-25 07:14:18] Production.INFO: ProcessCDR(1,14757891,1,1,2) [2025-03-25 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757891', 'tblTempUsageDetail_20' ) start [2025-03-25 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757891', 'tblTempUsageDetail_20' ) end [2025-03-25 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:14:21] Production.INFO: ==13010== Releasing lock... [2025-03-25 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:15:05 [end_date_ymd] => 2025-03-25 07:15:05 [RateCDR] => 1 ) [2025-03-25 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:15:05' and `end` < '2025-03-25 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:15:18] Production.INFO: count ==87 [2025-03-25 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:15:05 - End Time 2025-03-25 07:15:05 [2025-03-25 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757896', 'tblTempUsageDetail_20' ) start [2025-03-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757896', 'tblTempUsageDetail_20' ) end [2025-03-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757896', 'tblTempVendorCDR_20' ) start [2025-03-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757896', 'tblTempVendorCDR_20' ) end [2025-03-25 07:15:18] Production.INFO: ProcessCDR(1,14757896,1,1,2) [2025-03-25 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757896', 'tblTempUsageDetail_20' ) start [2025-03-25 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757896', 'tblTempUsageDetail_20' ) end [2025-03-25 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:15:21] Production.INFO: ==13225== Releasing lock... [2025-03-25 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:16:05 [end_date_ymd] => 2025-03-25 07:16:05 [RateCDR] => 1 ) [2025-03-25 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:16:05' and `end` < '2025-03-25 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:16:19] Production.INFO: count ==87 [2025-03-25 07:16:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:16:05 - End Time 2025-03-25 07:16:05 [2025-03-25 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757901', 'tblTempUsageDetail_20' ) start [2025-03-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757901', 'tblTempUsageDetail_20' ) end [2025-03-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757901', 'tblTempVendorCDR_20' ) start [2025-03-25 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757901', 'tblTempVendorCDR_20' ) end [2025-03-25 07:16:19] Production.INFO: ProcessCDR(1,14757901,1,1,2) [2025-03-25 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757901', 'tblTempUsageDetail_20' ) start [2025-03-25 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757901', 'tblTempUsageDetail_20' ) end [2025-03-25 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:16:22] Production.INFO: ==13324== Releasing lock... [2025-03-25 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:17:05 [end_date_ymd] => 2025-03-25 07:17:05 [RateCDR] => 1 ) [2025-03-25 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:17:05' and `end` < '2025-03-25 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:17:18] Production.INFO: count ==87 [2025-03-25 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:17:05 - End Time 2025-03-25 07:17:05 [2025-03-25 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757906', 'tblTempUsageDetail_20' ) start [2025-03-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757906', 'tblTempUsageDetail_20' ) end [2025-03-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757906', 'tblTempVendorCDR_20' ) start [2025-03-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757906', 'tblTempVendorCDR_20' ) end [2025-03-25 07:17:18] Production.INFO: ProcessCDR(1,14757906,1,1,2) [2025-03-25 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757906', 'tblTempUsageDetail_20' ) start [2025-03-25 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757906', 'tblTempUsageDetail_20' ) end [2025-03-25 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:17:21] Production.INFO: ==13415== Releasing lock... [2025-03-25 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:18:05 [end_date_ymd] => 2025-03-25 07:18:05 [RateCDR] => 1 ) [2025-03-25 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:18:05' and `end` < '2025-03-25 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:18:18] Production.INFO: count ==87 [2025-03-25 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:18:05 - End Time 2025-03-25 07:18:05 [2025-03-25 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757911', 'tblTempUsageDetail_20' ) start [2025-03-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757911', 'tblTempUsageDetail_20' ) end [2025-03-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757911', 'tblTempVendorCDR_20' ) start [2025-03-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757911', 'tblTempVendorCDR_20' ) end [2025-03-25 07:18:18] Production.INFO: ProcessCDR(1,14757911,1,1,2) [2025-03-25 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757911', 'tblTempUsageDetail_20' ) start [2025-03-25 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757911', 'tblTempUsageDetail_20' ) end [2025-03-25 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:18:21] Production.INFO: ==13498== Releasing lock... [2025-03-25 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:19:05 [end_date_ymd] => 2025-03-25 07:19:05 [RateCDR] => 1 ) [2025-03-25 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:19:05' and `end` < '2025-03-25 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:19:18] Production.INFO: count ==87 [2025-03-25 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:19:05 - End Time 2025-03-25 07:19:05 [2025-03-25 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757916', 'tblTempUsageDetail_20' ) start [2025-03-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757916', 'tblTempUsageDetail_20' ) end [2025-03-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757916', 'tblTempVendorCDR_20' ) start [2025-03-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757916', 'tblTempVendorCDR_20' ) end [2025-03-25 07:19:18] Production.INFO: ProcessCDR(1,14757916,1,1,2) [2025-03-25 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757916', 'tblTempUsageDetail_20' ) start [2025-03-25 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757916', 'tblTempUsageDetail_20' ) end [2025-03-25 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:19:21] Production.INFO: ==13588== Releasing lock... [2025-03-25 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:20:05 [end_date_ymd] => 2025-03-25 07:20:05 [RateCDR] => 1 ) [2025-03-25 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:20:05' and `end` < '2025-03-25 07: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-03-25 07:20:18] Production.INFO: count ==95 [2025-03-25 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:20:05 - End Time 2025-03-25 07:20:05 [2025-03-25 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757921', 'tblTempUsageDetail_20' ) start [2025-03-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757921', 'tblTempUsageDetail_20' ) end [2025-03-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757921', 'tblTempVendorCDR_20' ) start [2025-03-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757921', 'tblTempVendorCDR_20' ) end [2025-03-25 07:20:18] Production.INFO: ProcessCDR(1,14757921,1,1,2) [2025-03-25 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757921', 'tblTempUsageDetail_20' ) start [2025-03-25 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757921', 'tblTempUsageDetail_20' ) end [2025-03-25 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:20:21] Production.INFO: ==13676== Releasing lock... [2025-03-25 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:21:06 [end_date_ymd] => 2025-03-25 07:21:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:21:06' and `end` < '2025-03-25 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-03-25 07:21:18] Production.INFO: count ==95 [2025-03-25 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:21:06 - End Time 2025-03-25 07:21:06 [2025-03-25 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757927', 'tblTempUsageDetail_20' ) start [2025-03-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757927', 'tblTempUsageDetail_20' ) end [2025-03-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757927', 'tblTempVendorCDR_20' ) start [2025-03-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757927', 'tblTempVendorCDR_20' ) end [2025-03-25 07:21:18] Production.INFO: ProcessCDR(1,14757927,1,1,2) [2025-03-25 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757927', 'tblTempUsageDetail_20' ) start [2025-03-25 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757927', 'tblTempUsageDetail_20' ) end [2025-03-25 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:21:22] Production.INFO: ==13765== Releasing lock... [2025-03-25 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:22:06 [end_date_ymd] => 2025-03-25 07:22:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:22:06' and `end` < '2025-03-25 07: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-03-25 07:22:18] Production.INFO: count ==100 [2025-03-25 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:22:06 - End Time 2025-03-25 07:22:06 [2025-03-25 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757932', 'tblTempUsageDetail_20' ) start [2025-03-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757932', 'tblTempUsageDetail_20' ) end [2025-03-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757932', 'tblTempVendorCDR_20' ) start [2025-03-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757932', 'tblTempVendorCDR_20' ) end [2025-03-25 07:22:18] Production.INFO: ProcessCDR(1,14757932,1,1,2) [2025-03-25 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757932', 'tblTempUsageDetail_20' ) start [2025-03-25 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757932', 'tblTempUsageDetail_20' ) end [2025-03-25 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:22:22] Production.INFO: ==13853== Releasing lock... [2025-03-25 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:23:06 [end_date_ymd] => 2025-03-25 07:23:06 [RateCDR] => 1 ) [2025-03-25 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:23:06' and `end` < '2025-03-25 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:23:18] Production.INFO: count ==102 [2025-03-25 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:23:06 - End Time 2025-03-25 07:23:06 [2025-03-25 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757937', 'tblTempUsageDetail_20' ) start [2025-03-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757937', 'tblTempUsageDetail_20' ) end [2025-03-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757937', 'tblTempVendorCDR_20' ) start [2025-03-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757937', 'tblTempVendorCDR_20' ) end [2025-03-25 07:23:18] Production.INFO: ProcessCDR(1,14757937,1,1,2) [2025-03-25 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757937', 'tblTempUsageDetail_20' ) start [2025-03-25 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757937', 'tblTempUsageDetail_20' ) end [2025-03-25 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:23:21] Production.INFO: ==13940== Releasing lock... [2025-03-25 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:23:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:24:06 [end_date_ymd] => 2025-03-25 07:24:06 [RateCDR] => 1 ) [2025-03-25 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:24:06' and `end` < '2025-03-25 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:24:18] Production.INFO: count ==105 [2025-03-25 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:24:06 - End Time 2025-03-25 07:24:06 [2025-03-25 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757942', 'tblTempUsageDetail_20' ) start [2025-03-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757942', 'tblTempUsageDetail_20' ) end [2025-03-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757942', 'tblTempVendorCDR_20' ) start [2025-03-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757942', 'tblTempVendorCDR_20' ) end [2025-03-25 07:24:18] Production.INFO: ProcessCDR(1,14757942,1,1,2) [2025-03-25 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757942', 'tblTempUsageDetail_20' ) start [2025-03-25 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757942', 'tblTempUsageDetail_20' ) end [2025-03-25 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:24:21] Production.INFO: ==14029== Releasing lock... [2025-03-25 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:25:06 [end_date_ymd] => 2025-03-25 07:25:06 [RateCDR] => 1 ) [2025-03-25 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:25:06' and `end` < '2025-03-25 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:25:18] Production.INFO: count ==106 [2025-03-25 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:25:06 - End Time 2025-03-25 07:25:06 [2025-03-25 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757947', 'tblTempUsageDetail_20' ) start [2025-03-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757947', 'tblTempUsageDetail_20' ) end [2025-03-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757947', 'tblTempVendorCDR_20' ) start [2025-03-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757947', 'tblTempVendorCDR_20' ) end [2025-03-25 07:25:18] Production.INFO: ProcessCDR(1,14757947,1,1,2) [2025-03-25 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757947', 'tblTempUsageDetail_20' ) start [2025-03-25 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757947', 'tblTempUsageDetail_20' ) end [2025-03-25 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:25:23] Production.INFO: ==14111== Releasing lock... [2025-03-25 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:26:05 [end_date_ymd] => 2025-03-25 07:26:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:26:05' and `end` < '2025-03-25 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-03-25 07:26:18] Production.INFO: count ==107 [2025-03-25 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:26:05 - End Time 2025-03-25 07:26:05 [2025-03-25 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757952', 'tblTempUsageDetail_20' ) start [2025-03-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757952', 'tblTempUsageDetail_20' ) end [2025-03-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757952', 'tblTempVendorCDR_20' ) start [2025-03-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757952', 'tblTempVendorCDR_20' ) end [2025-03-25 07:26:18] Production.INFO: ProcessCDR(1,14757952,1,1,2) [2025-03-25 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757952', 'tblTempUsageDetail_20' ) start [2025-03-25 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757952', 'tblTempUsageDetail_20' ) end [2025-03-25 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:26:22] Production.INFO: ==14202== Releasing lock... [2025-03-25 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:26:22] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:27:06 [end_date_ymd] => 2025-03-25 07:27:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:27:06' and `end` < '2025-03-25 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-03-25 07:27:18] Production.INFO: count ==108 [2025-03-25 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:27:06 - End Time 2025-03-25 07:27:06 [2025-03-25 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757957', 'tblTempUsageDetail_20' ) start [2025-03-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757957', 'tblTempUsageDetail_20' ) end [2025-03-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757957', 'tblTempVendorCDR_20' ) start [2025-03-25 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757957', 'tblTempVendorCDR_20' ) end [2025-03-25 07:27:18] Production.INFO: ProcessCDR(1,14757957,1,1,2) [2025-03-25 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757957', 'tblTempUsageDetail_20' ) start [2025-03-25 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757957', 'tblTempUsageDetail_20' ) end [2025-03-25 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:27:23] Production.INFO: ==14292== Releasing lock... [2025-03-25 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:27:23] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:28:05 [end_date_ymd] => 2025-03-25 07:28:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:28:05' and `end` < '2025-03-25 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-03-25 07:28:17] Production.INFO: count ==108 [2025-03-25 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:28:05 - End Time 2025-03-25 07:28:05 [2025-03-25 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757962', 'tblTempUsageDetail_20' ) start [2025-03-25 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757962', 'tblTempUsageDetail_20' ) end [2025-03-25 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757962', 'tblTempVendorCDR_20' ) start [2025-03-25 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757962', 'tblTempVendorCDR_20' ) end [2025-03-25 07:28:17] Production.INFO: ProcessCDR(1,14757962,1,1,2) [2025-03-25 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757962', 'tblTempUsageDetail_20' ) start [2025-03-25 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757962', 'tblTempUsageDetail_20' ) end [2025-03-25 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:28:21] Production.INFO: ==14376== Releasing lock... [2025-03-25 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:29:06 [end_date_ymd] => 2025-03-25 07:29:06 [RateCDR] => 1 ) [2025-03-25 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:29:06' and `end` < '2025-03-25 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:29:18] Production.INFO: count ==108 [2025-03-25 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:29:06 - End Time 2025-03-25 07:29:06 [2025-03-25 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757967', 'tblTempUsageDetail_20' ) start [2025-03-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757967', 'tblTempUsageDetail_20' ) end [2025-03-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757967', 'tblTempVendorCDR_20' ) start [2025-03-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757967', 'tblTempVendorCDR_20' ) end [2025-03-25 07:29:18] Production.INFO: ProcessCDR(1,14757967,1,1,2) [2025-03-25 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757967', 'tblTempUsageDetail_20' ) start [2025-03-25 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757967', 'tblTempUsageDetail_20' ) end [2025-03-25 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:29:22] Production.INFO: ==14465== Releasing lock... [2025-03-25 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:29:22] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:30:06 [end_date_ymd] => 2025-03-25 07:30:06 [RateCDR] => 1 ) [2025-03-25 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:30:06' and `end` < '2025-03-25 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:30:18] Production.INFO: count ==111 [2025-03-25 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:30:06 - End Time 2025-03-25 07:30:06 [2025-03-25 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757973', 'tblTempUsageDetail_20' ) start [2025-03-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757973', 'tblTempUsageDetail_20' ) end [2025-03-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757973', 'tblTempVendorCDR_20' ) start [2025-03-25 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757973', 'tblTempVendorCDR_20' ) end [2025-03-25 07:30:18] Production.INFO: ProcessCDR(1,14757973,1,1,2) [2025-03-25 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757973', 'tblTempUsageDetail_20' ) start [2025-03-25 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757973', 'tblTempUsageDetail_20' ) end [2025-03-25 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:30:21] Production.INFO: ==14597== Releasing lock... [2025-03-25 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:31:05 [end_date_ymd] => 2025-03-25 07:31:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:31:05' and `end` < '2025-03-25 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-03-25 07:31:18] Production.INFO: count ==111 [2025-03-25 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:31:05 - End Time 2025-03-25 07:31:05 [2025-03-25 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757978', 'tblTempUsageDetail_20' ) start [2025-03-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757978', 'tblTempUsageDetail_20' ) end [2025-03-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757978', 'tblTempVendorCDR_20' ) start [2025-03-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757978', 'tblTempVendorCDR_20' ) end [2025-03-25 07:31:18] Production.INFO: ProcessCDR(1,14757978,1,1,2) [2025-03-25 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757978', 'tblTempUsageDetail_20' ) start [2025-03-25 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757978', 'tblTempUsageDetail_20' ) end [2025-03-25 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:31:21] Production.INFO: ==14685== Releasing lock... [2025-03-25 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:32:05 [end_date_ymd] => 2025-03-25 07:32:05 [RateCDR] => 1 ) [2025-03-25 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:32:05' and `end` < '2025-03-25 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:32:18] Production.INFO: count ==111 [2025-03-25 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:32:05 - End Time 2025-03-25 07:32:05 [2025-03-25 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757983', 'tblTempUsageDetail_20' ) start [2025-03-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757983', 'tblTempUsageDetail_20' ) end [2025-03-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757983', 'tblTempVendorCDR_20' ) start [2025-03-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757983', 'tblTempVendorCDR_20' ) end [2025-03-25 07:32:18] Production.INFO: ProcessCDR(1,14757983,1,1,2) [2025-03-25 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757983', 'tblTempUsageDetail_20' ) start [2025-03-25 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757983', 'tblTempUsageDetail_20' ) end [2025-03-25 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:32:21] Production.INFO: ==14772== Releasing lock... [2025-03-25 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:33:05 [end_date_ymd] => 2025-03-25 07:33:05 [RateCDR] => 1 ) [2025-03-25 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:33:05' and `end` < '2025-03-25 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:33:18] Production.INFO: count ==111 [2025-03-25 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:33:05 - End Time 2025-03-25 07:33:05 [2025-03-25 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757988', 'tblTempUsageDetail_20' ) start [2025-03-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757988', 'tblTempUsageDetail_20' ) end [2025-03-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757988', 'tblTempVendorCDR_20' ) start [2025-03-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757988', 'tblTempVendorCDR_20' ) end [2025-03-25 07:33:18] Production.INFO: ProcessCDR(1,14757988,1,1,2) [2025-03-25 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757988', 'tblTempUsageDetail_20' ) start [2025-03-25 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757988', 'tblTempUsageDetail_20' ) end [2025-03-25 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:33:21] Production.INFO: ==14861== Releasing lock... [2025-03-25 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:34:05 [end_date_ymd] => 2025-03-25 07:34:05 [RateCDR] => 1 ) [2025-03-25 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:34:05' and `end` < '2025-03-25 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:34:17] Production.INFO: count ==120 [2025-03-25 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:34:05 - End Time 2025-03-25 07:34:05 [2025-03-25 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757993', 'tblTempUsageDetail_20' ) start [2025-03-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757993', 'tblTempUsageDetail_20' ) end [2025-03-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757993', 'tblTempVendorCDR_20' ) start [2025-03-25 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757993', 'tblTempVendorCDR_20' ) end [2025-03-25 07:34:18] Production.INFO: ProcessCDR(1,14757993,1,1,2) [2025-03-25 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757993', 'tblTempUsageDetail_20' ) start [2025-03-25 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757993', 'tblTempUsageDetail_20' ) end [2025-03-25 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:34:22] Production.INFO: ==14948== Releasing lock... [2025-03-25 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:35:05 [end_date_ymd] => 2025-03-25 07:35:05 [RateCDR] => 1 ) [2025-03-25 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:35:05' and `end` < '2025-03-25 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:35:18] Production.INFO: count ==126 [2025-03-25 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:35:05 - End Time 2025-03-25 07:35:05 [2025-03-25 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757998', 'tblTempUsageDetail_20' ) start [2025-03-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14757998', 'tblTempUsageDetail_20' ) end [2025-03-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757998', 'tblTempVendorCDR_20' ) start [2025-03-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14757998', 'tblTempVendorCDR_20' ) end [2025-03-25 07:35:18] Production.INFO: ProcessCDR(1,14757998,1,1,2) [2025-03-25 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14757998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14757998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14757998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14757998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757998', 'tblTempUsageDetail_20' ) start [2025-03-25 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14757998', 'tblTempUsageDetail_20' ) end [2025-03-25 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:35:22] Production.INFO: ==15037== Releasing lock... [2025-03-25 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:36:05 [end_date_ymd] => 2025-03-25 07:36:05 [RateCDR] => 1 ) [2025-03-25 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:36:05' and `end` < '2025-03-25 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:36:17] Production.INFO: count ==126 [2025-03-25 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:36:05 - End Time 2025-03-25 07:36:05 [2025-03-25 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758003', 'tblTempUsageDetail_20' ) start [2025-03-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758003', 'tblTempUsageDetail_20' ) end [2025-03-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758003', 'tblTempVendorCDR_20' ) start [2025-03-25 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758003', 'tblTempVendorCDR_20' ) end [2025-03-25 07:36:18] Production.INFO: ProcessCDR(1,14758003,1,1,2) [2025-03-25 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758003', 'tblTempUsageDetail_20' ) start [2025-03-25 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758003', 'tblTempUsageDetail_20' ) end [2025-03-25 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:36:21] Production.INFO: ==15127== Releasing lock... [2025-03-25 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-25 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:37:05 [end_date_ymd] => 2025-03-25 07:37:05 [RateCDR] => 1 ) [2025-03-25 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:37:05' and `end` < '2025-03-25 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:37:18] Production.INFO: count ==134 [2025-03-25 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:37:05 - End Time 2025-03-25 07:37:05 [2025-03-25 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758008', 'tblTempUsageDetail_20' ) start [2025-03-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758008', 'tblTempUsageDetail_20' ) end [2025-03-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758008', 'tblTempVendorCDR_20' ) start [2025-03-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758008', 'tblTempVendorCDR_20' ) end [2025-03-25 07:37:18] Production.INFO: ProcessCDR(1,14758008,1,1,2) [2025-03-25 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758008', 'tblTempUsageDetail_20' ) start [2025-03-25 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758008', 'tblTempUsageDetail_20' ) end [2025-03-25 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:37:21] Production.INFO: ==15217== Releasing lock... [2025-03-25 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:38:05 [end_date_ymd] => 2025-03-25 07:38:05 [RateCDR] => 1 ) [2025-03-25 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:38:05' and `end` < '2025-03-25 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:38:17] Production.INFO: count ==135 [2025-03-25 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:38:05 - End Time 2025-03-25 07:38:05 [2025-03-25 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758013', 'tblTempUsageDetail_20' ) start [2025-03-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758013', 'tblTempUsageDetail_20' ) end [2025-03-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758013', 'tblTempVendorCDR_20' ) start [2025-03-25 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758013', 'tblTempVendorCDR_20' ) end [2025-03-25 07:38:17] Production.INFO: ProcessCDR(1,14758013,1,1,2) [2025-03-25 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758013', 'tblTempUsageDetail_20' ) start [2025-03-25 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758013', 'tblTempUsageDetail_20' ) end [2025-03-25 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:38:22] Production.INFO: ==15300== Releasing lock... [2025-03-25 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:39:05 [end_date_ymd] => 2025-03-25 07:39:05 [RateCDR] => 1 ) [2025-03-25 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:39:05' and `end` < '2025-03-25 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:39:18] Production.INFO: count ==136 [2025-03-25 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:39:05 - End Time 2025-03-25 07:39:05 [2025-03-25 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758018', 'tblTempUsageDetail_20' ) start [2025-03-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758018', 'tblTempUsageDetail_20' ) end [2025-03-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758018', 'tblTempVendorCDR_20' ) start [2025-03-25 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758018', 'tblTempVendorCDR_20' ) end [2025-03-25 07:39:18] Production.INFO: ProcessCDR(1,14758018,1,1,2) [2025-03-25 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758018', 'tblTempUsageDetail_20' ) start [2025-03-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758018', 'tblTempUsageDetail_20' ) end [2025-03-25 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:39:21] Production.INFO: ==15386== Releasing lock... [2025-03-25 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:40:07 [end_date_ymd] => 2025-03-25 07:40:07 [RateCDR] => 1 ) [2025-03-25 07:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:40:07' and `end` < '2025-03-25 07:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:40:19] Production.INFO: count ==144 [2025-03-25 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:40:07 - End Time 2025-03-25 07:40:07 [2025-03-25 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758024', 'tblTempUsageDetail_20' ) start [2025-03-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758024', 'tblTempUsageDetail_20' ) end [2025-03-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758024', 'tblTempVendorCDR_20' ) start [2025-03-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758024', 'tblTempVendorCDR_20' ) end [2025-03-25 07:40:19] Production.INFO: ProcessCDR(1,14758024,1,1,2) [2025-03-25 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758024', 'tblTempUsageDetail_20' ) start [2025-03-25 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758024', 'tblTempUsageDetail_20' ) end [2025-03-25 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:40:23] Production.INFO: ==15475== Releasing lock... [2025-03-25 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:41:05 [end_date_ymd] => 2025-03-25 07:41:05 [RateCDR] => 1 ) [2025-03-25 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:41:05' and `end` < '2025-03-25 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:41:18] Production.INFO: count ==144 [2025-03-25 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:41:05 - End Time 2025-03-25 07:41:05 [2025-03-25 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758029', 'tblTempUsageDetail_20' ) start [2025-03-25 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758029', 'tblTempUsageDetail_20' ) end [2025-03-25 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758029', 'tblTempVendorCDR_20' ) start [2025-03-25 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758029', 'tblTempVendorCDR_20' ) end [2025-03-25 07:41:18] Production.INFO: ProcessCDR(1,14758029,1,1,2) [2025-03-25 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758029', 'tblTempUsageDetail_20' ) start [2025-03-25 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758029', 'tblTempUsageDetail_20' ) end [2025-03-25 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:41:21] Production.INFO: ==15563== Releasing lock... [2025-03-25 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:42:05 [end_date_ymd] => 2025-03-25 07:42:05 [RateCDR] => 1 ) [2025-03-25 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:42:05' and `end` < '2025-03-25 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:42:18] Production.INFO: count ==144 [2025-03-25 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:42:05 - End Time 2025-03-25 07:42:05 [2025-03-25 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758034', 'tblTempUsageDetail_20' ) start [2025-03-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758034', 'tblTempUsageDetail_20' ) end [2025-03-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758034', 'tblTempVendorCDR_20' ) start [2025-03-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758034', 'tblTempVendorCDR_20' ) end [2025-03-25 07:42:18] Production.INFO: ProcessCDR(1,14758034,1,1,2) [2025-03-25 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758034', 'tblTempUsageDetail_20' ) start [2025-03-25 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758034', 'tblTempUsageDetail_20' ) end [2025-03-25 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:42:21] Production.INFO: ==15652== Releasing lock... [2025-03-25 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:43:05 [end_date_ymd] => 2025-03-25 07:43:05 [RateCDR] => 1 ) [2025-03-25 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:43:05' and `end` < '2025-03-25 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:43:18] Production.INFO: count ==144 [2025-03-25 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:43:05 - End Time 2025-03-25 07:43:05 [2025-03-25 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758039', 'tblTempUsageDetail_20' ) start [2025-03-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758039', 'tblTempUsageDetail_20' ) end [2025-03-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758039', 'tblTempVendorCDR_20' ) start [2025-03-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758039', 'tblTempVendorCDR_20' ) end [2025-03-25 07:43:18] Production.INFO: ProcessCDR(1,14758039,1,1,2) [2025-03-25 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758039', 'tblTempUsageDetail_20' ) start [2025-03-25 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758039', 'tblTempUsageDetail_20' ) end [2025-03-25 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:43:21] Production.INFO: ==15739== Releasing lock... [2025-03-25 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:44:06 [end_date_ymd] => 2025-03-25 07:44:06 [RateCDR] => 1 ) [2025-03-25 07:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:44:06' and `end` < '2025-03-25 07:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:44:18] Production.INFO: count ==143 [2025-03-25 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:44:06 - End Time 2025-03-25 07:44:06 [2025-03-25 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758044', 'tblTempUsageDetail_20' ) start [2025-03-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758044', 'tblTempUsageDetail_20' ) end [2025-03-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758044', 'tblTempVendorCDR_20' ) start [2025-03-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758044', 'tblTempVendorCDR_20' ) end [2025-03-25 07:44:18] Production.INFO: ProcessCDR(1,14758044,1,1,2) [2025-03-25 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758044', 'tblTempUsageDetail_20' ) start [2025-03-25 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758044', 'tblTempUsageDetail_20' ) end [2025-03-25 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:44:22] Production.INFO: ==15824== Releasing lock... [2025-03-25 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:44:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:45:04 [end_date_ymd] => 2025-03-25 07:45:04 [RateCDR] => 1 ) [2025-03-25 07:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:45:04' and `end` < '2025-03-25 07: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-03-25 07:45:17] Production.INFO: count ==144 [2025-03-25 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:45:04 - End Time 2025-03-25 07:45:04 [2025-03-25 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758048', 'tblTempUsageDetail_20' ) start [2025-03-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758048', 'tblTempUsageDetail_20' ) end [2025-03-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758048', 'tblTempVendorCDR_20' ) start [2025-03-25 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758048', 'tblTempVendorCDR_20' ) end [2025-03-25 07:45:17] Production.INFO: ProcessCDR(1,14758048,1,1,2) [2025-03-25 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758048', 'tblTempUsageDetail_20' ) start [2025-03-25 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758048', 'tblTempUsageDetail_20' ) end [2025-03-25 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:45:22] Production.INFO: ==15952== Releasing lock... [2025-03-25 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:46:05 [end_date_ymd] => 2025-03-25 07:46:05 [RateCDR] => 1 ) [2025-03-25 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:46:05' and `end` < '2025-03-25 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:46:18] Production.INFO: count ==144 [2025-03-25 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:46:05 - End Time 2025-03-25 07:46:05 [2025-03-25 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758054', 'tblTempUsageDetail_20' ) start [2025-03-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758054', 'tblTempUsageDetail_20' ) end [2025-03-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758054', 'tblTempVendorCDR_20' ) start [2025-03-25 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758054', 'tblTempVendorCDR_20' ) end [2025-03-25 07:46:18] Production.INFO: ProcessCDR(1,14758054,1,1,2) [2025-03-25 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758054', 'tblTempUsageDetail_20' ) start [2025-03-25 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758054', 'tblTempUsageDetail_20' ) end [2025-03-25 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:46:21] Production.INFO: ==16038== Releasing lock... [2025-03-25 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-25 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:47:05 [end_date_ymd] => 2025-03-25 07:47:05 [RateCDR] => 1 ) [2025-03-25 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:47:05' and `end` < '2025-03-25 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:47:18] Production.INFO: count ==145 [2025-03-25 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:47:05 - End Time 2025-03-25 07:47:05 [2025-03-25 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758059', 'tblTempUsageDetail_20' ) start [2025-03-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758059', 'tblTempUsageDetail_20' ) end [2025-03-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758059', 'tblTempVendorCDR_20' ) start [2025-03-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758059', 'tblTempVendorCDR_20' ) end [2025-03-25 07:47:18] Production.INFO: ProcessCDR(1,14758059,1,1,2) [2025-03-25 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758059', 'tblTempUsageDetail_20' ) start [2025-03-25 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758059', 'tblTempUsageDetail_20' ) end [2025-03-25 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:47:21] Production.INFO: ==16123== Releasing lock... [2025-03-25 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:48:05 [end_date_ymd] => 2025-03-25 07:48:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 04:48:05' and `end` < '2025-03-25 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-03-25 07:48:17] Production.INFO: count ==150 [2025-03-25 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:48:05 - End Time 2025-03-25 07:48:05 [2025-03-25 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758062', 'tblTempUsageDetail_20' ) start [2025-03-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758062', 'tblTempUsageDetail_20' ) end [2025-03-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758062', 'tblTempVendorCDR_20' ) start [2025-03-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758062', 'tblTempVendorCDR_20' ) end [2025-03-25 07:48:17] Production.INFO: ProcessCDR(1,14758062,1,1,2) [2025-03-25 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758062', 'tblTempUsageDetail_20' ) start [2025-03-25 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758062', 'tblTempUsageDetail_20' ) end [2025-03-25 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:48:21] Production.INFO: ==16212== Releasing lock... [2025-03-25 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:48:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:49:05 [end_date_ymd] => 2025-03-25 07:49:05 [RateCDR] => 1 ) [2025-03-25 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:49:05' and `end` < '2025-03-25 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:49:17] Production.INFO: count ==150 [2025-03-25 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:49:05 - End Time 2025-03-25 07:49:05 [2025-03-25 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758069', 'tblTempUsageDetail_20' ) start [2025-03-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758069', 'tblTempUsageDetail_20' ) end [2025-03-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758069', 'tblTempVendorCDR_20' ) start [2025-03-25 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758069', 'tblTempVendorCDR_20' ) end [2025-03-25 07:49:17] Production.INFO: ProcessCDR(1,14758069,1,1,2) [2025-03-25 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758069', 'tblTempUsageDetail_20' ) start [2025-03-25 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758069', 'tblTempUsageDetail_20' ) end [2025-03-25 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:49:20] Production.INFO: ==16299== Releasing lock... [2025-03-25 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:49:20] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:50:06 [end_date_ymd] => 2025-03-25 07:50:06 [RateCDR] => 1 ) [2025-03-25 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:50:06' and `end` < '2025-03-25 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:50:19] Production.INFO: count ==152 [2025-03-25 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-25 04:50:06 - End Time 2025-03-25 07:50:06 [2025-03-25 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758075', 'tblTempUsageDetail_20' ) start [2025-03-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758075', 'tblTempUsageDetail_20' ) end [2025-03-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758075', 'tblTempVendorCDR_20' ) start [2025-03-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758075', 'tblTempVendorCDR_20' ) end [2025-03-25 07:50:19] Production.INFO: ProcessCDR(1,14758075,1,1,2) [2025-03-25 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758075', 'tblTempUsageDetail_20' ) start [2025-03-25 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758075', 'tblTempUsageDetail_20' ) end [2025-03-25 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:50:22] Production.INFO: ==16387== Releasing lock... [2025-03-25 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:50:22] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:51:05 [end_date_ymd] => 2025-03-25 07:51:05 [RateCDR] => 1 ) [2025-03-25 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:51:05' and `end` < '2025-03-25 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:51:18] Production.INFO: count ==152 [2025-03-25 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:51:05 - End Time 2025-03-25 07:51:05 [2025-03-25 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758080', 'tblTempUsageDetail_20' ) start [2025-03-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758080', 'tblTempUsageDetail_20' ) end [2025-03-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758080', 'tblTempVendorCDR_20' ) start [2025-03-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758080', 'tblTempVendorCDR_20' ) end [2025-03-25 07:51:18] Production.INFO: ProcessCDR(1,14758080,1,1,2) [2025-03-25 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758080', 'tblTempUsageDetail_20' ) start [2025-03-25 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758080', 'tblTempUsageDetail_20' ) end [2025-03-25 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:51:21] Production.INFO: ==16475== Releasing lock... [2025-03-25 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:52:05 [end_date_ymd] => 2025-03-25 07:52:05 [RateCDR] => 1 ) [2025-03-25 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:52:05' and `end` < '2025-03-25 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:52:18] Production.INFO: count ==152 [2025-03-25 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:52:05 - End Time 2025-03-25 07:52:05 [2025-03-25 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758085', 'tblTempUsageDetail_20' ) start [2025-03-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758085', 'tblTempUsageDetail_20' ) end [2025-03-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758085', 'tblTempVendorCDR_20' ) start [2025-03-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758085', 'tblTempVendorCDR_20' ) end [2025-03-25 07:52:18] Production.INFO: ProcessCDR(1,14758085,1,1,2) [2025-03-25 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758085', 'tblTempUsageDetail_20' ) start [2025-03-25 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758085', 'tblTempUsageDetail_20' ) end [2025-03-25 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:52:21] Production.INFO: ==16561== Releasing lock... [2025-03-25 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-25 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:53:05 [end_date_ymd] => 2025-03-25 07:53:05 [RateCDR] => 1 ) [2025-03-25 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:53:05' and `end` < '2025-03-25 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:53:17] Production.INFO: count ==155 [2025-03-25 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:53:05 - End Time 2025-03-25 07:53:05 [2025-03-25 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758090', 'tblTempUsageDetail_20' ) start [2025-03-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758090', 'tblTempUsageDetail_20' ) end [2025-03-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758090', 'tblTempVendorCDR_20' ) start [2025-03-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758090', 'tblTempVendorCDR_20' ) end [2025-03-25 07:53:17] Production.INFO: ProcessCDR(1,14758090,1,1,2) [2025-03-25 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758090', 'tblTempUsageDetail_20' ) start [2025-03-25 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758090', 'tblTempUsageDetail_20' ) end [2025-03-25 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:53:22] Production.INFO: ==16646== Releasing lock... [2025-03-25 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:54:05 [end_date_ymd] => 2025-03-25 07:54:05 [RateCDR] => 1 ) [2025-03-25 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:54:05' and `end` < '2025-03-25 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:54:17] Production.INFO: count ==157 [2025-03-25 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:54:05 - End Time 2025-03-25 07:54:05 [2025-03-25 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758095', 'tblTempUsageDetail_20' ) start [2025-03-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758095', 'tblTempUsageDetail_20' ) end [2025-03-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758095', 'tblTempVendorCDR_20' ) start [2025-03-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758095', 'tblTempVendorCDR_20' ) end [2025-03-25 07:54:18] Production.INFO: ProcessCDR(1,14758095,1,1,2) [2025-03-25 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758095', 'tblTempUsageDetail_20' ) start [2025-03-25 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758095', 'tblTempUsageDetail_20' ) end [2025-03-25 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:54:21] Production.INFO: ==16733== Releasing lock... [2025-03-25 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:55:05 [end_date_ymd] => 2025-03-25 07:55:05 [RateCDR] => 1 ) [2025-03-25 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:55:05' and `end` < '2025-03-25 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:55:17] Production.INFO: count ==167 [2025-03-25 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-25 04:55:05 - End Time 2025-03-25 07:55:05 [2025-03-25 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758100', 'tblTempUsageDetail_20' ) start [2025-03-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758100', 'tblTempUsageDetail_20' ) end [2025-03-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758100', 'tblTempVendorCDR_20' ) start [2025-03-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758100', 'tblTempVendorCDR_20' ) end [2025-03-25 07:55:17] Production.INFO: ProcessCDR(1,14758100,1,1,2) [2025-03-25 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758100', 'tblTempUsageDetail_20' ) start [2025-03-25 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758100', 'tblTempUsageDetail_20' ) end [2025-03-25 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:55:21] Production.INFO: ==16826== Releasing lock... [2025-03-25 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:56:05 [end_date_ymd] => 2025-03-25 07:56:05 [RateCDR] => 1 ) [2025-03-25 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:56:05' and `end` < '2025-03-25 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:56:18] Production.INFO: count ==168 [2025-03-25 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:56:05 - End Time 2025-03-25 07:56:05 [2025-03-25 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758105', 'tblTempUsageDetail_20' ) start [2025-03-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758105', 'tblTempUsageDetail_20' ) end [2025-03-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758105', 'tblTempVendorCDR_20' ) start [2025-03-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758105', 'tblTempVendorCDR_20' ) end [2025-03-25 07:56:18] Production.INFO: ProcessCDR(1,14758105,1,1,2) [2025-03-25 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758105', 'tblTempUsageDetail_20' ) start [2025-03-25 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758105', 'tblTempUsageDetail_20' ) end [2025-03-25 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:56:21] Production.INFO: ==16917== Releasing lock... [2025-03-25 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:57:06 [end_date_ymd] => 2025-03-25 07:57:06 [RateCDR] => 1 ) [2025-03-25 07:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:57:06' and `end` < '2025-03-25 07:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:57:18] Production.INFO: count ==160 [2025-03-25 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:57:06 - End Time 2025-03-25 07:57:06 [2025-03-25 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758110', 'tblTempUsageDetail_20' ) start [2025-03-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758110', 'tblTempUsageDetail_20' ) end [2025-03-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758110', 'tblTempVendorCDR_20' ) start [2025-03-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758110', 'tblTempVendorCDR_20' ) end [2025-03-25 07:57:18] Production.INFO: ProcessCDR(1,14758110,1,1,2) [2025-03-25 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758110', 'tblTempUsageDetail_20' ) start [2025-03-25 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758110', 'tblTempUsageDetail_20' ) end [2025-03-25 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:57:22] Production.INFO: ==17001== Releasing lock... [2025-03-25 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:57:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:58:05 [end_date_ymd] => 2025-03-25 07:58:05 [RateCDR] => 1 ) [2025-03-25 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:58:05' and `end` < '2025-03-25 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:58:18] Production.INFO: count ==168 [2025-03-25 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:58:05 - End Time 2025-03-25 07:58:05 [2025-03-25 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758115', 'tblTempUsageDetail_20' ) start [2025-03-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758115', 'tblTempUsageDetail_20' ) end [2025-03-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758115', 'tblTempVendorCDR_20' ) start [2025-03-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758115', 'tblTempVendorCDR_20' ) end [2025-03-25 07:58:18] Production.INFO: ProcessCDR(1,14758115,1,1,2) [2025-03-25 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758115', 'tblTempUsageDetail_20' ) start [2025-03-25 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758115', 'tblTempUsageDetail_20' ) end [2025-03-25 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:58:21] Production.INFO: ==17086== Releasing lock... [2025-03-25 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 04:59:06 [end_date_ymd] => 2025-03-25 07:59:06 [RateCDR] => 1 ) [2025-03-25 07:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 04:59:06' and `end` < '2025-03-25 07:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 07:59:18] Production.INFO: count ==165 [2025-03-25 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 04:59:06 - End Time 2025-03-25 07:59:06 [2025-03-25 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758120', 'tblTempUsageDetail_20' ) start [2025-03-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758120', 'tblTempUsageDetail_20' ) end [2025-03-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758120', 'tblTempVendorCDR_20' ) start [2025-03-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758120', 'tblTempVendorCDR_20' ) end [2025-03-25 07:59:18] Production.INFO: ProcessCDR(1,14758120,1,1,2) [2025-03-25 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758120', 'tblTempUsageDetail_20' ) start [2025-03-25 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758120', 'tblTempUsageDetail_20' ) end [2025-03-25 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 07:59:22] Production.INFO: ==17173== Releasing lock... [2025-03-25 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 07:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-25 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:00:07 [end_date_ymd] => 2025-03-25 08:00:07 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:00:07' and `end` < '2025-03-25 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-03-25 08:00:19] Production.INFO: count ==176 [2025-03-25 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:00:07 - End Time 2025-03-25 08:00:07 [2025-03-25 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758126', 'tblTempUsageDetail_20' ) start [2025-03-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758126', 'tblTempUsageDetail_20' ) end [2025-03-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758126', 'tblTempVendorCDR_20' ) start [2025-03-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758126', 'tblTempVendorCDR_20' ) end [2025-03-25 08:00:19] Production.INFO: ProcessCDR(1,14758126,1,1,2) [2025-03-25 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758126', 'tblTempUsageDetail_20' ) start [2025-03-25 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758126', 'tblTempUsageDetail_20' ) end [2025-03-25 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:00:23] Production.INFO: ==17262== Releasing lock... [2025-03-25 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:01:06 [end_date_ymd] => 2025-03-25 08:01:06 [RateCDR] => 1 ) [2025-03-25 08:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:01:06' and `end` < '2025-03-25 08:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:01:18] Production.INFO: count ==177 [2025-03-25 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:01:06 - End Time 2025-03-25 08:01:06 [2025-03-25 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758131', 'tblTempUsageDetail_20' ) start [2025-03-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758131', 'tblTempUsageDetail_20' ) end [2025-03-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758131', 'tblTempVendorCDR_20' ) start [2025-03-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758131', 'tblTempVendorCDR_20' ) end [2025-03-25 08:01:18] Production.INFO: ProcessCDR(1,14758131,1,1,2) [2025-03-25 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758131', 'tblTempUsageDetail_20' ) start [2025-03-25 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758131', 'tblTempUsageDetail_20' ) end [2025-03-25 08:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:01:24] Production.INFO: ==17401== Releasing lock... [2025-03-25 08:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:01:24] Production.INFO: 30 MB #Memory Used# [2025-03-25 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:02:05 [end_date_ymd] => 2025-03-25 08:02:05 [RateCDR] => 1 ) [2025-03-25 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:02:05' and `end` < '2025-03-25 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:02:18] Production.INFO: count ==177 [2025-03-25 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:02:05 - End Time 2025-03-25 08:02:05 [2025-03-25 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758136', 'tblTempUsageDetail_20' ) start [2025-03-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758136', 'tblTempUsageDetail_20' ) end [2025-03-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758136', 'tblTempVendorCDR_20' ) start [2025-03-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758136', 'tblTempVendorCDR_20' ) end [2025-03-25 08:02:18] Production.INFO: ProcessCDR(1,14758136,1,1,2) [2025-03-25 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758136', 'tblTempUsageDetail_20' ) start [2025-03-25 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758136', 'tblTempUsageDetail_20' ) end [2025-03-25 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:02:22] Production.INFO: ==17488== Releasing lock... [2025-03-25 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:02:22] Production.INFO: 30 MB #Memory Used# [2025-03-25 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:03:06 [end_date_ymd] => 2025-03-25 08:03:06 [RateCDR] => 1 ) [2025-03-25 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:03:06' and `end` < '2025-03-25 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:03:18] Production.INFO: count ==179 [2025-03-25 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:03:06 - End Time 2025-03-25 08:03:06 [2025-03-25 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758139', 'tblTempUsageDetail_20' ) start [2025-03-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758139', 'tblTempUsageDetail_20' ) end [2025-03-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758139', 'tblTempVendorCDR_20' ) start [2025-03-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758139', 'tblTempVendorCDR_20' ) end [2025-03-25 08:03:18] Production.INFO: ProcessCDR(1,14758139,1,1,2) [2025-03-25 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758139', 'tblTempUsageDetail_20' ) start [2025-03-25 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758139', 'tblTempUsageDetail_20' ) end [2025-03-25 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:03:22] Production.INFO: ==17573== Releasing lock... [2025-03-25 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:04:05 [end_date_ymd] => 2025-03-25 08:04:05 [RateCDR] => 1 ) [2025-03-25 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:04:05' and `end` < '2025-03-25 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:04:18] Production.INFO: count ==179 [2025-03-25 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:04:05 - End Time 2025-03-25 08:04:05 [2025-03-25 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758146', 'tblTempUsageDetail_20' ) start [2025-03-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758146', 'tblTempUsageDetail_20' ) end [2025-03-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758146', 'tblTempVendorCDR_20' ) start [2025-03-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758146', 'tblTempVendorCDR_20' ) end [2025-03-25 08:04:18] Production.INFO: ProcessCDR(1,14758146,1,1,2) [2025-03-25 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758146', 'tblTempUsageDetail_20' ) start [2025-03-25 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758146', 'tblTempUsageDetail_20' ) end [2025-03-25 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:04:22] Production.INFO: ==17663== Releasing lock... [2025-03-25 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:05:06 [end_date_ymd] => 2025-03-25 08:05:06 [RateCDR] => 1 ) [2025-03-25 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:05:06' and `end` < '2025-03-25 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:05:18] Production.INFO: count ==179 [2025-03-25 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:05:06 - End Time 2025-03-25 08:05:06 [2025-03-25 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758151', 'tblTempUsageDetail_20' ) start [2025-03-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758151', 'tblTempUsageDetail_20' ) end [2025-03-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758151', 'tblTempVendorCDR_20' ) start [2025-03-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758151', 'tblTempVendorCDR_20' ) end [2025-03-25 08:05:18] Production.INFO: ProcessCDR(1,14758151,1,1,2) [2025-03-25 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758151', 'tblTempUsageDetail_20' ) start [2025-03-25 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758151', 'tblTempUsageDetail_20' ) end [2025-03-25 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:05:22] Production.INFO: ==17754== Releasing lock... [2025-03-25 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:06:06 [end_date_ymd] => 2025-03-25 08:06:06 [RateCDR] => 1 ) [2025-03-25 08:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:06:06' and `end` < '2025-03-25 08: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-03-25 08:06:18] Production.INFO: count ==185 [2025-03-25 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:06:06 - End Time 2025-03-25 08:06:06 [2025-03-25 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758156', 'tblTempUsageDetail_20' ) start [2025-03-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758156', 'tblTempUsageDetail_20' ) end [2025-03-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758156', 'tblTempVendorCDR_20' ) start [2025-03-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758156', 'tblTempVendorCDR_20' ) end [2025-03-25 08:06:18] Production.INFO: ProcessCDR(1,14758156,1,1,2) [2025-03-25 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758156', 'tblTempUsageDetail_20' ) start [2025-03-25 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758156', 'tblTempUsageDetail_20' ) end [2025-03-25 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:06:24] Production.INFO: ==17839== Releasing lock... [2025-03-25 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:06:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:07:05 [end_date_ymd] => 2025-03-25 08:07:05 [RateCDR] => 1 ) [2025-03-25 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:07:05' and `end` < '2025-03-25 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:07:18] Production.INFO: count ==190 [2025-03-25 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:07:05 - End Time 2025-03-25 08:07:05 [2025-03-25 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758161', 'tblTempUsageDetail_20' ) start [2025-03-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758161', 'tblTempUsageDetail_20' ) end [2025-03-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758161', 'tblTempVendorCDR_20' ) start [2025-03-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758161', 'tblTempVendorCDR_20' ) end [2025-03-25 08:07:18] Production.INFO: ProcessCDR(1,14758161,1,1,2) [2025-03-25 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758161', 'tblTempUsageDetail_20' ) start [2025-03-25 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758161', 'tblTempUsageDetail_20' ) end [2025-03-25 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:07:22] Production.INFO: ==17927== Releasing lock... [2025-03-25 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:07:22] Production.INFO: 30 MB #Memory Used# [2025-03-25 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:08:05 [end_date_ymd] => 2025-03-25 08:08:05 [RateCDR] => 1 ) [2025-03-25 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:08:05' and `end` < '2025-03-25 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:08:18] Production.INFO: count ==191 [2025-03-25 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:08:05 - End Time 2025-03-25 08:08:05 [2025-03-25 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758166', 'tblTempUsageDetail_20' ) start [2025-03-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758166', 'tblTempUsageDetail_20' ) end [2025-03-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758166', 'tblTempVendorCDR_20' ) start [2025-03-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758166', 'tblTempVendorCDR_20' ) end [2025-03-25 08:08:18] Production.INFO: ProcessCDR(1,14758166,1,1,2) [2025-03-25 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758166', 'tblTempUsageDetail_20' ) start [2025-03-25 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758166', 'tblTempUsageDetail_20' ) end [2025-03-25 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:08:22] Production.INFO: ==18013== Releasing lock... [2025-03-25 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-25 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:09:06 [end_date_ymd] => 2025-03-25 08:09:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:09:06' and `end` < '2025-03-25 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-03-25 08:09:18] Production.INFO: count ==202 [2025-03-25 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:09:06 - End Time 2025-03-25 08:09:06 [2025-03-25 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758171', 'tblTempUsageDetail_20' ) start [2025-03-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758171', 'tblTempUsageDetail_20' ) end [2025-03-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758171', 'tblTempVendorCDR_20' ) start [2025-03-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758171', 'tblTempVendorCDR_20' ) end [2025-03-25 08:09:18] Production.INFO: ProcessCDR(1,14758171,1,1,2) [2025-03-25 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758171', 'tblTempUsageDetail_20' ) start [2025-03-25 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758171', 'tblTempUsageDetail_20' ) end [2025-03-25 08:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:09:24] Production.INFO: ==18098== Releasing lock... [2025-03-25 08:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:09:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:10:06 [end_date_ymd] => 2025-03-25 08:10:06 [RateCDR] => 1 ) [2025-03-25 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:10:06' and `end` < '2025-03-25 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:10:19] Production.INFO: count ==219 [2025-03-25 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:10:06 - End Time 2025-03-25 08:10:06 [2025-03-25 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758177', 'tblTempUsageDetail_20' ) start [2025-03-25 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758177', 'tblTempUsageDetail_20' ) end [2025-03-25 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758177', 'tblTempVendorCDR_20' ) start [2025-03-25 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758177', 'tblTempVendorCDR_20' ) end [2025-03-25 08:10:19] Production.INFO: ProcessCDR(1,14758177,1,1,2) [2025-03-25 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758177', 'tblTempUsageDetail_20' ) start [2025-03-25 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758177', 'tblTempUsageDetail_20' ) end [2025-03-25 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:10:23] Production.INFO: ==18194== Releasing lock... [2025-03-25 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-25 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:11:06 [end_date_ymd] => 2025-03-25 08:11:06 [RateCDR] => 1 ) [2025-03-25 08:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:11:06' and `end` < '2025-03-25 08: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-03-25 08:11:19] Production.INFO: count ==273 [2025-03-25 08:11:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:11:06 - End Time 2025-03-25 08:11:06 [2025-03-25 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758182', 'tblTempUsageDetail_20' ) start [2025-03-25 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758182', 'tblTempUsageDetail_20' ) end [2025-03-25 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758182', 'tblTempVendorCDR_20' ) start [2025-03-25 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758182', 'tblTempVendorCDR_20' ) end [2025-03-25 08:11:19] Production.INFO: ProcessCDR(1,14758182,1,1,2) [2025-03-25 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758182', 'tblTempUsageDetail_20' ) start [2025-03-25 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758182', 'tblTempUsageDetail_20' ) end [2025-03-25 08:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:11:24] Production.INFO: ==18302== Releasing lock... [2025-03-25 08:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:11:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:12:05 [end_date_ymd] => 2025-03-25 08:12:05 [RateCDR] => 1 ) [2025-03-25 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:12:05' and `end` < '2025-03-25 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:12:17] Production.INFO: count ==279 [2025-03-25 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-25 05:12:05 - End Time 2025-03-25 08:12:05 [2025-03-25 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758187', 'tblTempUsageDetail_20' ) start [2025-03-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758187', 'tblTempUsageDetail_20' ) end [2025-03-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758187', 'tblTempVendorCDR_20' ) start [2025-03-25 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758187', 'tblTempVendorCDR_20' ) end [2025-03-25 08:12:17] Production.INFO: ProcessCDR(1,14758187,1,1,2) [2025-03-25 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758187', 'tblTempUsageDetail_20' ) start [2025-03-25 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758187', 'tblTempUsageDetail_20' ) end [2025-03-25 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:12:23] Production.INFO: ==18389== Releasing lock... [2025-03-25 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-25 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:13:06 [end_date_ymd] => 2025-03-25 08:13:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:13:06' and `end` < '2025-03-25 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-03-25 08:13:19] Production.INFO: count ==280 [2025-03-25 08:13:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:13:06 - End Time 2025-03-25 08:13:06 [2025-03-25 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758192', 'tblTempUsageDetail_20' ) start [2025-03-25 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758192', 'tblTempUsageDetail_20' ) end [2025-03-25 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758192', 'tblTempVendorCDR_20' ) start [2025-03-25 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758192', 'tblTempVendorCDR_20' ) end [2025-03-25 08:13:19] Production.INFO: ProcessCDR(1,14758192,1,1,2) [2025-03-25 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758192', 'tblTempUsageDetail_20' ) start [2025-03-25 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758192', 'tblTempUsageDetail_20' ) end [2025-03-25 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:13:24] Production.INFO: ==18477== Releasing lock... [2025-03-25 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:13:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:14:05 [end_date_ymd] => 2025-03-25 08:14:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:14:05' and `end` < '2025-03-25 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-03-25 08:14:18] Production.INFO: count ==291 [2025-03-25 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:14:05 - End Time 2025-03-25 08:14:05 [2025-03-25 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758197', 'tblTempUsageDetail_20' ) start [2025-03-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758197', 'tblTempUsageDetail_20' ) end [2025-03-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758197', 'tblTempVendorCDR_20' ) start [2025-03-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758197', 'tblTempVendorCDR_20' ) end [2025-03-25 08:14:18] Production.INFO: ProcessCDR(1,14758197,1,1,2) [2025-03-25 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758197', 'tblTempUsageDetail_20' ) start [2025-03-25 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758197', 'tblTempUsageDetail_20' ) end [2025-03-25 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:14:23] Production.INFO: ==18566== Releasing lock... [2025-03-25 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:14:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:15:05 [end_date_ymd] => 2025-03-25 08:15:05 [RateCDR] => 1 ) [2025-03-25 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:15:05' and `end` < '2025-03-25 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:15:18] Production.INFO: count ==291 [2025-03-25 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:15:05 - End Time 2025-03-25 08:15:05 [2025-03-25 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758202', 'tblTempUsageDetail_20' ) start [2025-03-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758202', 'tblTempUsageDetail_20' ) end [2025-03-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758202', 'tblTempVendorCDR_20' ) start [2025-03-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758202', 'tblTempVendorCDR_20' ) end [2025-03-25 08:15:18] Production.INFO: ProcessCDR(1,14758202,1,1,2) [2025-03-25 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758202', 'tblTempUsageDetail_20' ) start [2025-03-25 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758202', 'tblTempUsageDetail_20' ) end [2025-03-25 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:15:21] Production.INFO: ==18658== Releasing lock... [2025-03-25 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:16:06 [end_date_ymd] => 2025-03-25 08:16:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:16:06' and `end` < '2025-03-25 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-03-25 08:16:18] Production.INFO: count ==285 [2025-03-25 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:16:06 - End Time 2025-03-25 08:16:06 [2025-03-25 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758207', 'tblTempUsageDetail_20' ) start [2025-03-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758207', 'tblTempUsageDetail_20' ) end [2025-03-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758207', 'tblTempVendorCDR_20' ) start [2025-03-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758207', 'tblTempVendorCDR_20' ) end [2025-03-25 08:16:18] Production.INFO: ProcessCDR(1,14758207,1,1,2) [2025-03-25 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758207', 'tblTempUsageDetail_20' ) start [2025-03-25 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758207', 'tblTempUsageDetail_20' ) end [2025-03-25 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:16:22] Production.INFO: ==18786== Releasing lock... [2025-03-25 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:17:06 [end_date_ymd] => 2025-03-25 08:17:06 [RateCDR] => 1 ) [2025-03-25 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:17:06' and `end` < '2025-03-25 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:17:18] Production.INFO: count ==288 [2025-03-25 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:17:06 - End Time 2025-03-25 08:17:06 [2025-03-25 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758212', 'tblTempUsageDetail_20' ) start [2025-03-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758212', 'tblTempUsageDetail_20' ) end [2025-03-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758212', 'tblTempVendorCDR_20' ) start [2025-03-25 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758212', 'tblTempVendorCDR_20' ) end [2025-03-25 08:17:18] Production.INFO: ProcessCDR(1,14758212,1,1,2) [2025-03-25 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758212', 'tblTempUsageDetail_20' ) start [2025-03-25 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758212', 'tblTempUsageDetail_20' ) end [2025-03-25 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:17:21] Production.INFO: ==18886== Releasing lock... [2025-03-25 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:18:05 [end_date_ymd] => 2025-03-25 08:18:05 [RateCDR] => 1 ) [2025-03-25 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:18:05' and `end` < '2025-03-25 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:18:18] Production.INFO: count ==288 [2025-03-25 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:18:05 - End Time 2025-03-25 08:18:05 [2025-03-25 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758217', 'tblTempUsageDetail_20' ) start [2025-03-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758217', 'tblTempUsageDetail_20' ) end [2025-03-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758217', 'tblTempVendorCDR_20' ) start [2025-03-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758217', 'tblTempVendorCDR_20' ) end [2025-03-25 08:18:18] Production.INFO: ProcessCDR(1,14758217,1,1,2) [2025-03-25 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758217', 'tblTempUsageDetail_20' ) start [2025-03-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758217', 'tblTempUsageDetail_20' ) end [2025-03-25 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:18:21] Production.INFO: ==18982== Releasing lock... [2025-03-25 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:19:06 [end_date_ymd] => 2025-03-25 08:19:06 [RateCDR] => 1 ) [2025-03-25 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:19:06' and `end` < '2025-03-25 08: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-03-25 08:19:18] Production.INFO: count ==288 [2025-03-25 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:19:06 - End Time 2025-03-25 08:19:06 [2025-03-25 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758222', 'tblTempUsageDetail_20' ) start [2025-03-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758222', 'tblTempUsageDetail_20' ) end [2025-03-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758222', 'tblTempVendorCDR_20' ) start [2025-03-25 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758222', 'tblTempVendorCDR_20' ) end [2025-03-25 08:19:18] Production.INFO: ProcessCDR(1,14758222,1,1,2) [2025-03-25 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758222', 'tblTempUsageDetail_20' ) start [2025-03-25 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758222', 'tblTempUsageDetail_20' ) end [2025-03-25 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:19:22] Production.INFO: ==19068== Releasing lock... [2025-03-25 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:20:06 [end_date_ymd] => 2025-03-25 08:20:06 [RateCDR] => 1 ) [2025-03-25 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:20:06' and `end` < '2025-03-25 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:20:19] Production.INFO: count ==299 [2025-03-25 08:20:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:20:06 - End Time 2025-03-25 08:20:06 [2025-03-25 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758228', 'tblTempUsageDetail_20' ) start [2025-03-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758228', 'tblTempUsageDetail_20' ) end [2025-03-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758228', 'tblTempVendorCDR_20' ) start [2025-03-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758228', 'tblTempVendorCDR_20' ) end [2025-03-25 08:20:19] Production.INFO: ProcessCDR(1,14758228,1,1,2) [2025-03-25 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758228', 'tblTempUsageDetail_20' ) start [2025-03-25 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758228', 'tblTempUsageDetail_20' ) end [2025-03-25 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:20:22] Production.INFO: ==19162== Releasing lock... [2025-03-25 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:21:05 [end_date_ymd] => 2025-03-25 08:21:05 [RateCDR] => 1 ) [2025-03-25 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:21:05' and `end` < '2025-03-25 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:21:18] Production.INFO: count ==317 [2025-03-25 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:21:05 - End Time 2025-03-25 08:21:05 [2025-03-25 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758233', 'tblTempUsageDetail_20' ) start [2025-03-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758233', 'tblTempUsageDetail_20' ) end [2025-03-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758233', 'tblTempVendorCDR_20' ) start [2025-03-25 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758233', 'tblTempVendorCDR_20' ) end [2025-03-25 08:21:18] Production.INFO: ProcessCDR(1,14758233,1,1,2) [2025-03-25 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758233', 'tblTempUsageDetail_20' ) start [2025-03-25 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758233', 'tblTempUsageDetail_20' ) end [2025-03-25 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:21:21] Production.INFO: ==19251== Releasing lock... [2025-03-25 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-25 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:22:05 [end_date_ymd] => 2025-03-25 08:22:05 [RateCDR] => 1 ) [2025-03-25 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:22:05' and `end` < '2025-03-25 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:22:18] Production.INFO: count ==324 [2025-03-25 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:22:05 - End Time 2025-03-25 08:22:05 [2025-03-25 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758238', 'tblTempUsageDetail_20' ) start [2025-03-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758238', 'tblTempUsageDetail_20' ) end [2025-03-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758238', 'tblTempVendorCDR_20' ) start [2025-03-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758238', 'tblTempVendorCDR_20' ) end [2025-03-25 08:22:18] Production.INFO: ProcessCDR(1,14758238,1,1,2) [2025-03-25 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758238', 'tblTempUsageDetail_20' ) start [2025-03-25 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758238', 'tblTempUsageDetail_20' ) end [2025-03-25 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:22:23] Production.INFO: ==19337== Releasing lock... [2025-03-25 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:22:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:23:05 [end_date_ymd] => 2025-03-25 08:23:05 [RateCDR] => 1 ) [2025-03-25 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:23:05' and `end` < '2025-03-25 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:23:18] Production.INFO: count ==331 [2025-03-25 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:23:05 - End Time 2025-03-25 08:23:05 [2025-03-25 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758243', 'tblTempUsageDetail_20' ) start [2025-03-25 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758243', 'tblTempUsageDetail_20' ) end [2025-03-25 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758243', 'tblTempVendorCDR_20' ) start [2025-03-25 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758243', 'tblTempVendorCDR_20' ) end [2025-03-25 08:23:18] Production.INFO: ProcessCDR(1,14758243,1,1,2) [2025-03-25 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758243', 'tblTempUsageDetail_20' ) start [2025-03-25 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758243', 'tblTempUsageDetail_20' ) end [2025-03-25 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:23:23] Production.INFO: ==19426== Releasing lock... [2025-03-25 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:23:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:24:05 [end_date_ymd] => 2025-03-25 08:24:05 [RateCDR] => 1 ) [2025-03-25 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:24:05' and `end` < '2025-03-25 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:24:18] Production.INFO: count ==339 [2025-03-25 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:24:05 - End Time 2025-03-25 08:24:05 [2025-03-25 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758248', 'tblTempUsageDetail_20' ) start [2025-03-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758248', 'tblTempUsageDetail_20' ) end [2025-03-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758248', 'tblTempVendorCDR_20' ) start [2025-03-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758248', 'tblTempVendorCDR_20' ) end [2025-03-25 08:24:18] Production.INFO: ProcessCDR(1,14758248,1,1,2) [2025-03-25 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758248', 'tblTempUsageDetail_20' ) start [2025-03-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758248', 'tblTempUsageDetail_20' ) end [2025-03-25 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:24:22] Production.INFO: ==19516== Releasing lock... [2025-03-25 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-25 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:25:05 [end_date_ymd] => 2025-03-25 08:25:05 [RateCDR] => 1 ) [2025-03-25 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:25:05' and `end` < '2025-03-25 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:25:18] Production.INFO: count ==345 [2025-03-25 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:25:05 - End Time 2025-03-25 08:25:05 [2025-03-25 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758253', 'tblTempUsageDetail_20' ) start [2025-03-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758253', 'tblTempUsageDetail_20' ) end [2025-03-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758253', 'tblTempVendorCDR_20' ) start [2025-03-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758253', 'tblTempVendorCDR_20' ) end [2025-03-25 08:25:18] Production.INFO: ProcessCDR(1,14758253,1,1,2) [2025-03-25 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758253', 'tblTempUsageDetail_20' ) start [2025-03-25 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758253', 'tblTempUsageDetail_20' ) end [2025-03-25 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:25:23] Production.INFO: ==19620== Releasing lock... [2025-03-25 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:25:23] Production.INFO: 31 MB #Memory Used# [2025-03-25 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:26:05 [end_date_ymd] => 2025-03-25 08:26:05 [RateCDR] => 1 ) [2025-03-25 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:26:05' and `end` < '2025-03-25 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:26:17] Production.INFO: count ==354 [2025-03-25 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-25 05:26:05 - End Time 2025-03-25 08:26:05 [2025-03-25 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758258', 'tblTempUsageDetail_20' ) start [2025-03-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758258', 'tblTempUsageDetail_20' ) end [2025-03-25 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758258', 'tblTempVendorCDR_20' ) start [2025-03-25 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758258', 'tblTempVendorCDR_20' ) end [2025-03-25 08:26:18] Production.INFO: ProcessCDR(1,14758258,1,1,2) [2025-03-25 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758258', 'tblTempUsageDetail_20' ) start [2025-03-25 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758258', 'tblTempUsageDetail_20' ) end [2025-03-25 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:26:23] Production.INFO: ==19708== Releasing lock... [2025-03-25 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:27:06 [end_date_ymd] => 2025-03-25 08:27:06 [RateCDR] => 1 ) [2025-03-25 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:27:06' and `end` < '2025-03-25 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:27:18] Production.INFO: count ==357 [2025-03-25 08:27:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:27:06 - End Time 2025-03-25 08:27:06 [2025-03-25 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758263', 'tblTempUsageDetail_20' ) start [2025-03-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758263', 'tblTempUsageDetail_20' ) end [2025-03-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758263', 'tblTempVendorCDR_20' ) start [2025-03-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758263', 'tblTempVendorCDR_20' ) end [2025-03-25 08:27:19] Production.INFO: ProcessCDR(1,14758263,1,1,2) [2025-03-25 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758263', 'tblTempUsageDetail_20' ) start [2025-03-25 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758263', 'tblTempUsageDetail_20' ) end [2025-03-25 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:27:24] Production.INFO: ==19795== Releasing lock... [2025-03-25 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:27:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:28:05 [end_date_ymd] => 2025-03-25 08:28:05 [RateCDR] => 1 ) [2025-03-25 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:28:05' and `end` < '2025-03-25 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:28:18] Production.INFO: count ==374 [2025-03-25 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:28:05 - End Time 2025-03-25 08:28:05 [2025-03-25 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758268', 'tblTempUsageDetail_20' ) start [2025-03-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758268', 'tblTempUsageDetail_20' ) end [2025-03-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758268', 'tblTempVendorCDR_20' ) start [2025-03-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758268', 'tblTempVendorCDR_20' ) end [2025-03-25 08:28:18] Production.INFO: ProcessCDR(1,14758268,1,1,2) [2025-03-25 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758268', 'tblTempUsageDetail_20' ) start [2025-03-25 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758268', 'tblTempUsageDetail_20' ) end [2025-03-25 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:28:22] Production.INFO: ==19879== Releasing lock... [2025-03-25 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:29:06 [end_date_ymd] => 2025-03-25 08:29:06 [RateCDR] => 1 ) [2025-03-25 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:29:06' and `end` < '2025-03-25 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:29:19] Production.INFO: count ==384 [2025-03-25 08:29:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:29:06 - End Time 2025-03-25 08:29:06 [2025-03-25 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758273', 'tblTempUsageDetail_20' ) start [2025-03-25 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758273', 'tblTempUsageDetail_20' ) end [2025-03-25 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758273', 'tblTempVendorCDR_20' ) start [2025-03-25 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758273', 'tblTempVendorCDR_20' ) end [2025-03-25 08:29:19] Production.INFO: ProcessCDR(1,14758273,1,1,2) [2025-03-25 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758273', 'tblTempUsageDetail_20' ) start [2025-03-25 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758273', 'tblTempUsageDetail_20' ) end [2025-03-25 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:29:23] Production.INFO: ==19966== Releasing lock... [2025-03-25 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:29:23] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:30:06 [end_date_ymd] => 2025-03-25 08:30:06 [RateCDR] => 1 ) [2025-03-25 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:30:06' and `end` < '2025-03-25 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:30:19] Production.INFO: count ==396 [2025-03-25 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:30:06 - End Time 2025-03-25 08:30:06 [2025-03-25 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758279', 'tblTempUsageDetail_20' ) start [2025-03-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758279', 'tblTempUsageDetail_20' ) end [2025-03-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758279', 'tblTempVendorCDR_20' ) start [2025-03-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758279', 'tblTempVendorCDR_20' ) end [2025-03-25 08:30:19] Production.INFO: ProcessCDR(1,14758279,1,1,2) [2025-03-25 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758279', 'tblTempUsageDetail_20' ) start [2025-03-25 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758279', 'tblTempUsageDetail_20' ) end [2025-03-25 08:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:30:25] Production.INFO: ==20055== Releasing lock... [2025-03-25 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:30:25] Production.INFO: 31.25 MB #Memory Used# [2025-03-25 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:31:06 [end_date_ymd] => 2025-03-25 08:31:06 [RateCDR] => 1 ) [2025-03-25 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:31:06' and `end` < '2025-03-25 08: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-03-25 08:31:18] Production.INFO: count ==426 [2025-03-25 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:31:06 - End Time 2025-03-25 08:31:06 [2025-03-25 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758284', 'tblTempUsageDetail_20' ) start [2025-03-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758284', 'tblTempUsageDetail_20' ) end [2025-03-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758284', 'tblTempVendorCDR_20' ) start [2025-03-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758284', 'tblTempVendorCDR_20' ) end [2025-03-25 08:31:18] Production.INFO: ProcessCDR(1,14758284,1,1,2) [2025-03-25 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758284', 'tblTempUsageDetail_20' ) start [2025-03-25 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758284', 'tblTempUsageDetail_20' ) end [2025-03-25 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:31:22] Production.INFO: ==20153== Releasing lock... [2025-03-25 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:31:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:32:06 [end_date_ymd] => 2025-03-25 08:32:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:32:06' and `end` < '2025-03-25 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-03-25 08:32:19] Production.INFO: count ==426 [2025-03-25 08:32:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:32:06 - End Time 2025-03-25 08:32:06 [2025-03-25 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758289', 'tblTempUsageDetail_20' ) start [2025-03-25 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758289', 'tblTempUsageDetail_20' ) end [2025-03-25 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758289', 'tblTempVendorCDR_20' ) start [2025-03-25 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758289', 'tblTempVendorCDR_20' ) end [2025-03-25 08:32:19] Production.INFO: ProcessCDR(1,14758289,1,1,2) [2025-03-25 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758289', 'tblTempUsageDetail_20' ) start [2025-03-25 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758289', 'tblTempUsageDetail_20' ) end [2025-03-25 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:32:23] Production.INFO: ==20285== Releasing lock... [2025-03-25 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:32:23] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:33:06 [end_date_ymd] => 2025-03-25 08:33:06 [RateCDR] => 1 ) [2025-03-25 08:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:33:06' and `end` < '2025-03-25 08: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-03-25 08:33:19] Production.INFO: count ==430 [2025-03-25 08:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:33:06 - End Time 2025-03-25 08:33:06 [2025-03-25 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758294', 'tblTempUsageDetail_20' ) start [2025-03-25 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758294', 'tblTempUsageDetail_20' ) end [2025-03-25 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758294', 'tblTempVendorCDR_20' ) start [2025-03-25 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758294', 'tblTempVendorCDR_20' ) end [2025-03-25 08:33:19] Production.INFO: ProcessCDR(1,14758294,1,1,2) [2025-03-25 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758294', 'tblTempUsageDetail_20' ) start [2025-03-25 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758294', 'tblTempUsageDetail_20' ) end [2025-03-25 08:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:33:25] Production.INFO: ==20371== Releasing lock... [2025-03-25 08:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:33:25] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:34:05 [end_date_ymd] => 2025-03-25 08:34:05 [RateCDR] => 1 ) [2025-03-25 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:34:05' and `end` < '2025-03-25 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:34:17] Production.INFO: count ==439 [2025-03-25 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:34:05 - End Time 2025-03-25 08:34:05 [2025-03-25 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758299', 'tblTempUsageDetail_20' ) start [2025-03-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758299', 'tblTempUsageDetail_20' ) end [2025-03-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758299', 'tblTempVendorCDR_20' ) start [2025-03-25 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758299', 'tblTempVendorCDR_20' ) end [2025-03-25 08:34:18] Production.INFO: ProcessCDR(1,14758299,1,1,2) [2025-03-25 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758299', 'tblTempUsageDetail_20' ) start [2025-03-25 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758299', 'tblTempUsageDetail_20' ) end [2025-03-25 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:34:23] Production.INFO: ==20464== Releasing lock... [2025-03-25 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:34:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-25 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:35:06 [end_date_ymd] => 2025-03-25 08:35:06 [RateCDR] => 1 ) [2025-03-25 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:35:06' and `end` < '2025-03-25 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:35:19] Production.INFO: count ==450 [2025-03-25 08:35:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:35:06 - End Time 2025-03-25 08:35:06 [2025-03-25 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758304', 'tblTempUsageDetail_20' ) start [2025-03-25 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758304', 'tblTempUsageDetail_20' ) end [2025-03-25 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758304', 'tblTempVendorCDR_20' ) start [2025-03-25 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758304', 'tblTempVendorCDR_20' ) end [2025-03-25 08:35:19] Production.INFO: ProcessCDR(1,14758304,1,1,2) [2025-03-25 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758304', 'tblTempUsageDetail_20' ) start [2025-03-25 08:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758304', 'tblTempUsageDetail_20' ) end [2025-03-25 08:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:35:25] Production.INFO: ==20549== Releasing lock... [2025-03-25 08:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:35:25] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:36:05 [end_date_ymd] => 2025-03-25 08:36:05 [RateCDR] => 1 ) [2025-03-25 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:36:05' and `end` < '2025-03-25 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:36:18] Production.INFO: count ==457 [2025-03-25 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:36:05 - End Time 2025-03-25 08:36:05 [2025-03-25 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758309', 'tblTempUsageDetail_20' ) start [2025-03-25 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758309', 'tblTempUsageDetail_20' ) end [2025-03-25 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758309', 'tblTempVendorCDR_20' ) start [2025-03-25 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758309', 'tblTempVendorCDR_20' ) end [2025-03-25 08:36:18] Production.INFO: ProcessCDR(1,14758309,1,1,2) [2025-03-25 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758309', 'tblTempUsageDetail_20' ) start [2025-03-25 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758309', 'tblTempUsageDetail_20' ) end [2025-03-25 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:36:24] Production.INFO: ==20643== Releasing lock... [2025-03-25 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:36:24] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:37:06 [end_date_ymd] => 2025-03-25 08:37:06 [RateCDR] => 1 ) [2025-03-25 08:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:37:06' and `end` < '2025-03-25 08:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:37:18] Production.INFO: count ==467 [2025-03-25 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:37:06 - End Time 2025-03-25 08:37:06 [2025-03-25 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758314', 'tblTempUsageDetail_20' ) start [2025-03-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758314', 'tblTempUsageDetail_20' ) end [2025-03-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758314', 'tblTempVendorCDR_20' ) start [2025-03-25 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758314', 'tblTempVendorCDR_20' ) end [2025-03-25 08:37:19] Production.INFO: ProcessCDR(1,14758314,1,1,2) [2025-03-25 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758314', 'tblTempUsageDetail_20' ) start [2025-03-25 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758314', 'tblTempUsageDetail_20' ) end [2025-03-25 08:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:37:24] Production.INFO: ==20731== Releasing lock... [2025-03-25 08:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:37:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:38:06 [end_date_ymd] => 2025-03-25 08:38:06 [RateCDR] => 1 ) [2025-03-25 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:38:06' and `end` < '2025-03-25 08: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-03-25 08:38:18] Production.INFO: count ==472 [2025-03-25 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:38:06 - End Time 2025-03-25 08:38:06 [2025-03-25 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758319', 'tblTempUsageDetail_20' ) start [2025-03-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758319', 'tblTempUsageDetail_20' ) end [2025-03-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758319', 'tblTempVendorCDR_20' ) start [2025-03-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758319', 'tblTempVendorCDR_20' ) end [2025-03-25 08:38:18] Production.INFO: ProcessCDR(1,14758319,1,1,2) [2025-03-25 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758319', 'tblTempUsageDetail_20' ) start [2025-03-25 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758319', 'tblTempUsageDetail_20' ) end [2025-03-25 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:38:23] Production.INFO: ==20838== Releasing lock... [2025-03-25 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:38:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:39:06 [end_date_ymd] => 2025-03-25 08:39:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:39:06' and `end` < '2025-03-25 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-03-25 08:39:18] Production.INFO: count ==484 [2025-03-25 08:39:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:39:06 - End Time 2025-03-25 08:39:06 [2025-03-25 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758324', 'tblTempUsageDetail_20' ) start [2025-03-25 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758324', 'tblTempUsageDetail_20' ) end [2025-03-25 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758324', 'tblTempVendorCDR_20' ) start [2025-03-25 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758324', 'tblTempVendorCDR_20' ) end [2025-03-25 08:39:19] Production.INFO: ProcessCDR(1,14758324,1,1,2) [2025-03-25 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758324', 'tblTempUsageDetail_20' ) start [2025-03-25 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758324', 'tblTempUsageDetail_20' ) end [2025-03-25 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:39:23] Production.INFO: ==20926== Releasing lock... [2025-03-25 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-25 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:40:06 [end_date_ymd] => 2025-03-25 08:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:40:06' and `end` < '2025-03-25 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-03-25 08:40:19] Production.INFO: count ==496 [2025-03-25 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:40:06 - End Time 2025-03-25 08:40:06 [2025-03-25 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758330', 'tblTempUsageDetail_20' ) start [2025-03-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758330', 'tblTempUsageDetail_20' ) end [2025-03-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758330', 'tblTempVendorCDR_20' ) start [2025-03-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758330', 'tblTempVendorCDR_20' ) end [2025-03-25 08:40:19] Production.INFO: ProcessCDR(1,14758330,1,1,2) [2025-03-25 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758330', 'tblTempUsageDetail_20' ) start [2025-03-25 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758330', 'tblTempUsageDetail_20' ) end [2025-03-25 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:40:22] Production.INFO: ==21014== Releasing lock... [2025-03-25 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:40:22] Production.INFO: 32 MB #Memory Used# [2025-03-25 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:41:06 [end_date_ymd] => 2025-03-25 08:41:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:41:06' and `end` < '2025-03-25 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-03-25 08:41:18] Production.INFO: count ==532 [2025-03-25 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:41:06 - End Time 2025-03-25 08:41:06 [2025-03-25 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758335', 'tblTempUsageDetail_20' ) start [2025-03-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758335', 'tblTempUsageDetail_20' ) end [2025-03-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758335', 'tblTempVendorCDR_20' ) start [2025-03-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758335', 'tblTempVendorCDR_20' ) end [2025-03-25 08:41:18] Production.INFO: ProcessCDR(1,14758335,1,1,2) [2025-03-25 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758335', 'tblTempUsageDetail_20' ) start [2025-03-25 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758335', 'tblTempUsageDetail_20' ) end [2025-03-25 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:41:22] Production.INFO: ==21104== Releasing lock... [2025-03-25 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-25 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:42:06 [end_date_ymd] => 2025-03-25 08:42:06 [RateCDR] => 1 ) [2025-03-25 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:42:06' and `end` < '2025-03-25 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:42:18] Production.INFO: count ==551 [2025-03-25 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:42:06 - End Time 2025-03-25 08:42:06 [2025-03-25 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758340', 'tblTempUsageDetail_20' ) start [2025-03-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758340', 'tblTempUsageDetail_20' ) end [2025-03-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758340', 'tblTempVendorCDR_20' ) start [2025-03-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758340', 'tblTempVendorCDR_20' ) end [2025-03-25 08:42:18] Production.INFO: ProcessCDR(1,14758340,1,1,2) [2025-03-25 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758340', 'tblTempUsageDetail_20' ) start [2025-03-25 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758340', 'tblTempUsageDetail_20' ) end [2025-03-25 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:42:22] Production.INFO: ==21193== Releasing lock... [2025-03-25 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-25 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:43:06 [end_date_ymd] => 2025-03-25 08:43:06 [RateCDR] => 1 ) [2025-03-25 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:43:06' and `end` < '2025-03-25 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:43:18] Production.INFO: count ==557 [2025-03-25 08:43:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:43:06 - End Time 2025-03-25 08:43:06 [2025-03-25 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758345', 'tblTempUsageDetail_20' ) start [2025-03-25 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758345', 'tblTempUsageDetail_20' ) end [2025-03-25 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758345', 'tblTempVendorCDR_20' ) start [2025-03-25 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758345', 'tblTempVendorCDR_20' ) end [2025-03-25 08:43:19] Production.INFO: ProcessCDR(1,14758345,1,1,2) [2025-03-25 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758345', 'tblTempUsageDetail_20' ) start [2025-03-25 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758345', 'tblTempUsageDetail_20' ) end [2025-03-25 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:43:23] Production.INFO: ==21278== Releasing lock... [2025-03-25 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:43:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-25 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:44:05 [end_date_ymd] => 2025-03-25 08:44:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:44:05' and `end` < '2025-03-25 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-03-25 08:44:18] Production.INFO: count ==566 [2025-03-25 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:44:05 - End Time 2025-03-25 08:44:05 [2025-03-25 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758350', 'tblTempUsageDetail_20' ) start [2025-03-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758350', 'tblTempUsageDetail_20' ) end [2025-03-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758350', 'tblTempVendorCDR_20' ) start [2025-03-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758350', 'tblTempVendorCDR_20' ) end [2025-03-25 08:44:18] Production.INFO: ProcessCDR(1,14758350,1,1,2) [2025-03-25 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758350', 'tblTempUsageDetail_20' ) start [2025-03-25 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758350', 'tblTempUsageDetail_20' ) end [2025-03-25 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:44:23] Production.INFO: ==21364== Releasing lock... [2025-03-25 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-25 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:45:06 [end_date_ymd] => 2025-03-25 08:45:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:45:06' and `end` < '2025-03-25 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-03-25 08:45:19] Production.INFO: count ==576 [2025-03-25 08:45:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:45:06 - End Time 2025-03-25 08:45:06 [2025-03-25 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758355', 'tblTempUsageDetail_20' ) start [2025-03-25 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758355', 'tblTempUsageDetail_20' ) end [2025-03-25 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758355', 'tblTempVendorCDR_20' ) start [2025-03-25 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758355', 'tblTempVendorCDR_20' ) end [2025-03-25 08:45:19] Production.INFO: ProcessCDR(1,14758355,1,1,2) [2025-03-25 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758355', 'tblTempUsageDetail_20' ) start [2025-03-25 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758355', 'tblTempUsageDetail_20' ) end [2025-03-25 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:45:22] Production.INFO: ==21474== Releasing lock... [2025-03-25 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:45:22] Production.INFO: 33 MB #Memory Used# [2025-03-25 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:46:05 [end_date_ymd] => 2025-03-25 08:46:05 [RateCDR] => 1 ) [2025-03-25 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:46:05' and `end` < '2025-03-25 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:46:18] Production.INFO: count ==577 [2025-03-25 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:46:05 - End Time 2025-03-25 08:46:05 [2025-03-25 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758360', 'tblTempUsageDetail_20' ) start [2025-03-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758360', 'tblTempUsageDetail_20' ) end [2025-03-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758360', 'tblTempVendorCDR_20' ) start [2025-03-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758360', 'tblTempVendorCDR_20' ) end [2025-03-25 08:46:18] Production.INFO: ProcessCDR(1,14758360,1,1,2) [2025-03-25 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758360', 'tblTempUsageDetail_20' ) start [2025-03-25 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758360', 'tblTempUsageDetail_20' ) end [2025-03-25 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:46:21] Production.INFO: ==21561== Releasing lock... [2025-03-25 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-25 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:47:06 [end_date_ymd] => 2025-03-25 08:47:06 [RateCDR] => 1 ) [2025-03-25 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:47:06' and `end` < '2025-03-25 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:47:19] Production.INFO: count ==583 [2025-03-25 08:47:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:47:06 - End Time 2025-03-25 08:47:06 [2025-03-25 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758365', 'tblTempUsageDetail_20' ) start [2025-03-25 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758365', 'tblTempUsageDetail_20' ) end [2025-03-25 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758365', 'tblTempVendorCDR_20' ) start [2025-03-25 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758365', 'tblTempVendorCDR_20' ) end [2025-03-25 08:47:19] Production.INFO: ProcessCDR(1,14758365,1,1,2) [2025-03-25 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758365', 'tblTempUsageDetail_20' ) start [2025-03-25 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758365', 'tblTempUsageDetail_20' ) end [2025-03-25 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:47:22] Production.INFO: ==21688== Releasing lock... [2025-03-25 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-25 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:48:06 [end_date_ymd] => 2025-03-25 08:48:06 [RateCDR] => 1 ) [2025-03-25 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:48:06' and `end` < '2025-03-25 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:48:18] Production.INFO: count ==590 [2025-03-25 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:48:06 - End Time 2025-03-25 08:48:06 [2025-03-25 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758370', 'tblTempUsageDetail_20' ) start [2025-03-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758370', 'tblTempUsageDetail_20' ) end [2025-03-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758370', 'tblTempVendorCDR_20' ) start [2025-03-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758370', 'tblTempVendorCDR_20' ) end [2025-03-25 08:48:18] Production.INFO: ProcessCDR(1,14758370,1,1,2) [2025-03-25 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758370', 'tblTempUsageDetail_20' ) start [2025-03-25 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758370', 'tblTempUsageDetail_20' ) end [2025-03-25 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:48:24] Production.INFO: ==21773== Releasing lock... [2025-03-25 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:48:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-25 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:49:06 [end_date_ymd] => 2025-03-25 08:49:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:49:06' and `end` < '2025-03-25 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-03-25 08:49:18] Production.INFO: count ==597 [2025-03-25 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:49:06 - End Time 2025-03-25 08:49:06 [2025-03-25 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758375', 'tblTempUsageDetail_20' ) start [2025-03-25 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758375', 'tblTempUsageDetail_20' ) end [2025-03-25 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758375', 'tblTempVendorCDR_20' ) start [2025-03-25 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758375', 'tblTempVendorCDR_20' ) end [2025-03-25 08:49:19] Production.INFO: ProcessCDR(1,14758375,1,1,2) [2025-03-25 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758375', 'tblTempUsageDetail_20' ) start [2025-03-25 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758375', 'tblTempUsageDetail_20' ) end [2025-03-25 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:49:22] Production.INFO: ==21862== Releasing lock... [2025-03-25 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-25 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:50:05 [end_date_ymd] => 2025-03-25 08:50:05 [RateCDR] => 1 ) [2025-03-25 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:50:05' and `end` < '2025-03-25 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:50:18] Production.INFO: count ==606 [2025-03-25 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:50:05 - End Time 2025-03-25 08:50:05 [2025-03-25 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758381', 'tblTempUsageDetail_20' ) start [2025-03-25 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758381', 'tblTempUsageDetail_20' ) end [2025-03-25 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758381', 'tblTempVendorCDR_20' ) start [2025-03-25 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758381', 'tblTempVendorCDR_20' ) end [2025-03-25 08:50:18] Production.INFO: ProcessCDR(1,14758381,1,1,2) [2025-03-25 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758381', 'tblTempUsageDetail_20' ) start [2025-03-25 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758381', 'tblTempUsageDetail_20' ) end [2025-03-25 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:50:23] Production.INFO: ==21958== Releasing lock... [2025-03-25 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:50:23] Production.INFO: 33 MB #Memory Used# [2025-03-25 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:51:06 [end_date_ymd] => 2025-03-25 08:51:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 05:51:06' and `end` < '2025-03-25 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-03-25 08:51:18] Production.INFO: count ==660 [2025-03-25 08:51:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:51:06 - End Time 2025-03-25 08:51:06 [2025-03-25 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758386', 'tblTempUsageDetail_20' ) start [2025-03-25 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758386', 'tblTempUsageDetail_20' ) end [2025-03-25 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758386', 'tblTempVendorCDR_20' ) start [2025-03-25 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758386', 'tblTempVendorCDR_20' ) end [2025-03-25 08:51:19] Production.INFO: ProcessCDR(1,14758386,1,1,2) [2025-03-25 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758386', 'tblTempUsageDetail_20' ) start [2025-03-25 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758386', 'tblTempUsageDetail_20' ) end [2025-03-25 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:51:22] Production.INFO: ==22055== Releasing lock... [2025-03-25 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-25 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:52:05 [end_date_ymd] => 2025-03-25 08:52:05 [RateCDR] => 1 ) [2025-03-25 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:52:05' and `end` < '2025-03-25 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:52:18] Production.INFO: count ==680 [2025-03-25 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:52:05 - End Time 2025-03-25 08:52:05 [2025-03-25 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758391', 'tblTempUsageDetail_20' ) start [2025-03-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758391', 'tblTempUsageDetail_20' ) end [2025-03-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758391', 'tblTempVendorCDR_20' ) start [2025-03-25 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758391', 'tblTempVendorCDR_20' ) end [2025-03-25 08:52:18] Production.INFO: ProcessCDR(1,14758391,1,1,2) [2025-03-25 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758391', 'tblTempUsageDetail_20' ) start [2025-03-25 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758391', 'tblTempUsageDetail_20' ) end [2025-03-25 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:52:23] Production.INFO: ==22148== Releasing lock... [2025-03-25 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-25 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:53:05 [end_date_ymd] => 2025-03-25 08:53:05 [RateCDR] => 1 ) [2025-03-25 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:53:05' and `end` < '2025-03-25 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:53:18] Production.INFO: count ==688 [2025-03-25 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:53:05 - End Time 2025-03-25 08:53:05 [2025-03-25 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758396', 'tblTempUsageDetail_20' ) start [2025-03-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758396', 'tblTempUsageDetail_20' ) end [2025-03-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758396', 'tblTempVendorCDR_20' ) start [2025-03-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758396', 'tblTempVendorCDR_20' ) end [2025-03-25 08:53:18] Production.INFO: ProcessCDR(1,14758396,1,1,2) [2025-03-25 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758396', 'tblTempUsageDetail_20' ) start [2025-03-25 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758396', 'tblTempUsageDetail_20' ) end [2025-03-25 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:53:24] Production.INFO: ==22241== Releasing lock... [2025-03-25 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:53:24] Production.INFO: 34 MB #Memory Used# [2025-03-25 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:54:05 [end_date_ymd] => 2025-03-25 08:54:05 [RateCDR] => 1 ) [2025-03-25 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:54:05' and `end` < '2025-03-25 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:54:18] Production.INFO: count ==690 [2025-03-25 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:54:05 - End Time 2025-03-25 08:54:05 [2025-03-25 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758401', 'tblTempUsageDetail_20' ) start [2025-03-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758401', 'tblTempUsageDetail_20' ) end [2025-03-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758401', 'tblTempVendorCDR_20' ) start [2025-03-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758401', 'tblTempVendorCDR_20' ) end [2025-03-25 08:54:18] Production.INFO: ProcessCDR(1,14758401,1,1,2) [2025-03-25 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758401', 'tblTempUsageDetail_20' ) start [2025-03-25 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758401', 'tblTempUsageDetail_20' ) end [2025-03-25 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:54:23] Production.INFO: ==22326== Releasing lock... [2025-03-25 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-25 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:55:05 [end_date_ymd] => 2025-03-25 08:55:05 [RateCDR] => 1 ) [2025-03-25 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:55:05' and `end` < '2025-03-25 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:55:18] Production.INFO: count ==696 [2025-03-25 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:55:05 - End Time 2025-03-25 08:55:05 [2025-03-25 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758406', 'tblTempUsageDetail_20' ) start [2025-03-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758406', 'tblTempUsageDetail_20' ) end [2025-03-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758406', 'tblTempVendorCDR_20' ) start [2025-03-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758406', 'tblTempVendorCDR_20' ) end [2025-03-25 08:55:18] Production.INFO: ProcessCDR(1,14758406,1,1,2) [2025-03-25 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758406', 'tblTempUsageDetail_20' ) start [2025-03-25 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758406', 'tblTempUsageDetail_20' ) end [2025-03-25 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:55:22] Production.INFO: ==22416== Releasing lock... [2025-03-25 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-25 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:56:05 [end_date_ymd] => 2025-03-25 08:56:05 [RateCDR] => 1 ) [2025-03-25 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:56:05' and `end` < '2025-03-25 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:56:18] Production.INFO: count ==717 [2025-03-25 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:56:05 - End Time 2025-03-25 08:56:05 [2025-03-25 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758411', 'tblTempUsageDetail_20' ) start [2025-03-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758411', 'tblTempUsageDetail_20' ) end [2025-03-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758411', 'tblTempVendorCDR_20' ) start [2025-03-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758411', 'tblTempVendorCDR_20' ) end [2025-03-25 08:56:18] Production.INFO: ProcessCDR(1,14758411,1,1,2) [2025-03-25 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758411', 'tblTempUsageDetail_20' ) start [2025-03-25 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758411', 'tblTempUsageDetail_20' ) end [2025-03-25 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:56:24] Production.INFO: ==22502== Releasing lock... [2025-03-25 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:56:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-25 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:57:06 [end_date_ymd] => 2025-03-25 08:57:06 [RateCDR] => 1 ) [2025-03-25 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:57:06' and `end` < '2025-03-25 08: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-03-25 08:57:19] Production.INFO: count ==726 [2025-03-25 08:57:19] Production.ERROR: pbx CDR StartTime 2025-03-25 05:57:06 - End Time 2025-03-25 08:57:06 [2025-03-25 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758416', 'tblTempUsageDetail_20' ) start [2025-03-25 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758416', 'tblTempUsageDetail_20' ) end [2025-03-25 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758416', 'tblTempVendorCDR_20' ) start [2025-03-25 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758416', 'tblTempVendorCDR_20' ) end [2025-03-25 08:57:19] Production.INFO: ProcessCDR(1,14758416,1,1,2) [2025-03-25 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758416', 'tblTempUsageDetail_20' ) start [2025-03-25 08:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758416', 'tblTempUsageDetail_20' ) end [2025-03-25 08:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:57:25] Production.INFO: ==22592== Releasing lock... [2025-03-25 08:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-25 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:58:05 [end_date_ymd] => 2025-03-25 08:58:05 [RateCDR] => 1 ) [2025-03-25 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:58:05' and `end` < '2025-03-25 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:58:18] Production.INFO: count ==737 [2025-03-25 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:58:05 - End Time 2025-03-25 08:58:05 [2025-03-25 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758421', 'tblTempUsageDetail_20' ) start [2025-03-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758421', 'tblTempUsageDetail_20' ) end [2025-03-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758421', 'tblTempVendorCDR_20' ) start [2025-03-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758421', 'tblTempVendorCDR_20' ) end [2025-03-25 08:58:18] Production.INFO: ProcessCDR(1,14758421,1,1,2) [2025-03-25 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758421', 'tblTempUsageDetail_20' ) start [2025-03-25 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758421', 'tblTempUsageDetail_20' ) end [2025-03-25 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:58:23] Production.INFO: ==22699== Releasing lock... [2025-03-25 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:58:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-25 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 05:59:05 [end_date_ymd] => 2025-03-25 08:59:05 [RateCDR] => 1 ) [2025-03-25 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 05:59:05' and `end` < '2025-03-25 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 08:59:18] Production.INFO: count ==744 [2025-03-25 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 05:59:05 - End Time 2025-03-25 08:59:05 [2025-03-25 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758426', 'tblTempUsageDetail_20' ) start [2025-03-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758426', 'tblTempUsageDetail_20' ) end [2025-03-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758426', 'tblTempVendorCDR_20' ) start [2025-03-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758426', 'tblTempVendorCDR_20' ) end [2025-03-25 08:59:18] Production.INFO: ProcessCDR(1,14758426,1,1,2) [2025-03-25 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758426', 'tblTempUsageDetail_20' ) start [2025-03-25 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758426', 'tblTempUsageDetail_20' ) end [2025-03-25 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 08:59:23] Production.INFO: ==22791== Releasing lock... [2025-03-25 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 08:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-25 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:00:06 [end_date_ymd] => 2025-03-25 09:00:06 [RateCDR] => 1 ) [2025-03-25 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:00:06' and `end` < '2025-03-25 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:00:19] Production.INFO: count ==761 [2025-03-25 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:00:06 - End Time 2025-03-25 09:00:06 [2025-03-25 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758431', 'tblTempUsageDetail_20' ) start [2025-03-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758431', 'tblTempUsageDetail_20' ) end [2025-03-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758431', 'tblTempVendorCDR_20' ) start [2025-03-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758431', 'tblTempVendorCDR_20' ) end [2025-03-25 09:00:19] Production.INFO: ProcessCDR(1,14758431,1,1,2) [2025-03-25 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758431', 'tblTempUsageDetail_20' ) start [2025-03-25 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758431', 'tblTempUsageDetail_20' ) end [2025-03-25 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:00:23] Production.INFO: ==22879== Releasing lock... [2025-03-25 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:00:23] Production.INFO: 34 MB #Memory Used# [2025-03-25 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:01:06 [end_date_ymd] => 2025-03-25 09:01:06 [RateCDR] => 1 ) [2025-03-25 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:01:06' and `end` < '2025-03-25 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:01:18] Production.INFO: count ==804 [2025-03-25 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:01:06 - End Time 2025-03-25 09:01:06 [2025-03-25 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758437', 'tblTempUsageDetail_20' ) start [2025-03-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758437', 'tblTempUsageDetail_20' ) end [2025-03-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758437', 'tblTempVendorCDR_20' ) start [2025-03-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758437', 'tblTempVendorCDR_20' ) end [2025-03-25 09:01:19] Production.INFO: ProcessCDR(1,14758437,1,1,2) [2025-03-25 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758437', 'tblTempUsageDetail_20' ) start [2025-03-25 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758437', 'tblTempUsageDetail_20' ) end [2025-03-25 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:01:24] Production.INFO: ==22983== Releasing lock... [2025-03-25 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:01:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-25 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:02:05 [end_date_ymd] => 2025-03-25 09:02:05 [RateCDR] => 1 ) [2025-03-25 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:02:05' and `end` < '2025-03-25 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:02:18] Production.INFO: count ==806 [2025-03-25 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:02:05 - End Time 2025-03-25 09:02:05 [2025-03-25 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758442', 'tblTempUsageDetail_20' ) start [2025-03-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758442', 'tblTempUsageDetail_20' ) end [2025-03-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758442', 'tblTempVendorCDR_20' ) start [2025-03-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758442', 'tblTempVendorCDR_20' ) end [2025-03-25 09:02:18] Production.INFO: ProcessCDR(1,14758442,1,1,2) [2025-03-25 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758442', 'tblTempUsageDetail_20' ) start [2025-03-25 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758442', 'tblTempUsageDetail_20' ) end [2025-03-25 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:02:24] Production.INFO: ==23073== Releasing lock... [2025-03-25 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:02:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-25 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:03:05 [end_date_ymd] => 2025-03-25 09:03:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:03:05' and `end` < '2025-03-25 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-03-25 09:03:18] Production.INFO: count ==810 [2025-03-25 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:03:05 - End Time 2025-03-25 09:03:05 [2025-03-25 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758447', 'tblTempUsageDetail_20' ) start [2025-03-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758447', 'tblTempUsageDetail_20' ) end [2025-03-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758447', 'tblTempVendorCDR_20' ) start [2025-03-25 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758447', 'tblTempVendorCDR_20' ) end [2025-03-25 09:03:18] Production.INFO: ProcessCDR(1,14758447,1,1,2) [2025-03-25 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758447', 'tblTempUsageDetail_20' ) start [2025-03-25 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758447', 'tblTempUsageDetail_20' ) end [2025-03-25 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:03:24] Production.INFO: ==23208== Releasing lock... [2025-03-25 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-25 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:04:05 [end_date_ymd] => 2025-03-25 09:04:05 [RateCDR] => 1 ) [2025-03-25 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:04:05' and `end` < '2025-03-25 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:04:18] Production.INFO: count ==830 [2025-03-25 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:04:05 - End Time 2025-03-25 09:04:05 [2025-03-25 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758452', 'tblTempUsageDetail_20' ) start [2025-03-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758452', 'tblTempUsageDetail_20' ) end [2025-03-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758452', 'tblTempVendorCDR_20' ) start [2025-03-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758452', 'tblTempVendorCDR_20' ) end [2025-03-25 09:04:18] Production.INFO: ProcessCDR(1,14758452,1,1,2) [2025-03-25 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758452', 'tblTempUsageDetail_20' ) start [2025-03-25 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758452', 'tblTempUsageDetail_20' ) end [2025-03-25 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:04:25] Production.INFO: ==23300== Releasing lock... [2025-03-25 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:04:25] Production.INFO: 34.5 MB #Memory Used# [2025-03-25 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:05:06 [end_date_ymd] => 2025-03-25 09:05:06 [RateCDR] => 1 ) [2025-03-25 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:05:06' and `end` < '2025-03-25 09: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-03-25 09:05:18] Production.INFO: count ==845 [2025-03-25 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:05:06 - End Time 2025-03-25 09:05:06 [2025-03-25 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758457', 'tblTempUsageDetail_20' ) start [2025-03-25 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758457', 'tblTempUsageDetail_20' ) end [2025-03-25 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758457', 'tblTempVendorCDR_20' ) start [2025-03-25 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758457', 'tblTempVendorCDR_20' ) end [2025-03-25 09:05:19] Production.INFO: ProcessCDR(1,14758457,1,1,2) [2025-03-25 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758457', 'tblTempUsageDetail_20' ) start [2025-03-25 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758457', 'tblTempUsageDetail_20' ) end [2025-03-25 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:05:23] Production.INFO: ==23406== Releasing lock... [2025-03-25 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:05:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-25 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:06:06 [end_date_ymd] => 2025-03-25 09:06:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:06:06' and `end` < '2025-03-25 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-03-25 09:06:18] Production.INFO: count ==866 [2025-03-25 09:06:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:06:06 - End Time 2025-03-25 09:06:06 [2025-03-25 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758462', 'tblTempUsageDetail_20' ) start [2025-03-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758462', 'tblTempUsageDetail_20' ) end [2025-03-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758462', 'tblTempVendorCDR_20' ) start [2025-03-25 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758462', 'tblTempVendorCDR_20' ) end [2025-03-25 09:06:19] Production.INFO: ProcessCDR(1,14758462,1,1,2) [2025-03-25 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758462', 'tblTempUsageDetail_20' ) start [2025-03-25 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758462', 'tblTempUsageDetail_20' ) end [2025-03-25 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:06:24] Production.INFO: ==23494== Releasing lock... [2025-03-25 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:06:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-25 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:07:06 [end_date_ymd] => 2025-03-25 09:07:06 [RateCDR] => 1 ) [2025-03-25 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:07:06' and `end` < '2025-03-25 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:07:18] Production.INFO: count ==877 [2025-03-25 09:07:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:07:06 - End Time 2025-03-25 09:07:06 [2025-03-25 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758467', 'tblTempUsageDetail_20' ) start [2025-03-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758467', 'tblTempUsageDetail_20' ) end [2025-03-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758467', 'tblTempVendorCDR_20' ) start [2025-03-25 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758467', 'tblTempVendorCDR_20' ) end [2025-03-25 09:07:19] Production.INFO: ProcessCDR(1,14758467,1,1,2) [2025-03-25 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758467', 'tblTempUsageDetail_20' ) start [2025-03-25 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758467', 'tblTempUsageDetail_20' ) end [2025-03-25 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:07:24] Production.INFO: ==23579== Releasing lock... [2025-03-25 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:07:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-25 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:08:05 [end_date_ymd] => 2025-03-25 09:08:05 [RateCDR] => 1 ) [2025-03-25 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:08:05' and `end` < '2025-03-25 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:08:18] Production.INFO: count ==898 [2025-03-25 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:08:05 - End Time 2025-03-25 09:08:05 [2025-03-25 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758472', 'tblTempUsageDetail_20' ) start [2025-03-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758472', 'tblTempUsageDetail_20' ) end [2025-03-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758472', 'tblTempVendorCDR_20' ) start [2025-03-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758472', 'tblTempVendorCDR_20' ) end [2025-03-25 09:08:18] Production.INFO: ProcessCDR(1,14758472,1,1,2) [2025-03-25 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758472', 'tblTempUsageDetail_20' ) start [2025-03-25 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758472', 'tblTempUsageDetail_20' ) end [2025-03-25 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:08:24] Production.INFO: ==23669== Releasing lock... [2025-03-25 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:08:24] Production.INFO: 35 MB #Memory Used# [2025-03-25 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:09:06 [end_date_ymd] => 2025-03-25 09:09:06 [RateCDR] => 1 ) [2025-03-25 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:09:06' and `end` < '2025-03-25 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:09:19] Production.INFO: count ==900 [2025-03-25 09:09:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:09:06 - End Time 2025-03-25 09:09:06 [2025-03-25 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758477', 'tblTempUsageDetail_20' ) start [2025-03-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758477', 'tblTempUsageDetail_20' ) end [2025-03-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758477', 'tblTempVendorCDR_20' ) start [2025-03-25 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758477', 'tblTempVendorCDR_20' ) end [2025-03-25 09:09:19] Production.INFO: ProcessCDR(1,14758477,1,1,2) [2025-03-25 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758477', 'tblTempUsageDetail_20' ) start [2025-03-25 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758477', 'tblTempUsageDetail_20' ) end [2025-03-25 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:09:23] Production.INFO: ==23758== Releasing lock... [2025-03-25 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:09:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:10:07 [end_date_ymd] => 2025-03-25 09:10:07 [RateCDR] => 1 ) [2025-03-25 09:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:10:07' and `end` < '2025-03-25 09:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:10:19] Production.INFO: count ==924 [2025-03-25 09:10:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:10:07 - End Time 2025-03-25 09:10:07 [2025-03-25 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758483', 'tblTempUsageDetail_20' ) start [2025-03-25 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758483', 'tblTempUsageDetail_20' ) end [2025-03-25 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758483', 'tblTempVendorCDR_20' ) start [2025-03-25 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758483', 'tblTempVendorCDR_20' ) end [2025-03-25 09:10:20] Production.INFO: ProcessCDR(1,14758483,1,1,2) [2025-03-25 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758483', 'tblTempUsageDetail_20' ) start [2025-03-25 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758483', 'tblTempUsageDetail_20' ) end [2025-03-25 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:10:26] Production.INFO: ==23844== Releasing lock... [2025-03-25 09:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:10:26] Production.INFO: 34.75 MB #Memory Used# [2025-03-25 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:11:06 [end_date_ymd] => 2025-03-25 09:11:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:11:06' and `end` < '2025-03-25 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-03-25 09:11:18] Production.INFO: count ==991 [2025-03-25 09:11:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:11:06 - End Time 2025-03-25 09:11:06 [2025-03-25 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758488', 'tblTempUsageDetail_20' ) start [2025-03-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758488', 'tblTempUsageDetail_20' ) end [2025-03-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758488', 'tblTempVendorCDR_20' ) start [2025-03-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758488', 'tblTempVendorCDR_20' ) end [2025-03-25 09:11:19] Production.INFO: ProcessCDR(1,14758488,1,1,2) [2025-03-25 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758488', 'tblTempUsageDetail_20' ) start [2025-03-25 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758488', 'tblTempUsageDetail_20' ) end [2025-03-25 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:11:23] Production.INFO: ==23935== Releasing lock... [2025-03-25 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:11:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:12:05 [end_date_ymd] => 2025-03-25 09:12:05 [RateCDR] => 1 ) [2025-03-25 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:12:05' and `end` < '2025-03-25 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:12:18] Production.INFO: count ==1011 [2025-03-25 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:12:05 - End Time 2025-03-25 09:12:05 [2025-03-25 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758493', 'tblTempUsageDetail_20' ) start [2025-03-25 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758493', 'tblTempUsageDetail_20' ) end [2025-03-25 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758493', 'tblTempVendorCDR_20' ) start [2025-03-25 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758493', 'tblTempVendorCDR_20' ) end [2025-03-25 09:12:18] Production.INFO: ProcessCDR(1,14758493,1,1,2) [2025-03-25 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758493', 'tblTempUsageDetail_20' ) start [2025-03-25 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758493', 'tblTempUsageDetail_20' ) end [2025-03-25 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:12:24] Production.INFO: ==24020== Releasing lock... [2025-03-25 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:12:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:13:06 [end_date_ymd] => 2025-03-25 09:13:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:13:06' and `end` < '2025-03-25 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-03-25 09:13:19] Production.INFO: count ==1027 [2025-03-25 09:13:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:13:06 - End Time 2025-03-25 09:13:06 [2025-03-25 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758498', 'tblTempUsageDetail_20' ) start [2025-03-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758498', 'tblTempUsageDetail_20' ) end [2025-03-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758498', 'tblTempVendorCDR_20' ) start [2025-03-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758498', 'tblTempVendorCDR_20' ) end [2025-03-25 09:13:19] Production.INFO: ProcessCDR(1,14758498,1,1,2) [2025-03-25 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758498', 'tblTempUsageDetail_20' ) start [2025-03-25 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758498', 'tblTempUsageDetail_20' ) end [2025-03-25 09:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:13:25] Production.INFO: ==24111== Releasing lock... [2025-03-25 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:13:25] Production.INFO: 36 MB #Memory Used# [2025-03-25 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:14:05 [end_date_ymd] => 2025-03-25 09:14:05 [RateCDR] => 1 ) [2025-03-25 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:14:05' and `end` < '2025-03-25 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:14:17] Production.INFO: count ==1034 [2025-03-25 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:14:05 - End Time 2025-03-25 09:14:05 [2025-03-25 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758503', 'tblTempUsageDetail_20' ) start [2025-03-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758503', 'tblTempUsageDetail_20' ) end [2025-03-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758503', 'tblTempVendorCDR_20' ) start [2025-03-25 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758503', 'tblTempVendorCDR_20' ) end [2025-03-25 09:14:18] Production.INFO: ProcessCDR(1,14758503,1,1,2) [2025-03-25 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758503', 'tblTempUsageDetail_20' ) start [2025-03-25 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758503', 'tblTempUsageDetail_20' ) end [2025-03-25 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:14:23] Production.INFO: ==24197== Releasing lock... [2025-03-25 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:14:23] Production.INFO: 36 MB #Memory Used# [2025-03-25 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:15:06 [end_date_ymd] => 2025-03-25 09:15:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:15:06' and `end` < '2025-03-25 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-03-25 09:15:18] Production.INFO: count ==1039 [2025-03-25 09:15:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:15:06 - End Time 2025-03-25 09:15:06 [2025-03-25 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758508', 'tblTempUsageDetail_20' ) start [2025-03-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758508', 'tblTempUsageDetail_20' ) end [2025-03-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758508', 'tblTempVendorCDR_20' ) start [2025-03-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758508', 'tblTempVendorCDR_20' ) end [2025-03-25 09:15:19] Production.INFO: ProcessCDR(1,14758508,1,1,2) [2025-03-25 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758508', 'tblTempUsageDetail_20' ) start [2025-03-25 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758508', 'tblTempUsageDetail_20' ) end [2025-03-25 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:15:23] Production.INFO: ==24286== Releasing lock... [2025-03-25 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-25 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:16:05 [end_date_ymd] => 2025-03-25 09:16:05 [RateCDR] => 1 ) [2025-03-25 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:16:05' and `end` < '2025-03-25 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:16:18] Production.INFO: count ==1048 [2025-03-25 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:16:05 - End Time 2025-03-25 09:16:05 [2025-03-25 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758513', 'tblTempUsageDetail_20' ) start [2025-03-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758513', 'tblTempUsageDetail_20' ) end [2025-03-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758513', 'tblTempVendorCDR_20' ) start [2025-03-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758513', 'tblTempVendorCDR_20' ) end [2025-03-25 09:16:18] Production.INFO: ProcessCDR(1,14758513,1,1,2) [2025-03-25 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758513', 'tblTempUsageDetail_20' ) start [2025-03-25 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758513', 'tblTempUsageDetail_20' ) end [2025-03-25 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:16:24] Production.INFO: ==24372== Releasing lock... [2025-03-25 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:17:06 [end_date_ymd] => 2025-03-25 09:17:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:17:06' and `end` < '2025-03-25 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-03-25 09:17:18] Production.INFO: count ==1050 [2025-03-25 09:17:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:17:06 - End Time 2025-03-25 09:17:06 [2025-03-25 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758518', 'tblTempUsageDetail_20' ) start [2025-03-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758518', 'tblTempUsageDetail_20' ) end [2025-03-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758518', 'tblTempVendorCDR_20' ) start [2025-03-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758518', 'tblTempVendorCDR_20' ) end [2025-03-25 09:17:19] Production.INFO: ProcessCDR(1,14758518,1,1,2) [2025-03-25 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758518', 'tblTempUsageDetail_20' ) start [2025-03-25 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758518', 'tblTempUsageDetail_20' ) end [2025-03-25 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:17:22] Production.INFO: ==24465== Releasing lock... [2025-03-25 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:17:22] Production.INFO: 36 MB #Memory Used# [2025-03-25 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:18:05 [end_date_ymd] => 2025-03-25 09:18:05 [RateCDR] => 1 ) [2025-03-25 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:18:05' and `end` < '2025-03-25 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:18:18] Production.INFO: count ==1054 [2025-03-25 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:18:05 - End Time 2025-03-25 09:18:05 [2025-03-25 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758523', 'tblTempUsageDetail_20' ) start [2025-03-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758523', 'tblTempUsageDetail_20' ) end [2025-03-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758523', 'tblTempVendorCDR_20' ) start [2025-03-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758523', 'tblTempVendorCDR_20' ) end [2025-03-25 09:18:18] Production.INFO: ProcessCDR(1,14758523,1,1,2) [2025-03-25 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758523', 'tblTempUsageDetail_20' ) start [2025-03-25 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758523', 'tblTempUsageDetail_20' ) end [2025-03-25 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:18:24] Production.INFO: ==24603== Releasing lock... [2025-03-25 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:18:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:19:06 [end_date_ymd] => 2025-03-25 09:19:06 [RateCDR] => 1 ) [2025-03-25 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:19:06' and `end` < '2025-03-25 09: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-03-25 09:19:19] Production.INFO: count ==1071 [2025-03-25 09:19:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:19:06 - End Time 2025-03-25 09:19:06 [2025-03-25 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758528', 'tblTempUsageDetail_20' ) start [2025-03-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758528', 'tblTempUsageDetail_20' ) end [2025-03-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758528', 'tblTempVendorCDR_20' ) start [2025-03-25 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758528', 'tblTempVendorCDR_20' ) end [2025-03-25 09:19:19] Production.INFO: ProcessCDR(1,14758528,1,1,2) [2025-03-25 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758528', 'tblTempUsageDetail_20' ) start [2025-03-25 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758528', 'tblTempUsageDetail_20' ) end [2025-03-25 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:19:25] Production.INFO: ==24694== Releasing lock... [2025-03-25 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:19:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:20:06 [end_date_ymd] => 2025-03-25 09:20:06 [RateCDR] => 1 ) [2025-03-25 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:20:06' and `end` < '2025-03-25 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:20:19] Production.INFO: count ==1091 [2025-03-25 09:20:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:20:06 - End Time 2025-03-25 09:20:06 [2025-03-25 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758534', 'tblTempUsageDetail_20' ) start [2025-03-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758534', 'tblTempUsageDetail_20' ) end [2025-03-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758534', 'tblTempVendorCDR_20' ) start [2025-03-25 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758534', 'tblTempVendorCDR_20' ) end [2025-03-25 09:20:20] Production.INFO: ProcessCDR(1,14758534,1,1,2) [2025-03-25 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758534', 'tblTempUsageDetail_20' ) start [2025-03-25 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758534', 'tblTempUsageDetail_20' ) end [2025-03-25 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:20:25] Production.INFO: ==24793== Releasing lock... [2025-03-25 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:20:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:21:06 [end_date_ymd] => 2025-03-25 09:21:06 [RateCDR] => 1 ) [2025-03-25 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:21:06' and `end` < '2025-03-25 09: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-03-25 09:21:19] Production.INFO: count ==1211 [2025-03-25 09:21:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:21:06 - End Time 2025-03-25 09:21:06 [2025-03-25 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758539', 'tblTempUsageDetail_20' ) start [2025-03-25 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758539', 'tblTempUsageDetail_20' ) end [2025-03-25 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758539', 'tblTempVendorCDR_20' ) start [2025-03-25 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758539', 'tblTempVendorCDR_20' ) end [2025-03-25 09:21:19] Production.INFO: ProcessCDR(1,14758539,1,1,2) [2025-03-25 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758539', 'tblTempUsageDetail_20' ) start [2025-03-25 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758539', 'tblTempUsageDetail_20' ) end [2025-03-25 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:21:25] Production.INFO: ==24882== Releasing lock... [2025-03-25 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:21:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:22:06 [end_date_ymd] => 2025-03-25 09:22:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:22:06' and `end` < '2025-03-25 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-03-25 09:22:19] Production.INFO: count ==1222 [2025-03-25 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:22:06 - End Time 2025-03-25 09:22:06 [2025-03-25 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758544', 'tblTempUsageDetail_20' ) start [2025-03-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758544', 'tblTempUsageDetail_20' ) end [2025-03-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758544', 'tblTempVendorCDR_20' ) start [2025-03-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758544', 'tblTempVendorCDR_20' ) end [2025-03-25 09:22:19] Production.INFO: ProcessCDR(1,14758544,1,1,2) [2025-03-25 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758544', 'tblTempUsageDetail_20' ) start [2025-03-25 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758544', 'tblTempUsageDetail_20' ) end [2025-03-25 09:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:22:25] Production.INFO: ==24977== Releasing lock... [2025-03-25 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:22:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:23:05 [end_date_ymd] => 2025-03-25 09:23:05 [RateCDR] => 1 ) [2025-03-25 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:23:05' and `end` < '2025-03-25 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:23:18] Production.INFO: count ==1232 [2025-03-25 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:23:05 - End Time 2025-03-25 09:23:05 [2025-03-25 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758549', 'tblTempUsageDetail_20' ) start [2025-03-25 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758549', 'tblTempUsageDetail_20' ) end [2025-03-25 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758549', 'tblTempVendorCDR_20' ) start [2025-03-25 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758549', 'tblTempVendorCDR_20' ) end [2025-03-25 09:23:19] Production.INFO: ProcessCDR(1,14758549,1,1,2) [2025-03-25 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758549', 'tblTempUsageDetail_20' ) start [2025-03-25 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758549', 'tblTempUsageDetail_20' ) end [2025-03-25 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:23:24] Production.INFO: ==25077== Releasing lock... [2025-03-25 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:23:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:24:05 [end_date_ymd] => 2025-03-25 09:24:05 [RateCDR] => 1 ) [2025-03-25 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:24:05' and `end` < '2025-03-25 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:24:18] Production.INFO: count ==1268 [2025-03-25 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:24:05 - End Time 2025-03-25 09:24:05 [2025-03-25 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758554', 'tblTempUsageDetail_20' ) start [2025-03-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758554', 'tblTempUsageDetail_20' ) end [2025-03-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758554', 'tblTempVendorCDR_20' ) start [2025-03-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758554', 'tblTempVendorCDR_20' ) end [2025-03-25 09:24:19] Production.INFO: ProcessCDR(1,14758554,1,1,2) [2025-03-25 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758554', 'tblTempUsageDetail_20' ) start [2025-03-25 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758554', 'tblTempUsageDetail_20' ) end [2025-03-25 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:24:25] Production.INFO: ==25171== Releasing lock... [2025-03-25 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:24:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:25:06 [end_date_ymd] => 2025-03-25 09:25:06 [RateCDR] => 1 ) [2025-03-25 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:25:06' and `end` < '2025-03-25 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:25:18] Production.INFO: count ==1285 [2025-03-25 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:25:06 - End Time 2025-03-25 09:25:06 [2025-03-25 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758559', 'tblTempUsageDetail_20' ) start [2025-03-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758559', 'tblTempUsageDetail_20' ) end [2025-03-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758559', 'tblTempVendorCDR_20' ) start [2025-03-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758559', 'tblTempVendorCDR_20' ) end [2025-03-25 09:25:19] Production.INFO: ProcessCDR(1,14758559,1,1,2) [2025-03-25 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758559', 'tblTempUsageDetail_20' ) start [2025-03-25 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758559', 'tblTempUsageDetail_20' ) end [2025-03-25 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:25:24] Production.INFO: ==25259== Releasing lock... [2025-03-25 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:25:24] Production.INFO: 38 MB #Memory Used# [2025-03-25 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:26:06 [end_date_ymd] => 2025-03-25 09:26:06 [RateCDR] => 1 ) [2025-03-25 09: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-03-25 06:26:06' and `end` < '2025-03-25 09: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-03-25 09:26:18] Production.INFO: count ==1303 [2025-03-25 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:26:06 - End Time 2025-03-25 09:26:06 [2025-03-25 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758564', 'tblTempUsageDetail_20' ) start [2025-03-25 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758564', 'tblTempUsageDetail_20' ) end [2025-03-25 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758564', 'tblTempVendorCDR_20' ) start [2025-03-25 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758564', 'tblTempVendorCDR_20' ) end [2025-03-25 09:26:19] Production.INFO: ProcessCDR(1,14758564,1,1,2) [2025-03-25 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758564', 'tblTempUsageDetail_20' ) start [2025-03-25 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758564', 'tblTempUsageDetail_20' ) end [2025-03-25 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:26:25] Production.INFO: ==25345== Releasing lock... [2025-03-25 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:26:25] Production.INFO: 38 MB #Memory Used# [2025-03-25 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:27:06 [end_date_ymd] => 2025-03-25 09:27:06 [RateCDR] => 1 ) [2025-03-25 09:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:27:06' and `end` < '2025-03-25 09:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:27:19] Production.INFO: count ==1339 [2025-03-25 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:27:06 - End Time 2025-03-25 09:27:06 [2025-03-25 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758569', 'tblTempUsageDetail_20' ) start [2025-03-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758569', 'tblTempUsageDetail_20' ) end [2025-03-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758569', 'tblTempVendorCDR_20' ) start [2025-03-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758569', 'tblTempVendorCDR_20' ) end [2025-03-25 09:27:19] Production.INFO: ProcessCDR(1,14758569,1,1,2) [2025-03-25 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758569', 'tblTempUsageDetail_20' ) start [2025-03-25 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758569', 'tblTempUsageDetail_20' ) end [2025-03-25 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:27:25] Production.INFO: ==25433== Releasing lock... [2025-03-25 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:27:25] Production.INFO: 38 MB #Memory Used# [2025-03-25 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:28:06 [end_date_ymd] => 2025-03-25 09:28:06 [RateCDR] => 1 ) [2025-03-25 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:28:06' and `end` < '2025-03-25 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:28:19] Production.INFO: count ==1387 [2025-03-25 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:28:06 - End Time 2025-03-25 09:28:06 [2025-03-25 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758574', 'tblTempUsageDetail_20' ) start [2025-03-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758574', 'tblTempUsageDetail_20' ) end [2025-03-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758574', 'tblTempVendorCDR_20' ) start [2025-03-25 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758574', 'tblTempVendorCDR_20' ) end [2025-03-25 09:28:19] Production.INFO: ProcessCDR(1,14758574,1,1,2) [2025-03-25 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758574', 'tblTempUsageDetail_20' ) start [2025-03-25 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758574', 'tblTempUsageDetail_20' ) end [2025-03-25 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:28:25] Production.INFO: ==25522== Releasing lock... [2025-03-25 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:28:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-25 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:29:06 [end_date_ymd] => 2025-03-25 09:29:06 [RateCDR] => 1 ) [2025-03-25 09:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:29:06' and `end` < '2025-03-25 09:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:29:19] Production.INFO: count ==1416 [2025-03-25 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:29:06 - End Time 2025-03-25 09:29:06 [2025-03-25 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758579', 'tblTempUsageDetail_20' ) start [2025-03-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758579', 'tblTempUsageDetail_20' ) end [2025-03-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758579', 'tblTempVendorCDR_20' ) start [2025-03-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758579', 'tblTempVendorCDR_20' ) end [2025-03-25 09:29:19] Production.INFO: ProcessCDR(1,14758579,1,1,2) [2025-03-25 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758579', 'tblTempUsageDetail_20' ) start [2025-03-25 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758579', 'tblTempUsageDetail_20' ) end [2025-03-25 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:29:25] Production.INFO: ==25607== Releasing lock... [2025-03-25 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:29:25] Production.INFO: 39 MB #Memory Used# [2025-03-25 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:30:06 [end_date_ymd] => 2025-03-25 09:30:06 [RateCDR] => 1 ) [2025-03-25 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:30:06' and `end` < '2025-03-25 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:30:19] Production.INFO: count ==1487 [2025-03-25 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:30:06 - End Time 2025-03-25 09:30:06 [2025-03-25 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758584', 'tblTempUsageDetail_20' ) start [2025-03-25 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758584', 'tblTempUsageDetail_20' ) end [2025-03-25 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758584', 'tblTempVendorCDR_20' ) start [2025-03-25 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758584', 'tblTempVendorCDR_20' ) end [2025-03-25 09:30:20] Production.INFO: ProcessCDR(1,14758584,1,1,2) [2025-03-25 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758584', 'tblTempUsageDetail_20' ) start [2025-03-25 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758584', 'tblTempUsageDetail_20' ) end [2025-03-25 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:30:26] Production.INFO: ==25700== Releasing lock... [2025-03-25 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:30:26] Production.INFO: 39 MB #Memory Used# [2025-03-25 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:31:06 [end_date_ymd] => 2025-03-25 09:31:06 [RateCDR] => 1 ) [2025-03-25 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:31:06' and `end` < '2025-03-25 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:31:18] Production.INFO: count ==1576 [2025-03-25 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:31:06 - End Time 2025-03-25 09:31:06 [2025-03-25 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758590', 'tblTempUsageDetail_20' ) start [2025-03-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758590', 'tblTempUsageDetail_20' ) end [2025-03-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758590', 'tblTempVendorCDR_20' ) start [2025-03-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758590', 'tblTempVendorCDR_20' ) end [2025-03-25 09:31:19] Production.INFO: ProcessCDR(1,14758590,1,1,2) [2025-03-25 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758590', 'tblTempUsageDetail_20' ) start [2025-03-25 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758590', 'tblTempUsageDetail_20' ) end [2025-03-25 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:31:23] Production.INFO: ==25789== Releasing lock... [2025-03-25 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:31:23] Production.INFO: 40 MB #Memory Used# [2025-03-25 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:32:06 [end_date_ymd] => 2025-03-25 09:32:06 [RateCDR] => 1 ) [2025-03-25 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:32:06' and `end` < '2025-03-25 09: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-03-25 09:32:19] Production.INFO: count ==1589 [2025-03-25 09:32:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:32:06 - End Time 2025-03-25 09:32:06 [2025-03-25 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758595', 'tblTempUsageDetail_20' ) start [2025-03-25 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758595', 'tblTempUsageDetail_20' ) end [2025-03-25 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758595', 'tblTempVendorCDR_20' ) start [2025-03-25 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758595', 'tblTempVendorCDR_20' ) end [2025-03-25 09:32:20] Production.INFO: ProcessCDR(1,14758595,1,1,2) [2025-03-25 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758595', 'tblTempUsageDetail_20' ) start [2025-03-25 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758595', 'tblTempUsageDetail_20' ) end [2025-03-25 09:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:32:26] Production.INFO: ==25879== Releasing lock... [2025-03-25 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:32:26] Production.INFO: 40 MB #Memory Used# [2025-03-25 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:33:05 [end_date_ymd] => 2025-03-25 09:33:05 [RateCDR] => 1 ) [2025-03-25 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:33:05' and `end` < '2025-03-25 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:33:18] Production.INFO: count ==1599 [2025-03-25 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:33:05 - End Time 2025-03-25 09:33:05 [2025-03-25 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758600', 'tblTempUsageDetail_20' ) start [2025-03-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758600', 'tblTempUsageDetail_20' ) end [2025-03-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758600', 'tblTempVendorCDR_20' ) start [2025-03-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758600', 'tblTempVendorCDR_20' ) end [2025-03-25 09:33:19] Production.INFO: ProcessCDR(1,14758600,1,1,2) [2025-03-25 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758600', 'tblTempUsageDetail_20' ) start [2025-03-25 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758600', 'tblTempUsageDetail_20' ) end [2025-03-25 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:33:24] Production.INFO: ==25963== Releasing lock... [2025-03-25 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:33:24] Production.INFO: 40 MB #Memory Used# [2025-03-25 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:34:06 [end_date_ymd] => 2025-03-25 09:34:06 [RateCDR] => 1 ) [2025-03-25 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:34:06' and `end` < '2025-03-25 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:34:19] Production.INFO: count ==1619 [2025-03-25 09:34:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:34:06 - End Time 2025-03-25 09:34:06 [2025-03-25 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758605', 'tblTempUsageDetail_20' ) start [2025-03-25 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758605', 'tblTempUsageDetail_20' ) end [2025-03-25 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758605', 'tblTempVendorCDR_20' ) start [2025-03-25 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758605', 'tblTempVendorCDR_20' ) end [2025-03-25 09:34:20] Production.INFO: ProcessCDR(1,14758605,1,1,2) [2025-03-25 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758605', 'tblTempUsageDetail_20' ) start [2025-03-25 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758605', 'tblTempUsageDetail_20' ) end [2025-03-25 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:34:26] Production.INFO: ==26093== Releasing lock... [2025-03-25 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:34:26] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:35:06 [end_date_ymd] => 2025-03-25 09:35:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:35:06' and `end` < '2025-03-25 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-03-25 09:35:18] Production.INFO: count ==1622 [2025-03-25 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:35:06 - End Time 2025-03-25 09:35:06 [2025-03-25 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758610', 'tblTempUsageDetail_20' ) start [2025-03-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758610', 'tblTempUsageDetail_20' ) end [2025-03-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758610', 'tblTempVendorCDR_20' ) start [2025-03-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758610', 'tblTempVendorCDR_20' ) end [2025-03-25 09:35:19] Production.INFO: ProcessCDR(1,14758610,1,1,2) [2025-03-25 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758610', 'tblTempUsageDetail_20' ) start [2025-03-25 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758610', 'tblTempUsageDetail_20' ) end [2025-03-25 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:35:25] Production.INFO: ==26178== Releasing lock... [2025-03-25 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:35:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:36:06 [end_date_ymd] => 2025-03-25 09:36:06 [RateCDR] => 1 ) [2025-03-25 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:36:06' and `end` < '2025-03-25 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:36:18] Production.INFO: count ==1630 [2025-03-25 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:36:06 - End Time 2025-03-25 09:36:06 [2025-03-25 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758615', 'tblTempUsageDetail_20' ) start [2025-03-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758615', 'tblTempUsageDetail_20' ) end [2025-03-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758615', 'tblTempVendorCDR_20' ) start [2025-03-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758615', 'tblTempVendorCDR_20' ) end [2025-03-25 09:36:19] Production.INFO: ProcessCDR(1,14758615,1,1,2) [2025-03-25 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758615', 'tblTempUsageDetail_20' ) start [2025-03-25 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758615', 'tblTempUsageDetail_20' ) end [2025-03-25 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:36:25] Production.INFO: ==26266== Releasing lock... [2025-03-25 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:36:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-25 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:37:05 [end_date_ymd] => 2025-03-25 09:37:05 [RateCDR] => 1 ) [2025-03-25 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:37:05' and `end` < '2025-03-25 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:37:18] Production.INFO: count ==1640 [2025-03-25 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:37:05 - End Time 2025-03-25 09:37:05 [2025-03-25 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758620', 'tblTempUsageDetail_20' ) start [2025-03-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758620', 'tblTempUsageDetail_20' ) end [2025-03-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758620', 'tblTempVendorCDR_20' ) start [2025-03-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758620', 'tblTempVendorCDR_20' ) end [2025-03-25 09:37:19] Production.INFO: ProcessCDR(1,14758620,1,1,2) [2025-03-25 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758620', 'tblTempUsageDetail_20' ) start [2025-03-25 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758620', 'tblTempUsageDetail_20' ) end [2025-03-25 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:37:24] Production.INFO: ==26353== Releasing lock... [2025-03-25 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:37:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:38:06 [end_date_ymd] => 2025-03-25 09:38:06 [RateCDR] => 1 ) [2025-03-25 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:38:06' and `end` < '2025-03-25 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:38:19] Production.INFO: count ==1702 [2025-03-25 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:38:06 - End Time 2025-03-25 09:38:06 [2025-03-25 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758625', 'tblTempUsageDetail_20' ) start [2025-03-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758625', 'tblTempUsageDetail_20' ) end [2025-03-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758625', 'tblTempVendorCDR_20' ) start [2025-03-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758625', 'tblTempVendorCDR_20' ) end [2025-03-25 09:38:19] Production.INFO: ProcessCDR(1,14758625,1,1,2) [2025-03-25 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758625', 'tblTempUsageDetail_20' ) start [2025-03-25 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758625', 'tblTempUsageDetail_20' ) end [2025-03-25 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:38:25] Production.INFO: ==26440== Releasing lock... [2025-03-25 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:38:25] Production.INFO: 40.75 MB #Memory Used# [2025-03-25 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:39:06 [end_date_ymd] => 2025-03-25 09:39:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:39:06' and `end` < '2025-03-25 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-03-25 09:39:18] Production.INFO: count ==1728 [2025-03-25 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:39:06 - End Time 2025-03-25 09:39:06 [2025-03-25 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758630', 'tblTempUsageDetail_20' ) start [2025-03-25 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758630', 'tblTempUsageDetail_20' ) end [2025-03-25 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758630', 'tblTempVendorCDR_20' ) start [2025-03-25 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758630', 'tblTempVendorCDR_20' ) end [2025-03-25 09:39:19] Production.INFO: ProcessCDR(1,14758630,1,1,2) [2025-03-25 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758630', 'tblTempUsageDetail_20' ) start [2025-03-25 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758630', 'tblTempUsageDetail_20' ) end [2025-03-25 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:39:25] Production.INFO: ==26528== Releasing lock... [2025-03-25 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:39:25] Production.INFO: 41 MB #Memory Used# [2025-03-25 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:40:07 [end_date_ymd] => 2025-03-25 09:40:07 [RateCDR] => 1 ) [2025-03-25 09:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:40:07' and `end` < '2025-03-25 09:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:40:20] Production.INFO: count ==1770 [2025-03-25 09:40:21] Production.ERROR: pbx CDR StartTime 2025-03-25 06:40:07 - End Time 2025-03-25 09:40:07 [2025-03-25 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758635', 'tblTempUsageDetail_20' ) start [2025-03-25 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758635', 'tblTempUsageDetail_20' ) end [2025-03-25 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758635', 'tblTempVendorCDR_20' ) start [2025-03-25 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758635', 'tblTempVendorCDR_20' ) end [2025-03-25 09:40:21] Production.INFO: ProcessCDR(1,14758635,1,1,2) [2025-03-25 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758635', 'tblTempUsageDetail_20' ) start [2025-03-25 09:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758635', 'tblTempUsageDetail_20' ) end [2025-03-25 09:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:40:27] Production.INFO: ==26614== Releasing lock... [2025-03-25 09:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:40:27] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:41:05 [end_date_ymd] => 2025-03-25 09:41:05 [RateCDR] => 1 ) [2025-03-25 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:41:05' and `end` < '2025-03-25 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:41:18] Production.INFO: count ==1865 [2025-03-25 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:41:05 - End Time 2025-03-25 09:41:05 [2025-03-25 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758641', 'tblTempUsageDetail_20' ) start [2025-03-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758641', 'tblTempUsageDetail_20' ) end [2025-03-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758641', 'tblTempVendorCDR_20' ) start [2025-03-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758641', 'tblTempVendorCDR_20' ) end [2025-03-25 09:41:19] Production.INFO: ProcessCDR(1,14758641,1,1,2) [2025-03-25 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758641', 'tblTempUsageDetail_20' ) start [2025-03-25 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758641', 'tblTempUsageDetail_20' ) end [2025-03-25 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:41:25] Production.INFO: ==26706== Releasing lock... [2025-03-25 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:41:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:42:06 [end_date_ymd] => 2025-03-25 09:42:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:42:06' and `end` < '2025-03-25 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-03-25 09:42:19] Production.INFO: count ==1892 [2025-03-25 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:42:06 - End Time 2025-03-25 09:42:06 [2025-03-25 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758646', 'tblTempUsageDetail_20' ) start [2025-03-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758646', 'tblTempUsageDetail_20' ) end [2025-03-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758646', 'tblTempVendorCDR_20' ) start [2025-03-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758646', 'tblTempVendorCDR_20' ) end [2025-03-25 09:42:19] Production.INFO: ProcessCDR(1,14758646,1,1,2) [2025-03-25 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758646', 'tblTempUsageDetail_20' ) start [2025-03-25 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758646', 'tblTempUsageDetail_20' ) end [2025-03-25 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:42:25] Production.INFO: ==26791== Releasing lock... [2025-03-25 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:42:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:43:05 [end_date_ymd] => 2025-03-25 09:43:05 [RateCDR] => 1 ) [2025-03-25 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:43:05' and `end` < '2025-03-25 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:43:18] Production.INFO: count ==1900 [2025-03-25 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 06:43:05 - End Time 2025-03-25 09:43:05 [2025-03-25 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758651', 'tblTempUsageDetail_20' ) start [2025-03-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758651', 'tblTempUsageDetail_20' ) end [2025-03-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758651', 'tblTempVendorCDR_20' ) start [2025-03-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758651', 'tblTempVendorCDR_20' ) end [2025-03-25 09:43:19] Production.INFO: ProcessCDR(1,14758651,1,1,2) [2025-03-25 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758651', 'tblTempUsageDetail_20' ) start [2025-03-25 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758651', 'tblTempUsageDetail_20' ) end [2025-03-25 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:43:24] Production.INFO: ==26880== Releasing lock... [2025-03-25 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:43:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:44:06 [end_date_ymd] => 2025-03-25 09:44:06 [RateCDR] => 1 ) [2025-03-25 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:44:06' and `end` < '2025-03-25 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:44:19] Production.INFO: count ==1917 [2025-03-25 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:44:06 - End Time 2025-03-25 09:44:06 [2025-03-25 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758656', 'tblTempUsageDetail_20' ) start [2025-03-25 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758656', 'tblTempUsageDetail_20' ) end [2025-03-25 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758656', 'tblTempVendorCDR_20' ) start [2025-03-25 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758656', 'tblTempVendorCDR_20' ) end [2025-03-25 09:44:19] Production.INFO: ProcessCDR(1,14758656,1,1,2) [2025-03-25 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758656', 'tblTempUsageDetail_20' ) start [2025-03-25 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758656', 'tblTempUsageDetail_20' ) end [2025-03-25 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:44:25] Production.INFO: ==26970== Releasing lock... [2025-03-25 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:44:25] Production.INFO: 43 MB #Memory Used# [2025-03-25 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:45:05 [end_date_ymd] => 2025-03-25 09:45:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:45:05' and `end` < '2025-03-25 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-03-25 09:45:18] Production.INFO: count ==1936 [2025-03-25 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:45:05 - End Time 2025-03-25 09:45:05 [2025-03-25 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758661', 'tblTempUsageDetail_20' ) start [2025-03-25 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758661', 'tblTempUsageDetail_20' ) end [2025-03-25 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758661', 'tblTempVendorCDR_20' ) start [2025-03-25 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758661', 'tblTempVendorCDR_20' ) end [2025-03-25 09:45:19] Production.INFO: ProcessCDR(1,14758661,1,1,2) [2025-03-25 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758661', 'tblTempUsageDetail_20' ) start [2025-03-25 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758661', 'tblTempUsageDetail_20' ) end [2025-03-25 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:45:25] Production.INFO: ==27055== Releasing lock... [2025-03-25 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:45:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-25 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:46:05 [end_date_ymd] => 2025-03-25 09:46:05 [RateCDR] => 1 ) [2025-03-25 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:46:05' and `end` < '2025-03-25 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:46:18] Production.INFO: count ==1963 [2025-03-25 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:46:05 - End Time 2025-03-25 09:46:05 [2025-03-25 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758666', 'tblTempUsageDetail_20' ) start [2025-03-25 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758666', 'tblTempUsageDetail_20' ) end [2025-03-25 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758666', 'tblTempVendorCDR_20' ) start [2025-03-25 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758666', 'tblTempVendorCDR_20' ) end [2025-03-25 09:46:19] Production.INFO: ProcessCDR(1,14758666,1,1,2) [2025-03-25 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758666', 'tblTempUsageDetail_20' ) start [2025-03-25 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758666', 'tblTempUsageDetail_20' ) end [2025-03-25 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:46:25] Production.INFO: ==27142== Releasing lock... [2025-03-25 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:46:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-25 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:47:05 [end_date_ymd] => 2025-03-25 09:47:05 [RateCDR] => 1 ) [2025-03-25 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:47:05' and `end` < '2025-03-25 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:47:18] Production.INFO: count ==1990 [2025-03-25 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:47:05 - End Time 2025-03-25 09:47:05 [2025-03-25 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758671', 'tblTempUsageDetail_20' ) start [2025-03-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758671', 'tblTempUsageDetail_20' ) end [2025-03-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758671', 'tblTempVendorCDR_20' ) start [2025-03-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758671', 'tblTempVendorCDR_20' ) end [2025-03-25 09:47:19] Production.INFO: ProcessCDR(1,14758671,1,1,2) [2025-03-25 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758671', 'tblTempUsageDetail_20' ) start [2025-03-25 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758671', 'tblTempUsageDetail_20' ) end [2025-03-25 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:47:25] Production.INFO: ==27227== Releasing lock... [2025-03-25 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:47:25] Production.INFO: 43 MB #Memory Used# [2025-03-25 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:48:05 [end_date_ymd] => 2025-03-25 09:48:05 [RateCDR] => 1 ) [2025-03-25 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:48:05' and `end` < '2025-03-25 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:48:18] Production.INFO: count ==2010 [2025-03-25 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:48:05 - End Time 2025-03-25 09:48:05 [2025-03-25 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758676', 'tblTempUsageDetail_20' ) start [2025-03-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758676', 'tblTempUsageDetail_20' ) end [2025-03-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758676', 'tblTempVendorCDR_20' ) start [2025-03-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758676', 'tblTempVendorCDR_20' ) end [2025-03-25 09:48:19] Production.INFO: ProcessCDR(1,14758676,1,1,2) [2025-03-25 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758676', 'tblTempUsageDetail_20' ) start [2025-03-25 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758676', 'tblTempUsageDetail_20' ) end [2025-03-25 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:48:24] Production.INFO: ==27311== Releasing lock... [2025-03-25 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:48:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-25 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:49:05 [end_date_ymd] => 2025-03-25 09:49:05 [RateCDR] => 1 ) [2025-03-25 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:49:05' and `end` < '2025-03-25 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:49:18] Production.INFO: count ==2031 [2025-03-25 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:49:05 - End Time 2025-03-25 09:49:05 [2025-03-25 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758681', 'tblTempUsageDetail_20' ) start [2025-03-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758681', 'tblTempUsageDetail_20' ) end [2025-03-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758681', 'tblTempVendorCDR_20' ) start [2025-03-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758681', 'tblTempVendorCDR_20' ) end [2025-03-25 09:49:19] Production.INFO: ProcessCDR(1,14758681,1,1,2) [2025-03-25 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758681', 'tblTempUsageDetail_20' ) start [2025-03-25 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758681', 'tblTempUsageDetail_20' ) end [2025-03-25 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:49:23] Production.INFO: ==27440== Releasing lock... [2025-03-25 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:49:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-25 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:50:06 [end_date_ymd] => 2025-03-25 09:50:06 [RateCDR] => 1 ) [2025-03-25 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:50:06' and `end` < '2025-03-25 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:50:19] Production.INFO: count ==2047 [2025-03-25 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:50:06 - End Time 2025-03-25 09:50:06 [2025-03-25 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758687', 'tblTempUsageDetail_20' ) start [2025-03-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758687', 'tblTempUsageDetail_20' ) end [2025-03-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758687', 'tblTempVendorCDR_20' ) start [2025-03-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758687', 'tblTempVendorCDR_20' ) end [2025-03-25 09:50:20] Production.INFO: ProcessCDR(1,14758687,1,1,2) [2025-03-25 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758687', 'tblTempUsageDetail_20' ) start [2025-03-25 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758687', 'tblTempUsageDetail_20' ) end [2025-03-25 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:50:26] Production.INFO: ==27529== Releasing lock... [2025-03-25 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:50:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-25 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:51:05 [end_date_ymd] => 2025-03-25 09:51:05 [RateCDR] => 1 ) [2025-03-25 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:51:05' and `end` < '2025-03-25 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:51:18] Production.INFO: count ==2150 [2025-03-25 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:51:05 - End Time 2025-03-25 09:51:05 [2025-03-25 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758692', 'tblTempUsageDetail_20' ) start [2025-03-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758692', 'tblTempUsageDetail_20' ) end [2025-03-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758692', 'tblTempVendorCDR_20' ) start [2025-03-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758692', 'tblTempVendorCDR_20' ) end [2025-03-25 09:51:19] Production.INFO: ProcessCDR(1,14758692,1,1,2) [2025-03-25 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758692', 'tblTempUsageDetail_20' ) start [2025-03-25 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758692', 'tblTempUsageDetail_20' ) end [2025-03-25 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:51:24] Production.INFO: ==27620== Releasing lock... [2025-03-25 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:51:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:52:05 [end_date_ymd] => 2025-03-25 09:52:05 [RateCDR] => 1 ) [2025-03-25 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:52:05' and `end` < '2025-03-25 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:52:18] Production.INFO: count ==2164 [2025-03-25 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:52:05 - End Time 2025-03-25 09:52:05 [2025-03-25 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758697', 'tblTempUsageDetail_20' ) start [2025-03-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758697', 'tblTempUsageDetail_20' ) end [2025-03-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758697', 'tblTempVendorCDR_20' ) start [2025-03-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758697', 'tblTempVendorCDR_20' ) end [2025-03-25 09:52:19] Production.INFO: ProcessCDR(1,14758697,1,1,2) [2025-03-25 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758697', 'tblTempUsageDetail_20' ) start [2025-03-25 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758697', 'tblTempUsageDetail_20' ) end [2025-03-25 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:52:25] Production.INFO: ==27707== Releasing lock... [2025-03-25 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:52:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:53:06 [end_date_ymd] => 2025-03-25 09:53:06 [RateCDR] => 1 ) [2025-03-25 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:53:06' and `end` < '2025-03-25 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:53:19] Production.INFO: count ==2188 [2025-03-25 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:53:06 - End Time 2025-03-25 09:53:06 [2025-03-25 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758702', 'tblTempUsageDetail_20' ) start [2025-03-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758702', 'tblTempUsageDetail_20' ) end [2025-03-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758702', 'tblTempVendorCDR_20' ) start [2025-03-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758702', 'tblTempVendorCDR_20' ) end [2025-03-25 09:53:19] Production.INFO: ProcessCDR(1,14758702,1,1,2) [2025-03-25 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758702', 'tblTempUsageDetail_20' ) start [2025-03-25 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758702', 'tblTempUsageDetail_20' ) end [2025-03-25 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:53:25] Production.INFO: ==27797== Releasing lock... [2025-03-25 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:53:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-25 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:54:06 [end_date_ymd] => 2025-03-25 09:54:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 06:54:06' and `end` < '2025-03-25 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-03-25 09:54:19] Production.INFO: count ==2210 [2025-03-25 09:54:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:54:06 - End Time 2025-03-25 09:54:06 [2025-03-25 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758707', 'tblTempUsageDetail_20' ) start [2025-03-25 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758707', 'tblTempUsageDetail_20' ) end [2025-03-25 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758707', 'tblTempVendorCDR_20' ) start [2025-03-25 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758707', 'tblTempVendorCDR_20' ) end [2025-03-25 09:54:20] Production.INFO: ProcessCDR(1,14758707,1,1,2) [2025-03-25 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758707', 'tblTempUsageDetail_20' ) start [2025-03-25 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758707', 'tblTempUsageDetail_20' ) end [2025-03-25 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:54:25] Production.INFO: ==27883== Releasing lock... [2025-03-25 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:54:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-25 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:55:06 [end_date_ymd] => 2025-03-25 09:55:06 [RateCDR] => 1 ) [2025-03-25 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:55:06' and `end` < '2025-03-25 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:55:19] Production.INFO: count ==2234 [2025-03-25 09:55:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:55:06 - End Time 2025-03-25 09:55:06 [2025-03-25 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758712', 'tblTempUsageDetail_20' ) start [2025-03-25 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758712', 'tblTempUsageDetail_20' ) end [2025-03-25 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758712', 'tblTempVendorCDR_20' ) start [2025-03-25 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758712', 'tblTempVendorCDR_20' ) end [2025-03-25 09:55:20] Production.INFO: ProcessCDR(1,14758712,1,1,2) [2025-03-25 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758712', 'tblTempUsageDetail_20' ) start [2025-03-25 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758712', 'tblTempUsageDetail_20' ) end [2025-03-25 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:55:26] Production.INFO: ==27968== Releasing lock... [2025-03-25 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:55:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-25 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:56:05 [end_date_ymd] => 2025-03-25 09:56:05 [RateCDR] => 1 ) [2025-03-25 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:56:05' and `end` < '2025-03-25 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:56:18] Production.INFO: count ==2358 [2025-03-25 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:56:05 - End Time 2025-03-25 09:56:05 [2025-03-25 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758717', 'tblTempUsageDetail_20' ) start [2025-03-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758717', 'tblTempUsageDetail_20' ) end [2025-03-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758717', 'tblTempVendorCDR_20' ) start [2025-03-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758717', 'tblTempVendorCDR_20' ) end [2025-03-25 09:56:19] Production.INFO: ProcessCDR(1,14758717,1,1,2) [2025-03-25 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758717', 'tblTempUsageDetail_20' ) start [2025-03-25 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758717', 'tblTempUsageDetail_20' ) end [2025-03-25 09:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:56:26] Production.INFO: ==28055== Releasing lock... [2025-03-25 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:56:26] Production.INFO: 45.75 MB #Memory Used# [2025-03-25 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:57:06 [end_date_ymd] => 2025-03-25 09:57:06 [RateCDR] => 1 ) [2025-03-25 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:57:06' and `end` < '2025-03-25 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:57:19] Production.INFO: count ==2386 [2025-03-25 09:57:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:57:06 - End Time 2025-03-25 09:57:06 [2025-03-25 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758722', 'tblTempUsageDetail_20' ) start [2025-03-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758722', 'tblTempUsageDetail_20' ) end [2025-03-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758722', 'tblTempVendorCDR_20' ) start [2025-03-25 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758722', 'tblTempVendorCDR_20' ) end [2025-03-25 09:57:20] Production.INFO: ProcessCDR(1,14758722,1,1,2) [2025-03-25 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758722', 'tblTempUsageDetail_20' ) start [2025-03-25 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758722', 'tblTempUsageDetail_20' ) end [2025-03-25 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:57:26] Production.INFO: ==28142== Releasing lock... [2025-03-25 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:57:26] Production.INFO: 46 MB #Memory Used# [2025-03-25 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:58:05 [end_date_ymd] => 2025-03-25 09:58:05 [RateCDR] => 1 ) [2025-03-25 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:58:05' and `end` < '2025-03-25 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:58:18] Production.INFO: count ==2417 [2025-03-25 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-25 06:58:05 - End Time 2025-03-25 09:58:05 [2025-03-25 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758727', 'tblTempUsageDetail_20' ) start [2025-03-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758727', 'tblTempUsageDetail_20' ) end [2025-03-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758727', 'tblTempVendorCDR_20' ) start [2025-03-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758727', 'tblTempVendorCDR_20' ) end [2025-03-25 09:58:19] Production.INFO: ProcessCDR(1,14758727,1,1,2) [2025-03-25 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758727', 'tblTempUsageDetail_20' ) start [2025-03-25 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758727', 'tblTempUsageDetail_20' ) end [2025-03-25 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:58:23] Production.INFO: ==28229== Releasing lock... [2025-03-25 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:58:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-25 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 06:59:06 [end_date_ymd] => 2025-03-25 09:59:06 [RateCDR] => 1 ) [2025-03-25 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 06:59:06' and `end` < '2025-03-25 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 09:59:19] Production.INFO: count ==2452 [2025-03-25 09:59:20] Production.ERROR: pbx CDR StartTime 2025-03-25 06:59:06 - End Time 2025-03-25 09:59:06 [2025-03-25 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758732', 'tblTempUsageDetail_20' ) start [2025-03-25 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758732', 'tblTempUsageDetail_20' ) end [2025-03-25 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758732', 'tblTempVendorCDR_20' ) start [2025-03-25 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758732', 'tblTempVendorCDR_20' ) end [2025-03-25 09:59:20] Production.INFO: ProcessCDR(1,14758732,1,1,2) [2025-03-25 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758732', 'tblTempUsageDetail_20' ) start [2025-03-25 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758732', 'tblTempUsageDetail_20' ) end [2025-03-25 09:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 09:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 09:59:26] Production.INFO: ==28319== Releasing lock... [2025-03-25 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 09:59:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-25 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:00:06 [end_date_ymd] => 2025-03-25 10:00:06 [RateCDR] => 1 ) [2025-03-25 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:00:06' and `end` < '2025-03-25 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:00:19] Production.INFO: count ==2480 [2025-03-25 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:00:06 - End Time 2025-03-25 10:00:06 [2025-03-25 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758738', 'tblTempUsageDetail_20' ) start [2025-03-25 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758738', 'tblTempUsageDetail_20' ) end [2025-03-25 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758738', 'tblTempVendorCDR_20' ) start [2025-03-25 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758738', 'tblTempVendorCDR_20' ) end [2025-03-25 10:00:21] Production.INFO: ProcessCDR(1,14758738,1,1,2) [2025-03-25 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758738', 'tblTempUsageDetail_20' ) start [2025-03-25 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758738', 'tblTempUsageDetail_20' ) end [2025-03-25 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:00:26] Production.INFO: ==28411== Releasing lock... [2025-03-25 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:00:26] Production.INFO: 46.75 MB #Memory Used# [2025-03-25 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:01:06 [end_date_ymd] => 2025-03-25 10:01:06 [RateCDR] => 1 ) [2025-03-25 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:01:06' and `end` < '2025-03-25 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:01:19] Production.INFO: count ==2665 [2025-03-25 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:01:06 - End Time 2025-03-25 10:01:06 [2025-03-25 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758743', 'tblTempUsageDetail_20' ) start [2025-03-25 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758743', 'tblTempUsageDetail_20' ) end [2025-03-25 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758743', 'tblTempVendorCDR_20' ) start [2025-03-25 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758743', 'tblTempVendorCDR_20' ) end [2025-03-25 10:01:20] Production.INFO: ProcessCDR(1,14758743,1,1,2) [2025-03-25 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758743', 'tblTempUsageDetail_20' ) start [2025-03-25 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758743', 'tblTempUsageDetail_20' ) end [2025-03-25 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:01:26] Production.INFO: ==28509== Releasing lock... [2025-03-25 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:01:26] Production.INFO: 48 MB #Memory Used# [2025-03-25 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:02:06 [end_date_ymd] => 2025-03-25 10:02:06 [RateCDR] => 1 ) [2025-03-25 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:02:06' and `end` < '2025-03-25 10: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-03-25 10:02:19] Production.INFO: count ==2692 [2025-03-25 10:02:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:02:06 - End Time 2025-03-25 10:02:06 [2025-03-25 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758748', 'tblTempUsageDetail_20' ) start [2025-03-25 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758748', 'tblTempUsageDetail_20' ) end [2025-03-25 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758748', 'tblTempVendorCDR_20' ) start [2025-03-25 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758748', 'tblTempVendorCDR_20' ) end [2025-03-25 10:02:20] Production.INFO: ProcessCDR(1,14758748,1,1,2) [2025-03-25 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758748', 'tblTempUsageDetail_20' ) start [2025-03-25 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758748', 'tblTempUsageDetail_20' ) end [2025-03-25 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:02:25] Production.INFO: ==28595== Releasing lock... [2025-03-25 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:02:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-25 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:03:06 [end_date_ymd] => 2025-03-25 10:03:06 [RateCDR] => 1 ) [2025-03-25 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:03:06' and `end` < '2025-03-25 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:03:19] Production.INFO: count ==2716 [2025-03-25 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:03:06 - End Time 2025-03-25 10:03:06 [2025-03-25 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758753', 'tblTempUsageDetail_20' ) start [2025-03-25 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758753', 'tblTempUsageDetail_20' ) end [2025-03-25 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758753', 'tblTempVendorCDR_20' ) start [2025-03-25 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758753', 'tblTempVendorCDR_20' ) end [2025-03-25 10:03:20] Production.INFO: ProcessCDR(1,14758753,1,1,2) [2025-03-25 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758753', 'tblTempUsageDetail_20' ) start [2025-03-25 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758753', 'tblTempUsageDetail_20' ) end [2025-03-25 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:03:26] Production.INFO: ==28705== Releasing lock... [2025-03-25 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:03:26] Production.INFO: 48.5 MB #Memory Used# [2025-03-25 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:04:05 [end_date_ymd] => 2025-03-25 10:04:05 [RateCDR] => 1 ) [2025-03-25 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:04:05' and `end` < '2025-03-25 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:04:18] Production.INFO: count ==2729 [2025-03-25 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:04:05 - End Time 2025-03-25 10:04:05 [2025-03-25 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758758', 'tblTempUsageDetail_20' ) start [2025-03-25 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758758', 'tblTempUsageDetail_20' ) end [2025-03-25 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758758', 'tblTempVendorCDR_20' ) start [2025-03-25 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758758', 'tblTempVendorCDR_20' ) end [2025-03-25 10:04:19] Production.INFO: ProcessCDR(1,14758758,1,1,2) [2025-03-25 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758758', 'tblTempUsageDetail_20' ) start [2025-03-25 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758758', 'tblTempUsageDetail_20' ) end [2025-03-25 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:04:25] Production.INFO: ==28827== Releasing lock... [2025-03-25 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:04:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-25 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:05:06 [end_date_ymd] => 2025-03-25 10:05:06 [RateCDR] => 1 ) [2025-03-25 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:05:06' and `end` < '2025-03-25 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:05:19] Production.INFO: count ==2758 [2025-03-25 10:05:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:05:06 - End Time 2025-03-25 10:05:06 [2025-03-25 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758763', 'tblTempUsageDetail_20' ) start [2025-03-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758763', 'tblTempUsageDetail_20' ) end [2025-03-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758763', 'tblTempVendorCDR_20' ) start [2025-03-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758763', 'tblTempVendorCDR_20' ) end [2025-03-25 10:05:20] Production.INFO: ProcessCDR(1,14758763,1,1,2) [2025-03-25 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758763', 'tblTempUsageDetail_20' ) start [2025-03-25 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758763', 'tblTempUsageDetail_20' ) end [2025-03-25 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:05:26] Production.INFO: ==28915== Releasing lock... [2025-03-25 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:05:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:06:05 [end_date_ymd] => 2025-03-25 10:06:05 [RateCDR] => 1 ) [2025-03-25 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:06:05' and `end` < '2025-03-25 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:06:18] Production.INFO: count ==2771 [2025-03-25 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:06:05 - End Time 2025-03-25 10:06:05 [2025-03-25 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758768', 'tblTempUsageDetail_20' ) start [2025-03-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758768', 'tblTempUsageDetail_20' ) end [2025-03-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758768', 'tblTempVendorCDR_20' ) start [2025-03-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758768', 'tblTempVendorCDR_20' ) end [2025-03-25 10:06:20] Production.INFO: ProcessCDR(1,14758768,1,1,2) [2025-03-25 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758768', 'tblTempUsageDetail_20' ) start [2025-03-25 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758768', 'tblTempUsageDetail_20' ) end [2025-03-25 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:06:25] Production.INFO: ==29004== Releasing lock... [2025-03-25 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:06:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:07:05 [end_date_ymd] => 2025-03-25 10:07:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:07:05' and `end` < '2025-03-25 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-03-25 10:07:19] Production.INFO: count ==2778 [2025-03-25 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:07:05 - End Time 2025-03-25 10:07:05 [2025-03-25 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758773', 'tblTempUsageDetail_20' ) start [2025-03-25 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758773', 'tblTempUsageDetail_20' ) end [2025-03-25 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758773', 'tblTempVendorCDR_20' ) start [2025-03-25 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758773', 'tblTempVendorCDR_20' ) end [2025-03-25 10:07:20] Production.INFO: ProcessCDR(1,14758773,1,1,2) [2025-03-25 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758773', 'tblTempUsageDetail_20' ) start [2025-03-25 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758773', 'tblTempUsageDetail_20' ) end [2025-03-25 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:07:26] Production.INFO: ==29088== Releasing lock... [2025-03-25 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:07:26] Production.INFO: 49 MB #Memory Used# [2025-03-25 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:08:05 [end_date_ymd] => 2025-03-25 10:08:05 [RateCDR] => 1 ) [2025-03-25 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:08:05' and `end` < '2025-03-25 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:08:18] Production.INFO: count ==2788 [2025-03-25 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:08:05 - End Time 2025-03-25 10:08:05 [2025-03-25 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758778', 'tblTempUsageDetail_20' ) start [2025-03-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758778', 'tblTempUsageDetail_20' ) end [2025-03-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758778', 'tblTempVendorCDR_20' ) start [2025-03-25 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758778', 'tblTempVendorCDR_20' ) end [2025-03-25 10:08:19] Production.INFO: ProcessCDR(1,14758778,1,1,2) [2025-03-25 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758778', 'tblTempUsageDetail_20' ) start [2025-03-25 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758778', 'tblTempUsageDetail_20' ) end [2025-03-25 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:08:25] Production.INFO: ==29179== Releasing lock... [2025-03-25 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:08:25] Production.INFO: 49 MB #Memory Used# [2025-03-25 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:09:05 [end_date_ymd] => 2025-03-25 10:09:05 [RateCDR] => 1 ) [2025-03-25 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:09:05' and `end` < '2025-03-25 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:09:18] Production.INFO: count ==2809 [2025-03-25 10:09:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:09:05 - End Time 2025-03-25 10:09:05 [2025-03-25 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758783', 'tblTempUsageDetail_20' ) start [2025-03-25 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758783', 'tblTempUsageDetail_20' ) end [2025-03-25 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758783', 'tblTempVendorCDR_20' ) start [2025-03-25 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758783', 'tblTempVendorCDR_20' ) end [2025-03-25 10:09:20] Production.INFO: ProcessCDR(1,14758783,1,1,2) [2025-03-25 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758783', 'tblTempUsageDetail_20' ) start [2025-03-25 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758783', 'tblTempUsageDetail_20' ) end [2025-03-25 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:09:25] Production.INFO: ==29266== Releasing lock... [2025-03-25 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:09:25] Production.INFO: 49 MB #Memory Used# [2025-03-25 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:10:06 [end_date_ymd] => 2025-03-25 10:10:06 [RateCDR] => 1 ) [2025-03-25 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:10:06' and `end` < '2025-03-25 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:10:19] Production.INFO: count ==2833 [2025-03-25 10:10:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:10:06 - End Time 2025-03-25 10:10:06 [2025-03-25 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758788', 'tblTempUsageDetail_20' ) start [2025-03-25 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758788', 'tblTempUsageDetail_20' ) end [2025-03-25 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758788', 'tblTempVendorCDR_20' ) start [2025-03-25 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758788', 'tblTempVendorCDR_20' ) end [2025-03-25 10:10:21] Production.INFO: ProcessCDR(1,14758788,1,1,2) [2025-03-25 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758788', 'tblTempUsageDetail_20' ) start [2025-03-25 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758788', 'tblTempUsageDetail_20' ) end [2025-03-25 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:10:26] Production.INFO: ==29358== Releasing lock... [2025-03-25 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:10:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-25 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:11:06 [end_date_ymd] => 2025-03-25 10:11:06 [RateCDR] => 1 ) [2025-03-25 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:11:06' and `end` < '2025-03-25 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:11:18] Production.INFO: count ==2944 [2025-03-25 10:11:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:11:06 - End Time 2025-03-25 10:11:06 [2025-03-25 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758794', 'tblTempUsageDetail_20' ) start [2025-03-25 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758794', 'tblTempUsageDetail_20' ) end [2025-03-25 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758794', 'tblTempVendorCDR_20' ) start [2025-03-25 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758794', 'tblTempVendorCDR_20' ) end [2025-03-25 10:11:20] Production.INFO: ProcessCDR(1,14758794,1,1,2) [2025-03-25 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758794', 'tblTempUsageDetail_20' ) start [2025-03-25 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758794', 'tblTempUsageDetail_20' ) end [2025-03-25 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:11:25] Production.INFO: ==29453== Releasing lock... [2025-03-25 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:11:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-25 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:12:06 [end_date_ymd] => 2025-03-25 10:12:06 [RateCDR] => 1 ) [2025-03-25 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:12:06' and `end` < '2025-03-25 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:12:18] Production.INFO: count ==2962 [2025-03-25 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:12:06 - End Time 2025-03-25 10:12:06 [2025-03-25 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758799', 'tblTempUsageDetail_20' ) start [2025-03-25 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758799', 'tblTempUsageDetail_20' ) end [2025-03-25 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758799', 'tblTempVendorCDR_20' ) start [2025-03-25 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758799', 'tblTempVendorCDR_20' ) end [2025-03-25 10:12:20] Production.INFO: ProcessCDR(1,14758799,1,1,2) [2025-03-25 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758799', 'tblTempUsageDetail_20' ) start [2025-03-25 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758799', 'tblTempUsageDetail_20' ) end [2025-03-25 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:12:24] Production.INFO: ==29544== Releasing lock... [2025-03-25 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:12:24] Production.INFO: 50 MB #Memory Used# [2025-03-25 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:13:05 [end_date_ymd] => 2025-03-25 10:13:05 [RateCDR] => 1 ) [2025-03-25 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:13:05' and `end` < '2025-03-25 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:13:19] Production.INFO: count ==2969 [2025-03-25 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:13:05 - End Time 2025-03-25 10:13:05 [2025-03-25 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758804', 'tblTempUsageDetail_20' ) start [2025-03-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758804', 'tblTempUsageDetail_20' ) end [2025-03-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758804', 'tblTempVendorCDR_20' ) start [2025-03-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758804', 'tblTempVendorCDR_20' ) end [2025-03-25 10:13:20] Production.INFO: ProcessCDR(1,14758804,1,1,2) [2025-03-25 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758804', 'tblTempUsageDetail_20' ) start [2025-03-25 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758804', 'tblTempUsageDetail_20' ) end [2025-03-25 10:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:13:26] Production.INFO: ==29636== Releasing lock... [2025-03-25 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:13:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-25 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:14:06 [end_date_ymd] => 2025-03-25 10:14:06 [RateCDR] => 1 ) [2025-03-25 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:14:06' and `end` < '2025-03-25 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:14:19] Production.INFO: count ==2975 [2025-03-25 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:14:06 - End Time 2025-03-25 10:14:06 [2025-03-25 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758809', 'tblTempUsageDetail_20' ) start [2025-03-25 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758809', 'tblTempUsageDetail_20' ) end [2025-03-25 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758809', 'tblTempVendorCDR_20' ) start [2025-03-25 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758809', 'tblTempVendorCDR_20' ) end [2025-03-25 10:14:20] Production.INFO: ProcessCDR(1,14758809,1,1,2) [2025-03-25 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758809', 'tblTempUsageDetail_20' ) start [2025-03-25 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758809', 'tblTempUsageDetail_20' ) end [2025-03-25 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:14:26] Production.INFO: ==29720== Releasing lock... [2025-03-25 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:14:26] Production.INFO: 50 MB #Memory Used# [2025-03-25 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:15:06 [end_date_ymd] => 2025-03-25 10:15:06 [RateCDR] => 1 ) [2025-03-25 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:15:06' and `end` < '2025-03-25 10: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-03-25 10:15:19] Production.INFO: count ==2982 [2025-03-25 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:15:06 - End Time 2025-03-25 10:15:06 [2025-03-25 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758814', 'tblTempUsageDetail_20' ) start [2025-03-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758814', 'tblTempUsageDetail_20' ) end [2025-03-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758814', 'tblTempVendorCDR_20' ) start [2025-03-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758814', 'tblTempVendorCDR_20' ) end [2025-03-25 10:15:20] Production.INFO: ProcessCDR(1,14758814,1,1,2) [2025-03-25 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758814', 'tblTempUsageDetail_20' ) start [2025-03-25 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758814', 'tblTempUsageDetail_20' ) end [2025-03-25 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:15:26] Production.INFO: ==29806== Releasing lock... [2025-03-25 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:15:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-25 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:16:05 [end_date_ymd] => 2025-03-25 10:16:05 [RateCDR] => 1 ) [2025-03-25 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:16:05' and `end` < '2025-03-25 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:16:18] Production.INFO: count ==2999 [2025-03-25 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:16:05 - End Time 2025-03-25 10:16:05 [2025-03-25 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758819', 'tblTempUsageDetail_20' ) start [2025-03-25 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758819', 'tblTempUsageDetail_20' ) end [2025-03-25 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758819', 'tblTempVendorCDR_20' ) start [2025-03-25 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758819', 'tblTempVendorCDR_20' ) end [2025-03-25 10:16:20] Production.INFO: ProcessCDR(1,14758819,1,1,2) [2025-03-25 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758819', 'tblTempUsageDetail_20' ) start [2025-03-25 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758819', 'tblTempUsageDetail_20' ) end [2025-03-25 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:16:25] Production.INFO: ==29892== Releasing lock... [2025-03-25 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:16:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-25 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:17:05 [end_date_ymd] => 2025-03-25 10:17:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:17:05' and `end` < '2025-03-25 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-03-25 10:17:18] Production.INFO: count ==3022 [2025-03-25 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:17:05 - End Time 2025-03-25 10:17:05 [2025-03-25 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758824', 'tblTempUsageDetail_20' ) start [2025-03-25 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758824', 'tblTempUsageDetail_20' ) end [2025-03-25 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758824', 'tblTempVendorCDR_20' ) start [2025-03-25 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758824', 'tblTempVendorCDR_20' ) end [2025-03-25 10:17:20] Production.INFO: ProcessCDR(1,14758824,1,1,2) [2025-03-25 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758824', 'tblTempUsageDetail_20' ) start [2025-03-25 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758824', 'tblTempUsageDetail_20' ) end [2025-03-25 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:17:26] Production.INFO: ==29976== Releasing lock... [2025-03-25 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:17:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-25 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:18:05 [end_date_ymd] => 2025-03-25 10:18:05 [RateCDR] => 1 ) [2025-03-25 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:18:05' and `end` < '2025-03-25 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:18:18] Production.INFO: count ==3039 [2025-03-25 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:18:05 - End Time 2025-03-25 10:18:05 [2025-03-25 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758829', 'tblTempUsageDetail_20' ) start [2025-03-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758829', 'tblTempUsageDetail_20' ) end [2025-03-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758829', 'tblTempVendorCDR_20' ) start [2025-03-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758829', 'tblTempVendorCDR_20' ) end [2025-03-25 10:18:20] Production.INFO: ProcessCDR(1,14758829,1,1,2) [2025-03-25 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758829', 'tblTempUsageDetail_20' ) start [2025-03-25 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758829', 'tblTempUsageDetail_20' ) end [2025-03-25 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:18:25] Production.INFO: ==30064== Releasing lock... [2025-03-25 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:18:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-25 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:19:05 [end_date_ymd] => 2025-03-25 10:19:05 [RateCDR] => 1 ) [2025-03-25 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:19:05' and `end` < '2025-03-25 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:19:18] Production.INFO: count ==3046 [2025-03-25 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:19:05 - End Time 2025-03-25 10:19:05 [2025-03-25 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758834', 'tblTempUsageDetail_20' ) start [2025-03-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758834', 'tblTempUsageDetail_20' ) end [2025-03-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758834', 'tblTempVendorCDR_20' ) start [2025-03-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758834', 'tblTempVendorCDR_20' ) end [2025-03-25 10:19:19] Production.INFO: ProcessCDR(1,14758834,1,1,2) [2025-03-25 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758834', 'tblTempUsageDetail_20' ) start [2025-03-25 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758834', 'tblTempUsageDetail_20' ) end [2025-03-25 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:19:25] Production.INFO: ==30154== Releasing lock... [2025-03-25 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:19:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-25 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:20:06 [end_date_ymd] => 2025-03-25 10:20:06 [RateCDR] => 1 ) [2025-03-25 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:20:06' and `end` < '2025-03-25 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:20:19] Production.INFO: count ==3061 [2025-03-25 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:20:06 - End Time 2025-03-25 10:20:06 [2025-03-25 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758839', 'tblTempUsageDetail_20' ) start [2025-03-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758839', 'tblTempUsageDetail_20' ) end [2025-03-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758839', 'tblTempVendorCDR_20' ) start [2025-03-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758839', 'tblTempVendorCDR_20' ) end [2025-03-25 10:20:20] Production.INFO: ProcessCDR(1,14758839,1,1,2) [2025-03-25 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758839', 'tblTempUsageDetail_20' ) start [2025-03-25 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758839', 'tblTempUsageDetail_20' ) end [2025-03-25 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:20:25] Production.INFO: ==30279== Releasing lock... [2025-03-25 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:20:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-25 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:21:04 [end_date_ymd] => 2025-03-25 10:21:04 [RateCDR] => 1 ) [2025-03-25 10: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-03-25 07:21:04' and `end` < '2025-03-25 10: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-03-25 10:21:17] Production.INFO: count ==3161 [2025-03-25 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:21:04 - End Time 2025-03-25 10:21:04 [2025-03-25 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758845', 'tblTempUsageDetail_20' ) start [2025-03-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758845', 'tblTempUsageDetail_20' ) end [2025-03-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758845', 'tblTempVendorCDR_20' ) start [2025-03-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758845', 'tblTempVendorCDR_20' ) end [2025-03-25 10:21:19] Production.INFO: ProcessCDR(1,14758845,1,1,2) [2025-03-25 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758845', 'tblTempUsageDetail_20' ) start [2025-03-25 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758845', 'tblTempUsageDetail_20' ) end [2025-03-25 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:21:24] Production.INFO: ==30368== Releasing lock... [2025-03-25 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:21:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-25 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:22:06 [end_date_ymd] => 2025-03-25 10:22:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:22:06' and `end` < '2025-03-25 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-03-25 10:22:19] Production.INFO: count ==3171 [2025-03-25 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:22:06 - End Time 2025-03-25 10:22:06 [2025-03-25 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758850', 'tblTempUsageDetail_20' ) start [2025-03-25 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758850', 'tblTempUsageDetail_20' ) end [2025-03-25 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758850', 'tblTempVendorCDR_20' ) start [2025-03-25 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758850', 'tblTempVendorCDR_20' ) end [2025-03-25 10:22:21] Production.INFO: ProcessCDR(1,14758850,1,1,2) [2025-03-25 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758850', 'tblTempUsageDetail_20' ) start [2025-03-25 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758850', 'tblTempUsageDetail_20' ) end [2025-03-25 10:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:22:27] Production.INFO: ==30459== Releasing lock... [2025-03-25 10:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:22:27] Production.INFO: 52.25 MB #Memory Used# [2025-03-25 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:23:06 [end_date_ymd] => 2025-03-25 10:23:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:23:06' and `end` < '2025-03-25 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-03-25 10:23:19] Production.INFO: count ==3186 [2025-03-25 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:23:06 - End Time 2025-03-25 10:23:06 [2025-03-25 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758855', 'tblTempUsageDetail_20' ) start [2025-03-25 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758855', 'tblTempUsageDetail_20' ) end [2025-03-25 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758855', 'tblTempVendorCDR_20' ) start [2025-03-25 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758855', 'tblTempVendorCDR_20' ) end [2025-03-25 10:23:21] Production.INFO: ProcessCDR(1,14758855,1,1,2) [2025-03-25 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758855', 'tblTempUsageDetail_20' ) start [2025-03-25 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758855', 'tblTempUsageDetail_20' ) end [2025-03-25 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:23:26] Production.INFO: ==30549== Releasing lock... [2025-03-25 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:23:26] Production.INFO: 52 MB #Memory Used# [2025-03-25 10:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:24:04 [end_date_ymd] => 2025-03-25 10:24:04 [RateCDR] => 1 ) [2025-03-25 10: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-03-25 07:24:04' and `end` < '2025-03-25 10: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-03-25 10:24:18] Production.INFO: count ==3210 [2025-03-25 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-25 07:24:04 - End Time 2025-03-25 10:24:04 [2025-03-25 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758860', 'tblTempUsageDetail_20' ) start [2025-03-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758860', 'tblTempUsageDetail_20' ) end [2025-03-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758860', 'tblTempVendorCDR_20' ) start [2025-03-25 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758860', 'tblTempVendorCDR_20' ) end [2025-03-25 10:24:19] Production.INFO: ProcessCDR(1,14758860,1,1,2) [2025-03-25 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758860', 'tblTempUsageDetail_20' ) start [2025-03-25 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758860', 'tblTempUsageDetail_20' ) end [2025-03-25 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:24:25] Production.INFO: ==30645== Releasing lock... [2025-03-25 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:24:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:25:05 [end_date_ymd] => 2025-03-25 10:25:05 [RateCDR] => 1 ) [2025-03-25 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:25:05' and `end` < '2025-03-25 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:25:18] Production.INFO: count ==3222 [2025-03-25 10:25:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:25:05 - End Time 2025-03-25 10:25:05 [2025-03-25 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758865', 'tblTempUsageDetail_20' ) start [2025-03-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758865', 'tblTempUsageDetail_20' ) end [2025-03-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758865', 'tblTempVendorCDR_20' ) start [2025-03-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758865', 'tblTempVendorCDR_20' ) end [2025-03-25 10:25:20] Production.INFO: ProcessCDR(1,14758865,1,1,2) [2025-03-25 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758865', 'tblTempUsageDetail_20' ) start [2025-03-25 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758865', 'tblTempUsageDetail_20' ) end [2025-03-25 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:25:25] Production.INFO: ==30738== Releasing lock... [2025-03-25 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:25:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-25 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:26:06 [end_date_ymd] => 2025-03-25 10:26:06 [RateCDR] => 1 ) [2025-03-25 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:26:06' and `end` < '2025-03-25 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:26:19] Production.INFO: count ==3240 [2025-03-25 10:26:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:26:06 - End Time 2025-03-25 10:26:06 [2025-03-25 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758870', 'tblTempUsageDetail_20' ) start [2025-03-25 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758870', 'tblTempUsageDetail_20' ) end [2025-03-25 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758870', 'tblTempVendorCDR_20' ) start [2025-03-25 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758870', 'tblTempVendorCDR_20' ) end [2025-03-25 10:26:21] Production.INFO: ProcessCDR(1,14758870,1,1,2) [2025-03-25 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758870', 'tblTempUsageDetail_20' ) start [2025-03-25 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758870', 'tblTempUsageDetail_20' ) end [2025-03-25 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:26:27] Production.INFO: ==30828== Releasing lock... [2025-03-25 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:26:27] Production.INFO: 52.5 MB #Memory Used# [2025-03-25 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:27:06 [end_date_ymd] => 2025-03-25 10:27:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:27:06' and `end` < '2025-03-25 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-03-25 10:27:19] Production.INFO: count ==3247 [2025-03-25 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:27:06 - End Time 2025-03-25 10:27:06 [2025-03-25 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758875', 'tblTempUsageDetail_20' ) start [2025-03-25 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758875', 'tblTempUsageDetail_20' ) end [2025-03-25 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758875', 'tblTempVendorCDR_20' ) start [2025-03-25 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758875', 'tblTempVendorCDR_20' ) end [2025-03-25 10:27:20] Production.INFO: ProcessCDR(1,14758875,1,1,2) [2025-03-25 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758875', 'tblTempUsageDetail_20' ) start [2025-03-25 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758875', 'tblTempUsageDetail_20' ) end [2025-03-25 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:27:26] Production.INFO: ==30920== Releasing lock... [2025-03-25 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:27:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-25 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:28:05 [end_date_ymd] => 2025-03-25 10:28:05 [RateCDR] => 1 ) [2025-03-25 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:28:05' and `end` < '2025-03-25 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:28:18] Production.INFO: count ==3267 [2025-03-25 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:28:05 - End Time 2025-03-25 10:28:05 [2025-03-25 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758880', 'tblTempUsageDetail_20' ) start [2025-03-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758880', 'tblTempUsageDetail_20' ) end [2025-03-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758880', 'tblTempVendorCDR_20' ) start [2025-03-25 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758880', 'tblTempVendorCDR_20' ) end [2025-03-25 10:28:20] Production.INFO: ProcessCDR(1,14758880,1,1,2) [2025-03-25 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758880', 'tblTempUsageDetail_20' ) start [2025-03-25 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758880', 'tblTempUsageDetail_20' ) end [2025-03-25 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:28:26] Production.INFO: ==31012== Releasing lock... [2025-03-25 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:28:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-25 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:29:06 [end_date_ymd] => 2025-03-25 10:29:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:29:06' and `end` < '2025-03-25 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-03-25 10:29:19] Production.INFO: count ==3277 [2025-03-25 10:29:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:29:06 - End Time 2025-03-25 10:29:06 [2025-03-25 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758885', 'tblTempUsageDetail_20' ) start [2025-03-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758885', 'tblTempUsageDetail_20' ) end [2025-03-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758885', 'tblTempVendorCDR_20' ) start [2025-03-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758885', 'tblTempVendorCDR_20' ) end [2025-03-25 10:29:20] Production.INFO: ProcessCDR(1,14758885,1,1,2) [2025-03-25 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758885', 'tblTempUsageDetail_20' ) start [2025-03-25 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758885', 'tblTempUsageDetail_20' ) end [2025-03-25 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:29:25] Production.INFO: ==31104== Releasing lock... [2025-03-25 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:29:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-25 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:30:06 [end_date_ymd] => 2025-03-25 10:30:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:30:06' and `end` < '2025-03-25 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-03-25 10:30:19] Production.INFO: count ==3292 [2025-03-25 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:30:06 - End Time 2025-03-25 10:30:06 [2025-03-25 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758891', 'tblTempUsageDetail_20' ) start [2025-03-25 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758891', 'tblTempUsageDetail_20' ) end [2025-03-25 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758891', 'tblTempVendorCDR_20' ) start [2025-03-25 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758891', 'tblTempVendorCDR_20' ) end [2025-03-25 10:30:20] Production.INFO: ProcessCDR(1,14758891,1,1,2) [2025-03-25 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758891', 'tblTempUsageDetail_20' ) start [2025-03-25 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758891', 'tblTempUsageDetail_20' ) end [2025-03-25 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:30:26] Production.INFO: ==31199== Releasing lock... [2025-03-25 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:30:26] Production.INFO: 53 MB #Memory Used# [2025-03-25 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:31:06 [end_date_ymd] => 2025-03-25 10:31:06 [RateCDR] => 1 ) [2025-03-25 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:31:06' and `end` < '2025-03-25 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:31:19] Production.INFO: count ==3389 [2025-03-25 10:31:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:31:06 - End Time 2025-03-25 10:31:06 [2025-03-25 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758896', 'tblTempUsageDetail_20' ) start [2025-03-25 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758896', 'tblTempUsageDetail_20' ) end [2025-03-25 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758896', 'tblTempVendorCDR_20' ) start [2025-03-25 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758896', 'tblTempVendorCDR_20' ) end [2025-03-25 10:31:21] Production.INFO: ProcessCDR(1,14758896,1,1,2) [2025-03-25 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758896', 'tblTempUsageDetail_20' ) start [2025-03-25 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758896', 'tblTempUsageDetail_20' ) end [2025-03-25 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:31:26] Production.INFO: ==31295== Releasing lock... [2025-03-25 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:31:26] Production.INFO: 54 MB #Memory Used# [2025-03-25 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:32:05 [end_date_ymd] => 2025-03-25 10:32:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:32:05' and `end` < '2025-03-25 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-03-25 10:32:18] Production.INFO: count ==3407 [2025-03-25 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:32:05 - End Time 2025-03-25 10:32:05 [2025-03-25 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758901', 'tblTempUsageDetail_20' ) start [2025-03-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758901', 'tblTempUsageDetail_20' ) end [2025-03-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758901', 'tblTempVendorCDR_20' ) start [2025-03-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758901', 'tblTempVendorCDR_20' ) end [2025-03-25 10:32:20] Production.INFO: ProcessCDR(1,14758901,1,1,2) [2025-03-25 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758901', 'tblTempUsageDetail_20' ) start [2025-03-25 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758901', 'tblTempUsageDetail_20' ) end [2025-03-25 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:32:26] Production.INFO: ==31386== Releasing lock... [2025-03-25 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:32:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-25 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:33:05 [end_date_ymd] => 2025-03-25 10:33:05 [RateCDR] => 1 ) [2025-03-25 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:33:05' and `end` < '2025-03-25 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:33:18] Production.INFO: count ==3417 [2025-03-25 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:33:05 - End Time 2025-03-25 10:33:05 [2025-03-25 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758906', 'tblTempUsageDetail_20' ) start [2025-03-25 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758906', 'tblTempUsageDetail_20' ) end [2025-03-25 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758906', 'tblTempVendorCDR_20' ) start [2025-03-25 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758906', 'tblTempVendorCDR_20' ) end [2025-03-25 10:33:20] Production.INFO: ProcessCDR(1,14758906,1,1,2) [2025-03-25 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758906', 'tblTempUsageDetail_20' ) start [2025-03-25 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758906', 'tblTempUsageDetail_20' ) end [2025-03-25 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:33:24] Production.INFO: ==31473== Releasing lock... [2025-03-25 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:33:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-25 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:34:05 [end_date_ymd] => 2025-03-25 10:34:05 [RateCDR] => 1 ) [2025-03-25 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:34:05' and `end` < '2025-03-25 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:34:18] Production.INFO: count ==3431 [2025-03-25 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:34:05 - End Time 2025-03-25 10:34:05 [2025-03-25 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758911', 'tblTempUsageDetail_20' ) start [2025-03-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758911', 'tblTempUsageDetail_20' ) end [2025-03-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758911', 'tblTempVendorCDR_20' ) start [2025-03-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758911', 'tblTempVendorCDR_20' ) end [2025-03-25 10:34:20] Production.INFO: ProcessCDR(1,14758911,1,1,2) [2025-03-25 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758911', 'tblTempUsageDetail_20' ) start [2025-03-25 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758911', 'tblTempUsageDetail_20' ) end [2025-03-25 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:34:26] Production.INFO: ==31564== Releasing lock... [2025-03-25 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:34:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-25 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:35:06 [end_date_ymd] => 2025-03-25 10:35:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:35:06' and `end` < '2025-03-25 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-03-25 10:35:19] Production.INFO: count ==3438 [2025-03-25 10:35:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:35:06 - End Time 2025-03-25 10:35:06 [2025-03-25 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758916', 'tblTempUsageDetail_20' ) start [2025-03-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758916', 'tblTempUsageDetail_20' ) end [2025-03-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758916', 'tblTempVendorCDR_20' ) start [2025-03-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758916', 'tblTempVendorCDR_20' ) end [2025-03-25 10:35:21] Production.INFO: ProcessCDR(1,14758916,1,1,2) [2025-03-25 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758916', 'tblTempUsageDetail_20' ) start [2025-03-25 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758916', 'tblTempUsageDetail_20' ) end [2025-03-25 10:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:35:27] Production.INFO: ==31693== Releasing lock... [2025-03-25 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:35:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-25 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:36:06 [end_date_ymd] => 2025-03-25 10:36:06 [RateCDR] => 1 ) [2025-03-25 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:36:06' and `end` < '2025-03-25 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:36:19] Production.INFO: count ==3445 [2025-03-25 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:36:06 - End Time 2025-03-25 10:36:06 [2025-03-25 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758921', 'tblTempUsageDetail_20' ) start [2025-03-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758921', 'tblTempUsageDetail_20' ) end [2025-03-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758921', 'tblTempVendorCDR_20' ) start [2025-03-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758921', 'tblTempVendorCDR_20' ) end [2025-03-25 10:36:20] Production.INFO: ProcessCDR(1,14758921,1,1,2) [2025-03-25 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758921', 'tblTempUsageDetail_20' ) start [2025-03-25 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758921', 'tblTempUsageDetail_20' ) end [2025-03-25 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:36:26] Production.INFO: ==31782== Releasing lock... [2025-03-25 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:36:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-25 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:37:06 [end_date_ymd] => 2025-03-25 10:37:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:37:06' and `end` < '2025-03-25 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-03-25 10:37:19] Production.INFO: count ==3467 [2025-03-25 10:37:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:37:06 - End Time 2025-03-25 10:37:06 [2025-03-25 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758926', 'tblTempUsageDetail_20' ) start [2025-03-25 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758926', 'tblTempUsageDetail_20' ) end [2025-03-25 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758926', 'tblTempVendorCDR_20' ) start [2025-03-25 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758926', 'tblTempVendorCDR_20' ) end [2025-03-25 10:37:21] Production.INFO: ProcessCDR(1,14758926,1,1,2) [2025-03-25 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758926', 'tblTempUsageDetail_20' ) start [2025-03-25 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758926', 'tblTempUsageDetail_20' ) end [2025-03-25 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:37:27] Production.INFO: ==31876== Releasing lock... [2025-03-25 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:37:27] Production.INFO: 53.75 MB #Memory Used# [2025-03-25 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:38:05 [end_date_ymd] => 2025-03-25 10:38:05 [RateCDR] => 1 ) [2025-03-25 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:38:05' and `end` < '2025-03-25 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:38:18] Production.INFO: count ==3481 [2025-03-25 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:38:05 - End Time 2025-03-25 10:38:05 [2025-03-25 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758931', 'tblTempUsageDetail_20' ) start [2025-03-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758931', 'tblTempUsageDetail_20' ) end [2025-03-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758931', 'tblTempVendorCDR_20' ) start [2025-03-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758931', 'tblTempVendorCDR_20' ) end [2025-03-25 10:38:20] Production.INFO: ProcessCDR(1,14758931,1,1,2) [2025-03-25 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758931', 'tblTempUsageDetail_20' ) start [2025-03-25 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758931', 'tblTempUsageDetail_20' ) end [2025-03-25 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:38:26] Production.INFO: ==31973== Releasing lock... [2025-03-25 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:38:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-25 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:39:06 [end_date_ymd] => 2025-03-25 10:39:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:39:06' and `end` < '2025-03-25 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-03-25 10:39:19] Production.INFO: count ==3491 [2025-03-25 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:39:06 - End Time 2025-03-25 10:39:06 [2025-03-25 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758936', 'tblTempUsageDetail_20' ) start [2025-03-25 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758936', 'tblTempUsageDetail_20' ) end [2025-03-25 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758936', 'tblTempVendorCDR_20' ) start [2025-03-25 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758936', 'tblTempVendorCDR_20' ) end [2025-03-25 10:39:20] Production.INFO: ProcessCDR(1,14758936,1,1,2) [2025-03-25 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758936', 'tblTempUsageDetail_20' ) start [2025-03-25 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758936', 'tblTempUsageDetail_20' ) end [2025-03-25 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:39:26] Production.INFO: ==32064== Releasing lock... [2025-03-25 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:39:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-25 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:40:06 [end_date_ymd] => 2025-03-25 10:40:06 [RateCDR] => 1 ) [2025-03-25 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:40:06' and `end` < '2025-03-25 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:40:19] Production.INFO: count ==3519 [2025-03-25 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:40:06 - End Time 2025-03-25 10:40:06 [2025-03-25 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758942', 'tblTempUsageDetail_20' ) start [2025-03-25 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758942', 'tblTempUsageDetail_20' ) end [2025-03-25 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758942', 'tblTempVendorCDR_20' ) start [2025-03-25 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758942', 'tblTempVendorCDR_20' ) end [2025-03-25 10:40:21] Production.INFO: ProcessCDR(1,14758942,1,1,2) [2025-03-25 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758942', 'tblTempUsageDetail_20' ) start [2025-03-25 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758942', 'tblTempUsageDetail_20' ) end [2025-03-25 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:40:27] Production.INFO: ==32155== Releasing lock... [2025-03-25 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:40:27] Production.INFO: 54.25 MB #Memory Used# [2025-03-25 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:41:06 [end_date_ymd] => 2025-03-25 10:41:06 [RateCDR] => 1 ) [2025-03-25 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:41:06' and `end` < '2025-03-25 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:41:19] Production.INFO: count ==3659 [2025-03-25 10:41:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:41:06 - End Time 2025-03-25 10:41:06 [2025-03-25 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758947', 'tblTempUsageDetail_20' ) start [2025-03-25 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758947', 'tblTempUsageDetail_20' ) end [2025-03-25 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758947', 'tblTempVendorCDR_20' ) start [2025-03-25 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758947', 'tblTempVendorCDR_20' ) end [2025-03-25 10:41:21] Production.INFO: ProcessCDR(1,14758947,1,1,2) [2025-03-25 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758947', 'tblTempUsageDetail_20' ) start [2025-03-25 10:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758947', 'tblTempUsageDetail_20' ) end [2025-03-25 10:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:41:27] Production.INFO: ==32250== Releasing lock... [2025-03-25 10:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:41:27] Production.INFO: 55.75 MB #Memory Used# [2025-03-25 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:42:05 [end_date_ymd] => 2025-03-25 10:42:05 [RateCDR] => 1 ) [2025-03-25 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:42:05' and `end` < '2025-03-25 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:42:18] Production.INFO: count ==3696 [2025-03-25 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:42:05 - End Time 2025-03-25 10:42:05 [2025-03-25 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758951', 'tblTempUsageDetail_20' ) start [2025-03-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758951', 'tblTempUsageDetail_20' ) end [2025-03-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758951', 'tblTempVendorCDR_20' ) start [2025-03-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758951', 'tblTempVendorCDR_20' ) end [2025-03-25 10:42:20] Production.INFO: ProcessCDR(1,14758951,1,1,2) [2025-03-25 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758951', 'tblTempUsageDetail_20' ) start [2025-03-25 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758951', 'tblTempUsageDetail_20' ) end [2025-03-25 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:42:26] Production.INFO: ==32338== Releasing lock... [2025-03-25 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:42:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-25 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:43:06 [end_date_ymd] => 2025-03-25 10:43:06 [RateCDR] => 1 ) [2025-03-25 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:43:06' and `end` < '2025-03-25 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:43:19] Production.INFO: count ==3714 [2025-03-25 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:43:06 - End Time 2025-03-25 10:43:06 [2025-03-25 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758957', 'tblTempUsageDetail_20' ) start [2025-03-25 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758957', 'tblTempUsageDetail_20' ) end [2025-03-25 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758957', 'tblTempVendorCDR_20' ) start [2025-03-25 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758957', 'tblTempVendorCDR_20' ) end [2025-03-25 10:43:21] Production.INFO: ProcessCDR(1,14758957,1,1,2) [2025-03-25 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758957', 'tblTempUsageDetail_20' ) start [2025-03-25 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758957', 'tblTempUsageDetail_20' ) end [2025-03-25 10:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:43:27] Production.INFO: ==32429== Releasing lock... [2025-03-25 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:43:27] Production.INFO: 55.75 MB #Memory Used# [2025-03-25 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:44:06 [end_date_ymd] => 2025-03-25 10:44:06 [RateCDR] => 1 ) [2025-03-25 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:44:06' and `end` < '2025-03-25 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:44:19] Production.INFO: count ==3729 [2025-03-25 10:44:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:44:06 - End Time 2025-03-25 10:44:06 [2025-03-25 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758962', 'tblTempUsageDetail_20' ) start [2025-03-25 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758962', 'tblTempUsageDetail_20' ) end [2025-03-25 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758962', 'tblTempVendorCDR_20' ) start [2025-03-25 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758962', 'tblTempVendorCDR_20' ) end [2025-03-25 10:44:21] Production.INFO: ProcessCDR(1,14758962,1,1,2) [2025-03-25 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758962', 'tblTempUsageDetail_20' ) start [2025-03-25 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758962', 'tblTempUsageDetail_20' ) end [2025-03-25 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:44:27] Production.INFO: ==32519== Releasing lock... [2025-03-25 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:44:27] Production.INFO: 55.75 MB #Memory Used# [2025-03-25 10:45:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:45:06 [end_date_ymd] => 2025-03-25 10:45:06 [RateCDR] => 1 ) [2025-03-25 10:45:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:45:06' and `end` < '2025-03-25 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:45:20] Production.INFO: count ==3749 [2025-03-25 10:45:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:45:06 - End Time 2025-03-25 10:45:06 [2025-03-25 10:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758967', 'tblTempUsageDetail_20' ) start [2025-03-25 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758967', 'tblTempUsageDetail_20' ) end [2025-03-25 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758967', 'tblTempVendorCDR_20' ) start [2025-03-25 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758967', 'tblTempVendorCDR_20' ) end [2025-03-25 10:45:21] Production.INFO: ProcessCDR(1,14758967,1,1,2) [2025-03-25 10:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758967', 'tblTempUsageDetail_20' ) start [2025-03-25 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758967', 'tblTempUsageDetail_20' ) end [2025-03-25 10:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:45:27] Production.INFO: ==32613== Releasing lock... [2025-03-25 10:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:45:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-25 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:46:06 [end_date_ymd] => 2025-03-25 10:46:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:46:06' and `end` < '2025-03-25 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-03-25 10:46:19] Production.INFO: count ==3776 [2025-03-25 10:46:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:46:06 - End Time 2025-03-25 10:46:06 [2025-03-25 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758972', 'tblTempUsageDetail_20' ) start [2025-03-25 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758972', 'tblTempUsageDetail_20' ) end [2025-03-25 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758972', 'tblTempVendorCDR_20' ) start [2025-03-25 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758972', 'tblTempVendorCDR_20' ) end [2025-03-25 10:46:21] Production.INFO: ProcessCDR(1,14758972,1,1,2) [2025-03-25 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758972', 'tblTempUsageDetail_20' ) start [2025-03-25 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758972', 'tblTempUsageDetail_20' ) end [2025-03-25 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:46:27] Production.INFO: ==32700== Releasing lock... [2025-03-25 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:46:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-25 10:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:47:07 [end_date_ymd] => 2025-03-25 10:47:07 [RateCDR] => 1 ) [2025-03-25 10:47:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:47:07' and `end` < '2025-03-25 10:47: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-03-25 10:47:20] Production.INFO: count ==3784 [2025-03-25 10:47:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:47:07 - End Time 2025-03-25 10:47:07 [2025-03-25 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758977', 'tblTempUsageDetail_20' ) start [2025-03-25 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758977', 'tblTempUsageDetail_20' ) end [2025-03-25 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758977', 'tblTempVendorCDR_20' ) start [2025-03-25 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758977', 'tblTempVendorCDR_20' ) end [2025-03-25 10:47:22] Production.INFO: ProcessCDR(1,14758977,1,1,2) [2025-03-25 10:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758977', 'tblTempUsageDetail_20' ) start [2025-03-25 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758977', 'tblTempUsageDetail_20' ) end [2025-03-25 10:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:47:27] Production.INFO: ==333== Releasing lock... [2025-03-25 10:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:47:27] Production.INFO: 57 MB #Memory Used# [2025-03-25 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:48:05 [end_date_ymd] => 2025-03-25 10:48:05 [RateCDR] => 1 ) [2025-03-25 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:48:05' and `end` < '2025-03-25 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:48:19] Production.INFO: count ==3793 [2025-03-25 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:48:05 - End Time 2025-03-25 10:48:05 [2025-03-25 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758982', 'tblTempUsageDetail_20' ) start [2025-03-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758982', 'tblTempUsageDetail_20' ) end [2025-03-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758982', 'tblTempVendorCDR_20' ) start [2025-03-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758982', 'tblTempVendorCDR_20' ) end [2025-03-25 10:48:20] Production.INFO: ProcessCDR(1,14758982,1,1,2) [2025-03-25 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758982', 'tblTempUsageDetail_20' ) start [2025-03-25 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758982', 'tblTempUsageDetail_20' ) end [2025-03-25 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:48:26] Production.INFO: ==433== Releasing lock... [2025-03-25 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:48:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-25 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:49:06 [end_date_ymd] => 2025-03-25 10:49:06 [RateCDR] => 1 ) [2025-03-25 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:49:06' and `end` < '2025-03-25 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:49:19] Production.INFO: count ==3805 [2025-03-25 10:49:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:49:06 - End Time 2025-03-25 10:49:06 [2025-03-25 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758987', 'tblTempUsageDetail_20' ) start [2025-03-25 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758987', 'tblTempUsageDetail_20' ) end [2025-03-25 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758987', 'tblTempVendorCDR_20' ) start [2025-03-25 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758987', 'tblTempVendorCDR_20' ) end [2025-03-25 10:49:21] Production.INFO: ProcessCDR(1,14758987,1,1,2) [2025-03-25 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758987', 'tblTempUsageDetail_20' ) start [2025-03-25 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758987', 'tblTempUsageDetail_20' ) end [2025-03-25 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:49:26] Production.INFO: ==531== Releasing lock... [2025-03-25 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:49:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-25 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:50:07 [end_date_ymd] => 2025-03-25 10:50:07 [RateCDR] => 1 ) [2025-03-25 10:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:50:07' and `end` < '2025-03-25 10:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:50:20] Production.INFO: count ==3833 [2025-03-25 10:50:22] Production.ERROR: pbx CDR StartTime 2025-03-25 07:50:07 - End Time 2025-03-25 10:50:07 [2025-03-25 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758993', 'tblTempUsageDetail_20' ) start [2025-03-25 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758993', 'tblTempUsageDetail_20' ) end [2025-03-25 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758993', 'tblTempVendorCDR_20' ) start [2025-03-25 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758993', 'tblTempVendorCDR_20' ) end [2025-03-25 10:50:22] Production.INFO: ProcessCDR(1,14758993,1,1,2) [2025-03-25 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758993', 'tblTempUsageDetail_20' ) start [2025-03-25 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758993', 'tblTempUsageDetail_20' ) end [2025-03-25 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:50:28] Production.INFO: ==634== Releasing lock... [2025-03-25 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:50:28] Production.INFO: 56.75 MB #Memory Used# [2025-03-25 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:51:06 [end_date_ymd] => 2025-03-25 10:51:06 [RateCDR] => 1 ) [2025-03-25 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:51:06' and `end` < '2025-03-25 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:51:19] Production.INFO: count ==3930 [2025-03-25 10:51:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:51:06 - End Time 2025-03-25 10:51:06 [2025-03-25 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758998', 'tblTempUsageDetail_20' ) start [2025-03-25 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14758998', 'tblTempUsageDetail_20' ) end [2025-03-25 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758998', 'tblTempVendorCDR_20' ) start [2025-03-25 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14758998', 'tblTempVendorCDR_20' ) end [2025-03-25 10:51:21] Production.INFO: ProcessCDR(1,14758998,1,1,2) [2025-03-25 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14758998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14758998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14758998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14758998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758998', 'tblTempUsageDetail_20' ) start [2025-03-25 10:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14758998', 'tblTempUsageDetail_20' ) end [2025-03-25 10:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:51:27] Production.INFO: ==798== Releasing lock... [2025-03-25 10:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:51:27] Production.INFO: 57.5 MB #Memory Used# [2025-03-25 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:52:05 [end_date_ymd] => 2025-03-25 10:52:05 [RateCDR] => 1 ) [2025-03-25 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:52:05' and `end` < '2025-03-25 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:52:18] Production.INFO: count ==3938 [2025-03-25 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:52:05 - End Time 2025-03-25 10:52:05 [2025-03-25 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759003', 'tblTempUsageDetail_20' ) start [2025-03-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759003', 'tblTempUsageDetail_20' ) end [2025-03-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759003', 'tblTempVendorCDR_20' ) start [2025-03-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759003', 'tblTempVendorCDR_20' ) end [2025-03-25 10:52:20] Production.INFO: ProcessCDR(1,14759003,1,1,2) [2025-03-25 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759003', 'tblTempUsageDetail_20' ) start [2025-03-25 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759003', 'tblTempUsageDetail_20' ) end [2025-03-25 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:52:26] Production.INFO: ==886== Releasing lock... [2025-03-25 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:52:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-25 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:53:06 [end_date_ymd] => 2025-03-25 10:53:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:53:06' and `end` < '2025-03-25 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-03-25 10:53:19] Production.INFO: count ==4017 [2025-03-25 10:53:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:53:06 - End Time 2025-03-25 10:53:06 [2025-03-25 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759008', 'tblTempUsageDetail_20' ) start [2025-03-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759008', 'tblTempUsageDetail_20' ) end [2025-03-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759008', 'tblTempVendorCDR_20' ) start [2025-03-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759008', 'tblTempVendorCDR_20' ) end [2025-03-25 10:53:21] Production.INFO: ProcessCDR(1,14759008,1,1,2) [2025-03-25 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759008', 'tblTempUsageDetail_20' ) start [2025-03-25 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759008', 'tblTempUsageDetail_20' ) end [2025-03-25 10:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:53:27] Production.INFO: ==979== Releasing lock... [2025-03-25 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:53:27] Production.INFO: 58 MB #Memory Used# [2025-03-25 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:54:06 [end_date_ymd] => 2025-03-25 10:54:06 [RateCDR] => 1 ) [2025-03-25 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:54:06' and `end` < '2025-03-25 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:54:19] Production.INFO: count ==4052 [2025-03-25 10:54:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:54:06 - End Time 2025-03-25 10:54:06 [2025-03-25 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759013', 'tblTempUsageDetail_20' ) start [2025-03-25 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759013', 'tblTempUsageDetail_20' ) end [2025-03-25 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759013', 'tblTempVendorCDR_20' ) start [2025-03-25 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759013', 'tblTempVendorCDR_20' ) end [2025-03-25 10:54:21] Production.INFO: ProcessCDR(1,14759013,1,1,2) [2025-03-25 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759013', 'tblTempUsageDetail_20' ) start [2025-03-25 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759013', 'tblTempUsageDetail_20' ) end [2025-03-25 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:54:27] Production.INFO: ==1069== Releasing lock... [2025-03-25 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:54:27] Production.INFO: 58.5 MB #Memory Used# [2025-03-25 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:55:06 [end_date_ymd] => 2025-03-25 10:55:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:55:06' and `end` < '2025-03-25 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-03-25 10:55:19] Production.INFO: count ==4070 [2025-03-25 10:55:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:55:06 - End Time 2025-03-25 10:55:06 [2025-03-25 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759018', 'tblTempUsageDetail_20' ) start [2025-03-25 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759018', 'tblTempUsageDetail_20' ) end [2025-03-25 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759018', 'tblTempVendorCDR_20' ) start [2025-03-25 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759018', 'tblTempVendorCDR_20' ) end [2025-03-25 10:55:21] Production.INFO: ProcessCDR(1,14759018,1,1,2) [2025-03-25 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759018', 'tblTempUsageDetail_20' ) start [2025-03-25 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759018', 'tblTempUsageDetail_20' ) end [2025-03-25 10:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:55:27] Production.INFO: ==1156== Releasing lock... [2025-03-25 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:55:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-25 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:56:05 [end_date_ymd] => 2025-03-25 10:56:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:56:05' and `end` < '2025-03-25 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-03-25 10:56:19] Production.INFO: count ==4099 [2025-03-25 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-25 07:56:05 - End Time 2025-03-25 10:56:05 [2025-03-25 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759023', 'tblTempUsageDetail_20' ) start [2025-03-25 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759023', 'tblTempUsageDetail_20' ) end [2025-03-25 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759023', 'tblTempVendorCDR_20' ) start [2025-03-25 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759023', 'tblTempVendorCDR_20' ) end [2025-03-25 10:56:21] Production.INFO: ProcessCDR(1,14759023,1,1,2) [2025-03-25 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759023', 'tblTempUsageDetail_20' ) start [2025-03-25 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759023', 'tblTempUsageDetail_20' ) end [2025-03-25 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:56:26] Production.INFO: ==1260== Releasing lock... [2025-03-25 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:56:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:57:05 [end_date_ymd] => 2025-03-25 10:57:05 [RateCDR] => 1 ) [2025-03-25 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 07:57:05' and `end` < '2025-03-25 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 10:57:19] Production.INFO: count ==4106 [2025-03-25 10:57:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:57:05 - End Time 2025-03-25 10:57:05 [2025-03-25 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759028', 'tblTempUsageDetail_20' ) start [2025-03-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759028', 'tblTempUsageDetail_20' ) end [2025-03-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759028', 'tblTempVendorCDR_20' ) start [2025-03-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759028', 'tblTempVendorCDR_20' ) end [2025-03-25 10:57:21] Production.INFO: ProcessCDR(1,14759028,1,1,2) [2025-03-25 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759028', 'tblTempUsageDetail_20' ) start [2025-03-25 10:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759028', 'tblTempUsageDetail_20' ) end [2025-03-25 10:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:57:27] Production.INFO: ==1353== Releasing lock... [2025-03-25 10:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:57:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:58:05 [end_date_ymd] => 2025-03-25 10:58:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:58:05' and `end` < '2025-03-25 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-03-25 10:58:19] Production.INFO: count ==4115 [2025-03-25 10:58:21] Production.ERROR: pbx CDR StartTime 2025-03-25 07:58:05 - End Time 2025-03-25 10:58:05 [2025-03-25 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759033', 'tblTempUsageDetail_20' ) start [2025-03-25 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759033', 'tblTempUsageDetail_20' ) end [2025-03-25 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759033', 'tblTempVendorCDR_20' ) start [2025-03-25 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759033', 'tblTempVendorCDR_20' ) end [2025-03-25 10:58:21] Production.INFO: ProcessCDR(1,14759033,1,1,2) [2025-03-25 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759033', 'tblTempUsageDetail_20' ) start [2025-03-25 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759033', 'tblTempUsageDetail_20' ) end [2025-03-25 10:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:58:27] Production.INFO: ==1441== Releasing lock... [2025-03-25 10:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:58:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 07:59:06 [end_date_ymd] => 2025-03-25 10:59:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 07:59:06' and `end` < '2025-03-25 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-03-25 10:59:21] Production.INFO: count ==4161 [2025-03-25 10:59:23] Production.ERROR: pbx CDR StartTime 2025-03-25 07:59:06 - End Time 2025-03-25 10:59:06 [2025-03-25 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759038', 'tblTempUsageDetail_20' ) start [2025-03-25 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759038', 'tblTempUsageDetail_20' ) end [2025-03-25 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759038', 'tblTempVendorCDR_20' ) start [2025-03-25 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759038', 'tblTempVendorCDR_20' ) end [2025-03-25 10:59:23] Production.INFO: ProcessCDR(1,14759038,1,1,2) [2025-03-25 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 10:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759038', 'tblTempUsageDetail_20' ) start [2025-03-25 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759038', 'tblTempUsageDetail_20' ) end [2025-03-25 10:59:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 10:59:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 10:59:29] Production.INFO: ==1563== Releasing lock... [2025-03-25 10:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 10:59:29] Production.INFO: 59 MB #Memory Used# [2025-03-25 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:00:06 [end_date_ymd] => 2025-03-25 11:00:06 [RateCDR] => 1 ) [2025-03-25 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:00:06' and `end` < '2025-03-25 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:00:20] Production.INFO: count ==4185 [2025-03-25 11:00:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:00:06 - End Time 2025-03-25 11:00:06 [2025-03-25 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759044', 'tblTempUsageDetail_20' ) start [2025-03-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759044', 'tblTempUsageDetail_20' ) end [2025-03-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759044', 'tblTempVendorCDR_20' ) start [2025-03-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759044', 'tblTempVendorCDR_20' ) end [2025-03-25 11:00:22] Production.INFO: ProcessCDR(1,14759044,1,1,2) [2025-03-25 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759044', 'tblTempUsageDetail_20' ) start [2025-03-25 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759044', 'tblTempUsageDetail_20' ) end [2025-03-25 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:00:28] Production.INFO: ==1661== Releasing lock... [2025-03-25 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:00:28] Production.INFO: 59.5 MB #Memory Used# [2025-03-25 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:01:05 [end_date_ymd] => 2025-03-25 11:01:05 [RateCDR] => 1 ) [2025-03-25 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:01:05' and `end` < '2025-03-25 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:01:19] Production.INFO: count ==4292 [2025-03-25 11:01:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:01:05 - End Time 2025-03-25 11:01:05 [2025-03-25 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759049', 'tblTempUsageDetail_20' ) start [2025-03-25 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759049', 'tblTempUsageDetail_20' ) end [2025-03-25 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759049', 'tblTempVendorCDR_20' ) start [2025-03-25 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759049', 'tblTempVendorCDR_20' ) end [2025-03-25 11:01:21] Production.INFO: ProcessCDR(1,14759049,1,1,2) [2025-03-25 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759049', 'tblTempUsageDetail_20' ) start [2025-03-25 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759049', 'tblTempUsageDetail_20' ) end [2025-03-25 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:01:26] Production.INFO: ==1769== Releasing lock... [2025-03-25 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:01:26] Production.INFO: 60 MB #Memory Used# [2025-03-25 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:02:05 [end_date_ymd] => 2025-03-25 11:02:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:02:05' and `end` < '2025-03-25 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-03-25 11:02:18] Production.INFO: count ==4308 [2025-03-25 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-25 08:02:05 - End Time 2025-03-25 11:02:05 [2025-03-25 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759054', 'tblTempUsageDetail_20' ) start [2025-03-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759054', 'tblTempUsageDetail_20' ) end [2025-03-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759054', 'tblTempVendorCDR_20' ) start [2025-03-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759054', 'tblTempVendorCDR_20' ) end [2025-03-25 11:02:20] Production.INFO: ProcessCDR(1,14759054,1,1,2) [2025-03-25 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759054', 'tblTempUsageDetail_20' ) start [2025-03-25 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759054', 'tblTempUsageDetail_20' ) end [2025-03-25 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:02:26] Production.INFO: ==1946== Releasing lock... [2025-03-25 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:02:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-25 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:03:06 [end_date_ymd] => 2025-03-25 11:03:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:03:06' and `end` < '2025-03-25 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-03-25 11:03:19] Production.INFO: count ==4323 [2025-03-25 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:03:06 - End Time 2025-03-25 11:03:06 [2025-03-25 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759059', 'tblTempUsageDetail_20' ) start [2025-03-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759059', 'tblTempUsageDetail_20' ) end [2025-03-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759059', 'tblTempVendorCDR_20' ) start [2025-03-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759059', 'tblTempVendorCDR_20' ) end [2025-03-25 11:03:21] Production.INFO: ProcessCDR(1,14759059,1,1,2) [2025-03-25 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759059', 'tblTempUsageDetail_20' ) start [2025-03-25 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759059', 'tblTempUsageDetail_20' ) end [2025-03-25 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:03:27] Production.INFO: ==2051== Releasing lock... [2025-03-25 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:03:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-25 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:04:05 [end_date_ymd] => 2025-03-25 11:04:05 [RateCDR] => 1 ) [2025-03-25 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:04:05' and `end` < '2025-03-25 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:04:19] Production.INFO: count ==4355 [2025-03-25 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:04:05 - End Time 2025-03-25 11:04:05 [2025-03-25 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759064', 'tblTempUsageDetail_20' ) start [2025-03-25 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759064', 'tblTempUsageDetail_20' ) end [2025-03-25 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759064', 'tblTempVendorCDR_20' ) start [2025-03-25 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759064', 'tblTempVendorCDR_20' ) end [2025-03-25 11:04:21] Production.INFO: ProcessCDR(1,14759064,1,1,2) [2025-03-25 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759064', 'tblTempUsageDetail_20' ) start [2025-03-25 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759064', 'tblTempUsageDetail_20' ) end [2025-03-25 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:04:27] Production.INFO: ==2152== Releasing lock... [2025-03-25 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:04:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-25 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:05:05 [end_date_ymd] => 2025-03-25 11:05:05 [RateCDR] => 1 ) [2025-03-25 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:05:05' and `end` < '2025-03-25 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:05:19] Production.INFO: count ==4390 [2025-03-25 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:05:05 - End Time 2025-03-25 11:05:05 [2025-03-25 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759069', 'tblTempUsageDetail_20' ) start [2025-03-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759069', 'tblTempUsageDetail_20' ) end [2025-03-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759069', 'tblTempVendorCDR_20' ) start [2025-03-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759069', 'tblTempVendorCDR_20' ) end [2025-03-25 11:05:21] Production.INFO: ProcessCDR(1,14759069,1,1,2) [2025-03-25 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759069', 'tblTempUsageDetail_20' ) start [2025-03-25 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759069', 'tblTempUsageDetail_20' ) end [2025-03-25 11:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:05:27] Production.INFO: ==2336== Releasing lock... [2025-03-25 11:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:05:27] Production.INFO: 60.75 MB #Memory Used# [2025-03-25 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:06:05 [end_date_ymd] => 2025-03-25 11:06:05 [RateCDR] => 1 ) [2025-03-25 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:06:05' and `end` < '2025-03-25 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:06:19] Production.INFO: count ==4431 [2025-03-25 11:06:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:06:05 - End Time 2025-03-25 11:06:05 [2025-03-25 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759074', 'tblTempUsageDetail_20' ) start [2025-03-25 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759074', 'tblTempUsageDetail_20' ) end [2025-03-25 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759074', 'tblTempVendorCDR_20' ) start [2025-03-25 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759074', 'tblTempVendorCDR_20' ) end [2025-03-25 11:06:21] Production.INFO: ProcessCDR(1,14759074,1,1,2) [2025-03-25 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759074', 'tblTempUsageDetail_20' ) start [2025-03-25 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759074', 'tblTempUsageDetail_20' ) end [2025-03-25 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:06:27] Production.INFO: ==2473== Releasing lock... [2025-03-25 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:06:27] Production.INFO: 61 MB #Memory Used# [2025-03-25 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:07:06 [end_date_ymd] => 2025-03-25 11:07:06 [RateCDR] => 1 ) [2025-03-25 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:07:06' and `end` < '2025-03-25 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:07:19] Production.INFO: count ==4430 [2025-03-25 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:07:06 - End Time 2025-03-25 11:07:06 [2025-03-25 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759079', 'tblTempUsageDetail_20' ) start [2025-03-25 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759079', 'tblTempUsageDetail_20' ) end [2025-03-25 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759079', 'tblTempVendorCDR_20' ) start [2025-03-25 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759079', 'tblTempVendorCDR_20' ) end [2025-03-25 11:07:22] Production.INFO: ProcessCDR(1,14759079,1,1,2) [2025-03-25 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759079', 'tblTempUsageDetail_20' ) start [2025-03-25 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759079', 'tblTempUsageDetail_20' ) end [2025-03-25 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:07:26] Production.INFO: ==2576== Releasing lock... [2025-03-25 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:07:26] Production.INFO: 61 MB #Memory Used# [2025-03-25 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:08:05 [end_date_ymd] => 2025-03-25 11:08:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:08:05' and `end` < '2025-03-25 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-03-25 11:08:19] Production.INFO: count ==4456 [2025-03-25 11:08:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:08:05 - End Time 2025-03-25 11:08:05 [2025-03-25 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759084', 'tblTempUsageDetail_20' ) start [2025-03-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759084', 'tblTempUsageDetail_20' ) end [2025-03-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759084', 'tblTempVendorCDR_20' ) start [2025-03-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759084', 'tblTempVendorCDR_20' ) end [2025-03-25 11:08:21] Production.INFO: ProcessCDR(1,14759084,1,1,2) [2025-03-25 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759084', 'tblTempUsageDetail_20' ) start [2025-03-25 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759084', 'tblTempUsageDetail_20' ) end [2025-03-25 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:08:26] Production.INFO: ==2712== Releasing lock... [2025-03-25 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:08:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-25 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:09:06 [end_date_ymd] => 2025-03-25 11:09:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:09:06' and `end` < '2025-03-25 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-03-25 11:09:19] Production.INFO: count ==4481 [2025-03-25 11:09:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:09:06 - End Time 2025-03-25 11:09:06 [2025-03-25 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759089', 'tblTempUsageDetail_20' ) start [2025-03-25 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759089', 'tblTempUsageDetail_20' ) end [2025-03-25 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759089', 'tblTempVendorCDR_20' ) start [2025-03-25 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759089', 'tblTempVendorCDR_20' ) end [2025-03-25 11:09:21] Production.INFO: ProcessCDR(1,14759089,1,1,2) [2025-03-25 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759089', 'tblTempUsageDetail_20' ) start [2025-03-25 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759089', 'tblTempUsageDetail_20' ) end [2025-03-25 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:09:27] Production.INFO: ==2852== Releasing lock... [2025-03-25 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:09:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-25 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:10:06 [end_date_ymd] => 2025-03-25 11:10:06 [RateCDR] => 1 ) [2025-03-25 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:10:06' and `end` < '2025-03-25 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:10:19] Production.INFO: count ==4491 [2025-03-25 11:10:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:10:06 - End Time 2025-03-25 11:10:06 [2025-03-25 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759094', 'tblTempUsageDetail_20' ) start [2025-03-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759094', 'tblTempUsageDetail_20' ) end [2025-03-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759094', 'tblTempVendorCDR_20' ) start [2025-03-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759094', 'tblTempVendorCDR_20' ) end [2025-03-25 11:10:21] Production.INFO: ProcessCDR(1,14759094,1,1,2) [2025-03-25 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759094', 'tblTempUsageDetail_20' ) start [2025-03-25 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759094', 'tblTempUsageDetail_20' ) end [2025-03-25 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:10:27] Production.INFO: ==2945== Releasing lock... [2025-03-25 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:10:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-25 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:11:06 [end_date_ymd] => 2025-03-25 11:11:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:11:06' and `end` < '2025-03-25 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-03-25 11:11:19] Production.INFO: count ==4574 [2025-03-25 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:11:06 - End Time 2025-03-25 11:11:06 [2025-03-25 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759100', 'tblTempUsageDetail_20' ) start [2025-03-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759100', 'tblTempUsageDetail_20' ) end [2025-03-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759100', 'tblTempVendorCDR_20' ) start [2025-03-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759100', 'tblTempVendorCDR_20' ) end [2025-03-25 11:11:21] Production.INFO: ProcessCDR(1,14759100,1,1,2) [2025-03-25 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759100', 'tblTempUsageDetail_20' ) start [2025-03-25 11:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759100', 'tblTempUsageDetail_20' ) end [2025-03-25 11:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:11:27] Production.INFO: ==3041== Releasing lock... [2025-03-25 11:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:11:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-25 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:12:06 [end_date_ymd] => 2025-03-25 11:12:06 [RateCDR] => 1 ) [2025-03-25 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:12:06' and `end` < '2025-03-25 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:12:19] Production.INFO: count ==4592 [2025-03-25 11:12:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:12:06 - End Time 2025-03-25 11:12:06 [2025-03-25 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759105', 'tblTempUsageDetail_20' ) start [2025-03-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759105', 'tblTempUsageDetail_20' ) end [2025-03-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759105', 'tblTempVendorCDR_20' ) start [2025-03-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759105', 'tblTempVendorCDR_20' ) end [2025-03-25 11:12:21] Production.INFO: ProcessCDR(1,14759105,1,1,2) [2025-03-25 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759105', 'tblTempUsageDetail_20' ) start [2025-03-25 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759105', 'tblTempUsageDetail_20' ) end [2025-03-25 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:12:27] Production.INFO: ==3210== Releasing lock... [2025-03-25 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:12:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-25 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:13:06 [end_date_ymd] => 2025-03-25 11:13:06 [RateCDR] => 1 ) [2025-03-25 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:13:06' and `end` < '2025-03-25 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:13:19] Production.INFO: count ==4622 [2025-03-25 11:13:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:13:06 - End Time 2025-03-25 11:13:06 [2025-03-25 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759110', 'tblTempUsageDetail_20' ) start [2025-03-25 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759110', 'tblTempUsageDetail_20' ) end [2025-03-25 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759110', 'tblTempVendorCDR_20' ) start [2025-03-25 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759110', 'tblTempVendorCDR_20' ) end [2025-03-25 11:13:22] Production.INFO: ProcessCDR(1,14759110,1,1,2) [2025-03-25 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759110', 'tblTempUsageDetail_20' ) start [2025-03-25 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759110', 'tblTempUsageDetail_20' ) end [2025-03-25 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:13:28] Production.INFO: ==3303== Releasing lock... [2025-03-25 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:13:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-25 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:14:06 [end_date_ymd] => 2025-03-25 11:14:06 [RateCDR] => 1 ) [2025-03-25 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:14:06' and `end` < '2025-03-25 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:14:19] Production.INFO: count ==4637 [2025-03-25 11:14:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:14:06 - End Time 2025-03-25 11:14:06 [2025-03-25 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759115', 'tblTempUsageDetail_20' ) start [2025-03-25 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759115', 'tblTempUsageDetail_20' ) end [2025-03-25 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759115', 'tblTempVendorCDR_20' ) start [2025-03-25 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759115', 'tblTempVendorCDR_20' ) end [2025-03-25 11:14:22] Production.INFO: ProcessCDR(1,14759115,1,1,2) [2025-03-25 11:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759115', 'tblTempUsageDetail_20' ) start [2025-03-25 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759115', 'tblTempUsageDetail_20' ) end [2025-03-25 11:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:14:28] Production.INFO: ==3394== Releasing lock... [2025-03-25 11:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:14:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-25 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:15:06 [end_date_ymd] => 2025-03-25 11:15:06 [RateCDR] => 1 ) [2025-03-25 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:15:06' and `end` < '2025-03-25 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:15:20] Production.INFO: count ==4673 [2025-03-25 11:15:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:15:06 - End Time 2025-03-25 11:15:06 [2025-03-25 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759120', 'tblTempUsageDetail_20' ) start [2025-03-25 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759120', 'tblTempUsageDetail_20' ) end [2025-03-25 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759120', 'tblTempVendorCDR_20' ) start [2025-03-25 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759120', 'tblTempVendorCDR_20' ) end [2025-03-25 11:15:22] Production.INFO: ProcessCDR(1,14759120,1,1,2) [2025-03-25 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759120', 'tblTempUsageDetail_20' ) start [2025-03-25 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759120', 'tblTempUsageDetail_20' ) end [2025-03-25 11:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:15:28] Production.INFO: ==3570== Releasing lock... [2025-03-25 11:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:15:28] Production.INFO: 63 MB #Memory Used# [2025-03-25 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:16:06 [end_date_ymd] => 2025-03-25 11:16:06 [RateCDR] => 1 ) [2025-03-25 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:16:06' and `end` < '2025-03-25 11: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-03-25 11:16:19] Production.INFO: count ==4689 [2025-03-25 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:16:06 - End Time 2025-03-25 11:16:06 [2025-03-25 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759125', 'tblTempUsageDetail_20' ) start [2025-03-25 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759125', 'tblTempUsageDetail_20' ) end [2025-03-25 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759125', 'tblTempVendorCDR_20' ) start [2025-03-25 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759125', 'tblTempVendorCDR_20' ) end [2025-03-25 11:16:21] Production.INFO: ProcessCDR(1,14759125,1,1,2) [2025-03-25 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759125', 'tblTempUsageDetail_20' ) start [2025-03-25 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759125', 'tblTempUsageDetail_20' ) end [2025-03-25 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:16:27] Production.INFO: ==3672== Releasing lock... [2025-03-25 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:16:27] Production.INFO: 63 MB #Memory Used# [2025-03-25 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:17:06 [end_date_ymd] => 2025-03-25 11:17:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:17:06' and `end` < '2025-03-25 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-03-25 11:17:20] Production.INFO: count ==4701 [2025-03-25 11:17:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:17:06 - End Time 2025-03-25 11:17:06 [2025-03-25 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759130', 'tblTempUsageDetail_20' ) start [2025-03-25 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759130', 'tblTempUsageDetail_20' ) end [2025-03-25 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759130', 'tblTempVendorCDR_20' ) start [2025-03-25 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759130', 'tblTempVendorCDR_20' ) end [2025-03-25 11:17:22] Production.INFO: ProcessCDR(1,14759130,1,1,2) [2025-03-25 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759130', 'tblTempUsageDetail_20' ) start [2025-03-25 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759130', 'tblTempUsageDetail_20' ) end [2025-03-25 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:17:27] Production.INFO: ==3776== Releasing lock... [2025-03-25 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:17:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-25 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:18:05 [end_date_ymd] => 2025-03-25 11:18:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:18:05' and `end` < '2025-03-25 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:18:19] Production.INFO: count ==4714 [2025-03-25 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:18:05 - End Time 2025-03-25 11:18:05 [2025-03-25 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759135', 'tblTempUsageDetail_20' ) start [2025-03-25 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759135', 'tblTempUsageDetail_20' ) end [2025-03-25 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759135', 'tblTempVendorCDR_20' ) start [2025-03-25 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759135', 'tblTempVendorCDR_20' ) end [2025-03-25 11:18:21] Production.INFO: ProcessCDR(1,14759135,1,1,2) [2025-03-25 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759135', 'tblTempUsageDetail_20' ) start [2025-03-25 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759135', 'tblTempUsageDetail_20' ) end [2025-03-25 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:18:27] Production.INFO: ==3872== Releasing lock... [2025-03-25 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:18:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-25 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:19:06 [end_date_ymd] => 2025-03-25 11:19:06 [RateCDR] => 1 ) [2025-03-25 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:19:06' and `end` < '2025-03-25 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:19:19] Production.INFO: count ==4739 [2025-03-25 11:19:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:19:06 - End Time 2025-03-25 11:19:06 [2025-03-25 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759140', 'tblTempUsageDetail_20' ) start [2025-03-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759140', 'tblTempUsageDetail_20' ) end [2025-03-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759140', 'tblTempVendorCDR_20' ) start [2025-03-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759140', 'tblTempVendorCDR_20' ) end [2025-03-25 11:19:21] Production.INFO: ProcessCDR(1,14759140,1,1,2) [2025-03-25 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759140', 'tblTempUsageDetail_20' ) start [2025-03-25 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759140', 'tblTempUsageDetail_20' ) end [2025-03-25 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:19:28] Production.INFO: ==3974== Releasing lock... [2025-03-25 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:19:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-25 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:20:07 [end_date_ymd] => 2025-03-25 11:20:07 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:20:07' and `end` < '2025-03-25 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-03-25 11:20:20] Production.INFO: count ==4735 [2025-03-25 11:20:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:20:07 - End Time 2025-03-25 11:20:07 [2025-03-25 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759146', 'tblTempUsageDetail_20' ) start [2025-03-25 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759146', 'tblTempUsageDetail_20' ) end [2025-03-25 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759146', 'tblTempVendorCDR_20' ) start [2025-03-25 11:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759146', 'tblTempVendorCDR_20' ) end [2025-03-25 11:20:23] Production.INFO: ProcessCDR(1,14759146,1,1,2) [2025-03-25 11:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759146', 'tblTempUsageDetail_20' ) start [2025-03-25 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759146', 'tblTempUsageDetail_20' ) end [2025-03-25 11:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:20:28] Production.INFO: ==4074== Releasing lock... [2025-03-25 11:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:20:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-25 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:21:06 [end_date_ymd] => 2025-03-25 11:21:06 [RateCDR] => 1 ) [2025-03-25 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:21:06' and `end` < '2025-03-25 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:21:19] Production.INFO: count ==4821 [2025-03-25 11:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:21:06 - End Time 2025-03-25 11:21:06 [2025-03-25 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759151', 'tblTempUsageDetail_20' ) start [2025-03-25 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759151', 'tblTempUsageDetail_20' ) end [2025-03-25 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759151', 'tblTempVendorCDR_20' ) start [2025-03-25 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759151', 'tblTempVendorCDR_20' ) end [2025-03-25 11:21:22] Production.INFO: ProcessCDR(1,14759151,1,1,2) [2025-03-25 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759151', 'tblTempUsageDetail_20' ) start [2025-03-25 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759151', 'tblTempUsageDetail_20' ) end [2025-03-25 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:21:28] Production.INFO: ==4172== Releasing lock... [2025-03-25 11:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:21:28] Production.INFO: 64 MB #Memory Used# [2025-03-25 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:22:05 [end_date_ymd] => 2025-03-25 11:22:05 [RateCDR] => 1 ) [2025-03-25 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:22:05' and `end` < '2025-03-25 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:22:18] Production.INFO: count ==4828 [2025-03-25 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:22:05 - End Time 2025-03-25 11:22:05 [2025-03-25 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759156', 'tblTempUsageDetail_20' ) start [2025-03-25 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759156', 'tblTempUsageDetail_20' ) end [2025-03-25 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759156', 'tblTempVendorCDR_20' ) start [2025-03-25 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759156', 'tblTempVendorCDR_20' ) end [2025-03-25 11:22:21] Production.INFO: ProcessCDR(1,14759156,1,1,2) [2025-03-25 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759156', 'tblTempUsageDetail_20' ) start [2025-03-25 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759156', 'tblTempUsageDetail_20' ) end [2025-03-25 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:22:26] Production.INFO: ==4301== Releasing lock... [2025-03-25 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:22:26] Production.INFO: 64 MB #Memory Used# [2025-03-25 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:23:06 [end_date_ymd] => 2025-03-25 11:23:06 [RateCDR] => 1 ) [2025-03-25 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:23:06' and `end` < '2025-03-25 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:23:19] Production.INFO: count ==4837 [2025-03-25 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:23:06 - End Time 2025-03-25 11:23:06 [2025-03-25 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759161', 'tblTempUsageDetail_20' ) start [2025-03-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759161', 'tblTempUsageDetail_20' ) end [2025-03-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759161', 'tblTempVendorCDR_20' ) start [2025-03-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759161', 'tblTempVendorCDR_20' ) end [2025-03-25 11:23:21] Production.INFO: ProcessCDR(1,14759161,1,1,2) [2025-03-25 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759161', 'tblTempUsageDetail_20' ) start [2025-03-25 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759161', 'tblTempUsageDetail_20' ) end [2025-03-25 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:23:27] Production.INFO: ==4399== Releasing lock... [2025-03-25 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:23:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-25 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:24:06 [end_date_ymd] => 2025-03-25 11:24:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:24:06' and `end` < '2025-03-25 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-03-25 11:24:19] Production.INFO: count ==4839 [2025-03-25 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:24:06 - End Time 2025-03-25 11:24:06 [2025-03-25 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759166', 'tblTempUsageDetail_20' ) start [2025-03-25 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759166', 'tblTempUsageDetail_20' ) end [2025-03-25 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759166', 'tblTempVendorCDR_20' ) start [2025-03-25 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759166', 'tblTempVendorCDR_20' ) end [2025-03-25 11:24:21] Production.INFO: ProcessCDR(1,14759166,1,1,2) [2025-03-25 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759166', 'tblTempUsageDetail_20' ) start [2025-03-25 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759166', 'tblTempUsageDetail_20' ) end [2025-03-25 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:24:25] Production.INFO: ==4501== Releasing lock... [2025-03-25 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:24:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-25 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:25:06 [end_date_ymd] => 2025-03-25 11:25:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:25:06' and `end` < '2025-03-25 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-03-25 11:25:20] Production.INFO: count ==4861 [2025-03-25 11:25:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:25:06 - End Time 2025-03-25 11:25:06 [2025-03-25 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759171', 'tblTempUsageDetail_20' ) start [2025-03-25 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759171', 'tblTempUsageDetail_20' ) end [2025-03-25 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759171', 'tblTempVendorCDR_20' ) start [2025-03-25 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759171', 'tblTempVendorCDR_20' ) end [2025-03-25 11:25:22] Production.INFO: ProcessCDR(1,14759171,1,1,2) [2025-03-25 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759171', 'tblTempUsageDetail_20' ) start [2025-03-25 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759171', 'tblTempUsageDetail_20' ) end [2025-03-25 11:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:25:28] Production.INFO: ==4617== Releasing lock... [2025-03-25 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:25:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-25 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:26:06 [end_date_ymd] => 2025-03-25 11:26:06 [RateCDR] => 1 ) [2025-03-25 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:26:06' and `end` < '2025-03-25 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:26:19] Production.INFO: count ==4863 [2025-03-25 11:26:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:26:06 - End Time 2025-03-25 11:26:06 [2025-03-25 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759176', 'tblTempUsageDetail_20' ) start [2025-03-25 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759176', 'tblTempUsageDetail_20' ) end [2025-03-25 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759176', 'tblTempVendorCDR_20' ) start [2025-03-25 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759176', 'tblTempVendorCDR_20' ) end [2025-03-25 11:26:22] Production.INFO: ProcessCDR(1,14759176,1,1,2) [2025-03-25 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759176', 'tblTempUsageDetail_20' ) start [2025-03-25 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759176', 'tblTempUsageDetail_20' ) end [2025-03-25 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:26:27] Production.INFO: ==4717== Releasing lock... [2025-03-25 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:26:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-25 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:27:06 [end_date_ymd] => 2025-03-25 11:27:06 [RateCDR] => 1 ) [2025-03-25 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:27:06' and `end` < '2025-03-25 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:27:20] Production.INFO: count ==4875 [2025-03-25 11:27:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:27:06 - End Time 2025-03-25 11:27:06 [2025-03-25 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759181', 'tblTempUsageDetail_20' ) start [2025-03-25 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759181', 'tblTempUsageDetail_20' ) end [2025-03-25 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759181', 'tblTempVendorCDR_20' ) start [2025-03-25 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759181', 'tblTempVendorCDR_20' ) end [2025-03-25 11:27:22] Production.INFO: ProcessCDR(1,14759181,1,1,2) [2025-03-25 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759181', 'tblTempUsageDetail_20' ) start [2025-03-25 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759181', 'tblTempUsageDetail_20' ) end [2025-03-25 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:27:28] Production.INFO: ==4815== Releasing lock... [2025-03-25 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:27:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-25 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:28:06 [end_date_ymd] => 2025-03-25 11:28:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:28:06' and `end` < '2025-03-25 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-03-25 11:28:20] Production.INFO: count ==4901 [2025-03-25 11:28:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:28:06 - End Time 2025-03-25 11:28:06 [2025-03-25 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759186', 'tblTempUsageDetail_20' ) start [2025-03-25 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759186', 'tblTempUsageDetail_20' ) end [2025-03-25 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759186', 'tblTempVendorCDR_20' ) start [2025-03-25 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759186', 'tblTempVendorCDR_20' ) end [2025-03-25 11:28:22] Production.INFO: ProcessCDR(1,14759186,1,1,2) [2025-03-25 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759186', 'tblTempUsageDetail_20' ) start [2025-03-25 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759186', 'tblTempUsageDetail_20' ) end [2025-03-25 11:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:28:28] Production.INFO: ==4920== Releasing lock... [2025-03-25 11:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:28:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-25 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:29:06 [end_date_ymd] => 2025-03-25 11:29:06 [RateCDR] => 1 ) [2025-03-25 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:29:06' and `end` < '2025-03-25 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:29:20] Production.INFO: count ==4920 [2025-03-25 11:29:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:29:06 - End Time 2025-03-25 11:29:06 [2025-03-25 11:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759191', 'tblTempUsageDetail_20' ) start [2025-03-25 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759191', 'tblTempUsageDetail_20' ) end [2025-03-25 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759191', 'tblTempVendorCDR_20' ) start [2025-03-25 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759191', 'tblTempVendorCDR_20' ) end [2025-03-25 11:29:22] Production.INFO: ProcessCDR(1,14759191,1,1,2) [2025-03-25 11:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759191', 'tblTempUsageDetail_20' ) start [2025-03-25 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759191', 'tblTempUsageDetail_20' ) end [2025-03-25 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:29:28] Production.INFO: ==5018== Releasing lock... [2025-03-25 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:29:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-25 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:30:07 [end_date_ymd] => 2025-03-25 11:30:07 [RateCDR] => 1 ) [2025-03-25 11: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-03-25 08:30:07' and `end` < '2025-03-25 11: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-03-25 11:30:20] Production.INFO: count ==4937 [2025-03-25 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:30:07 - End Time 2025-03-25 11:30:07 [2025-03-25 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759197', 'tblTempUsageDetail_20' ) start [2025-03-25 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759197', 'tblTempUsageDetail_20' ) end [2025-03-25 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759197', 'tblTempVendorCDR_20' ) start [2025-03-25 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759197', 'tblTempVendorCDR_20' ) end [2025-03-25 11:30:23] Production.INFO: ProcessCDR(1,14759197,1,1,2) [2025-03-25 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759197', 'tblTempUsageDetail_20' ) start [2025-03-25 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759197', 'tblTempUsageDetail_20' ) end [2025-03-25 11:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:30:29] Production.INFO: ==5124== Releasing lock... [2025-03-25 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:30:29] Production.INFO: 65 MB #Memory Used# [2025-03-25 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:31:06 [end_date_ymd] => 2025-03-25 11:31:06 [RateCDR] => 1 ) [2025-03-25 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:31:06' and `end` < '2025-03-25 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:31:19] Production.INFO: count ==5039 [2025-03-25 11:31:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:31:06 - End Time 2025-03-25 11:31:06 [2025-03-25 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759202', 'tblTempUsageDetail_20' ) start [2025-03-25 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759202', 'tblTempUsageDetail_20' ) end [2025-03-25 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759202', 'tblTempVendorCDR_20' ) start [2025-03-25 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759202', 'tblTempVendorCDR_20' ) end [2025-03-25 11:31:22] Production.INFO: ProcessCDR(1,14759202,1,1,2) [2025-03-25 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759202', 'tblTempUsageDetail_20' ) start [2025-03-25 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759202', 'tblTempUsageDetail_20' ) end [2025-03-25 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:31:28] Production.INFO: ==5242== Releasing lock... [2025-03-25 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:31:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:32:06 [end_date_ymd] => 2025-03-25 11:32:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:32:06' and `end` < '2025-03-25 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-03-25 11:32:19] Production.INFO: count ==5060 [2025-03-25 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:32:06 - End Time 2025-03-25 11:32:06 [2025-03-25 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759207', 'tblTempUsageDetail_20' ) start [2025-03-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759207', 'tblTempUsageDetail_20' ) end [2025-03-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759207', 'tblTempVendorCDR_20' ) start [2025-03-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759207', 'tblTempVendorCDR_20' ) end [2025-03-25 11:32:21] Production.INFO: ProcessCDR(1,14759207,1,1,2) [2025-03-25 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759207', 'tblTempUsageDetail_20' ) start [2025-03-25 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759207', 'tblTempUsageDetail_20' ) end [2025-03-25 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:32:27] Production.INFO: ==5350== Releasing lock... [2025-03-25 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:32:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:33:06 [end_date_ymd] => 2025-03-25 11:33:06 [RateCDR] => 1 ) [2025-03-25 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:33:06' and `end` < '2025-03-25 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:33:19] Production.INFO: count ==5070 [2025-03-25 11:33:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:33:06 - End Time 2025-03-25 11:33:06 [2025-03-25 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759212', 'tblTempUsageDetail_20' ) start [2025-03-25 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759212', 'tblTempUsageDetail_20' ) end [2025-03-25 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759212', 'tblTempVendorCDR_20' ) start [2025-03-25 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759212', 'tblTempVendorCDR_20' ) end [2025-03-25 11:33:22] Production.INFO: ProcessCDR(1,14759212,1,1,2) [2025-03-25 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759212', 'tblTempUsageDetail_20' ) start [2025-03-25 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759212', 'tblTempUsageDetail_20' ) end [2025-03-25 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:33:27] Production.INFO: ==5447== Releasing lock... [2025-03-25 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:33:27] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:34:06 [end_date_ymd] => 2025-03-25 11:34:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:34:06' and `end` < '2025-03-25 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-03-25 11:34:20] Production.INFO: count ==5067 [2025-03-25 11:34:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:34:06 - End Time 2025-03-25 11:34:06 [2025-03-25 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759217', 'tblTempUsageDetail_20' ) start [2025-03-25 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759217', 'tblTempUsageDetail_20' ) end [2025-03-25 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759217', 'tblTempVendorCDR_20' ) start [2025-03-25 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759217', 'tblTempVendorCDR_20' ) end [2025-03-25 11:34:22] Production.INFO: ProcessCDR(1,14759217,1,1,2) [2025-03-25 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759217', 'tblTempUsageDetail_20' ) start [2025-03-25 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759217', 'tblTempUsageDetail_20' ) end [2025-03-25 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:34:28] Production.INFO: ==5543== Releasing lock... [2025-03-25 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:34:28] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:35:05 [end_date_ymd] => 2025-03-25 11:35:05 [RateCDR] => 1 ) [2025-03-25 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:35:05' and `end` < '2025-03-25 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:35:19] Production.INFO: count ==5059 [2025-03-25 11:35:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:35:05 - End Time 2025-03-25 11:35:05 [2025-03-25 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759222', 'tblTempUsageDetail_20' ) start [2025-03-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759222', 'tblTempUsageDetail_20' ) end [2025-03-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759222', 'tblTempVendorCDR_20' ) start [2025-03-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759222', 'tblTempVendorCDR_20' ) end [2025-03-25 11:35:21] Production.INFO: ProcessCDR(1,14759222,1,1,2) [2025-03-25 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759222', 'tblTempUsageDetail_20' ) start [2025-03-25 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759222', 'tblTempUsageDetail_20' ) end [2025-03-25 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:35:25] Production.INFO: ==5641== Releasing lock... [2025-03-25 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:35:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:36:06 [end_date_ymd] => 2025-03-25 11:36:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:36:06' and `end` < '2025-03-25 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-03-25 11:36:19] Production.INFO: count ==5071 [2025-03-25 11:36:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:36:06 - End Time 2025-03-25 11:36:06 [2025-03-25 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759227', 'tblTempUsageDetail_20' ) start [2025-03-25 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759227', 'tblTempUsageDetail_20' ) end [2025-03-25 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759227', 'tblTempVendorCDR_20' ) start [2025-03-25 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759227', 'tblTempVendorCDR_20' ) end [2025-03-25 11:36:22] Production.INFO: ProcessCDR(1,14759227,1,1,2) [2025-03-25 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759227', 'tblTempUsageDetail_20' ) start [2025-03-25 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759227', 'tblTempUsageDetail_20' ) end [2025-03-25 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:36:27] Production.INFO: ==5752== Releasing lock... [2025-03-25 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:36:27] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:37:06 [end_date_ymd] => 2025-03-25 11:37:06 [RateCDR] => 1 ) [2025-03-25 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:37:06' and `end` < '2025-03-25 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:37:19] Production.INFO: count ==5074 [2025-03-25 11:37:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:37:06 - End Time 2025-03-25 11:37:06 [2025-03-25 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759232', 'tblTempUsageDetail_20' ) start [2025-03-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759232', 'tblTempUsageDetail_20' ) end [2025-03-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759232', 'tblTempVendorCDR_20' ) start [2025-03-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759232', 'tblTempVendorCDR_20' ) end [2025-03-25 11:37:21] Production.INFO: ProcessCDR(1,14759232,1,1,2) [2025-03-25 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759232', 'tblTempUsageDetail_20' ) start [2025-03-25 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759232', 'tblTempUsageDetail_20' ) end [2025-03-25 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:37:27] Production.INFO: ==5883== Releasing lock... [2025-03-25 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:37:27] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:38:06 [end_date_ymd] => 2025-03-25 11:38:06 [RateCDR] => 1 ) [2025-03-25 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:38:06' and `end` < '2025-03-25 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:38:19] Production.INFO: count ==5070 [2025-03-25 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:38:06 - End Time 2025-03-25 11:38:06 [2025-03-25 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759237', 'tblTempUsageDetail_20' ) start [2025-03-25 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759237', 'tblTempUsageDetail_20' ) end [2025-03-25 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759237', 'tblTempVendorCDR_20' ) start [2025-03-25 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759237', 'tblTempVendorCDR_20' ) end [2025-03-25 11:38:22] Production.INFO: ProcessCDR(1,14759237,1,1,2) [2025-03-25 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759237', 'tblTempUsageDetail_20' ) start [2025-03-25 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759237', 'tblTempUsageDetail_20' ) end [2025-03-25 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:38:28] Production.INFO: ==5977== Releasing lock... [2025-03-25 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:38:28] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:39:06 [end_date_ymd] => 2025-03-25 11:39:06 [RateCDR] => 1 ) [2025-03-25 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:39:06' and `end` < '2025-03-25 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:39:20] Production.INFO: count ==5070 [2025-03-25 11:39:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:39:06 - End Time 2025-03-25 11:39:06 [2025-03-25 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759242', 'tblTempUsageDetail_20' ) start [2025-03-25 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759242', 'tblTempUsageDetail_20' ) end [2025-03-25 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759242', 'tblTempVendorCDR_20' ) start [2025-03-25 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759242', 'tblTempVendorCDR_20' ) end [2025-03-25 11:39:22] Production.INFO: ProcessCDR(1,14759242,1,1,2) [2025-03-25 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759242', 'tblTempUsageDetail_20' ) start [2025-03-25 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759242', 'tblTempUsageDetail_20' ) end [2025-03-25 11:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:39:28] Production.INFO: ==6073== Releasing lock... [2025-03-25 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:39:28] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:40:06 [end_date_ymd] => 2025-03-25 11:40:06 [RateCDR] => 1 ) [2025-03-25 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:40:06' and `end` < '2025-03-25 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:40:19] Production.INFO: count ==5083 [2025-03-25 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:40:06 - End Time 2025-03-25 11:40:06 [2025-03-25 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759248', 'tblTempUsageDetail_20' ) start [2025-03-25 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759248', 'tblTempUsageDetail_20' ) end [2025-03-25 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759248', 'tblTempVendorCDR_20' ) start [2025-03-25 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759248', 'tblTempVendorCDR_20' ) end [2025-03-25 11:40:22] Production.INFO: ProcessCDR(1,14759248,1,1,2) [2025-03-25 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759248', 'tblTempUsageDetail_20' ) start [2025-03-25 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759248', 'tblTempUsageDetail_20' ) end [2025-03-25 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:40:28] Production.INFO: ==6177== Releasing lock... [2025-03-25 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:40:28] Production.INFO: 66 MB #Memory Used# [2025-03-25 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:41:06 [end_date_ymd] => 2025-03-25 11:41:06 [RateCDR] => 1 ) [2025-03-25 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:41:06' and `end` < '2025-03-25 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:41:20] Production.INFO: count ==5192 [2025-03-25 11:41:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:41:06 - End Time 2025-03-25 11:41:06 [2025-03-25 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759253', 'tblTempUsageDetail_20' ) start [2025-03-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759253', 'tblTempUsageDetail_20' ) end [2025-03-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759253', 'tblTempVendorCDR_20' ) start [2025-03-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759253', 'tblTempVendorCDR_20' ) end [2025-03-25 11:41:22] Production.INFO: ProcessCDR(1,14759253,1,1,2) [2025-03-25 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759253', 'tblTempUsageDetail_20' ) start [2025-03-25 11:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759253', 'tblTempUsageDetail_20' ) end [2025-03-25 11:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:41:28] Production.INFO: ==6274== Releasing lock... [2025-03-25 11:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:41:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-25 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:42:06 [end_date_ymd] => 2025-03-25 11:42:06 [RateCDR] => 1 ) [2025-03-25 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:42:06' and `end` < '2025-03-25 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:42:19] Production.INFO: count ==5189 [2025-03-25 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:42:06 - End Time 2025-03-25 11:42:06 [2025-03-25 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759258', 'tblTempUsageDetail_20' ) start [2025-03-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759258', 'tblTempUsageDetail_20' ) end [2025-03-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759258', 'tblTempVendorCDR_20' ) start [2025-03-25 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759258', 'tblTempVendorCDR_20' ) end [2025-03-25 11:42:21] Production.INFO: ProcessCDR(1,14759258,1,1,2) [2025-03-25 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759258', 'tblTempUsageDetail_20' ) start [2025-03-25 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759258', 'tblTempUsageDetail_20' ) end [2025-03-25 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:42:28] Production.INFO: ==6373== Releasing lock... [2025-03-25 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:42:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-25 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:43:06 [end_date_ymd] => 2025-03-25 11:43:06 [RateCDR] => 1 ) [2025-03-25 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:43:06' and `end` < '2025-03-25 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:43:19] Production.INFO: count ==5198 [2025-03-25 11:43:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:43:06 - End Time 2025-03-25 11:43:06 [2025-03-25 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759263', 'tblTempUsageDetail_20' ) start [2025-03-25 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759263', 'tblTempUsageDetail_20' ) end [2025-03-25 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759263', 'tblTempVendorCDR_20' ) start [2025-03-25 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759263', 'tblTempVendorCDR_20' ) end [2025-03-25 11:43:22] Production.INFO: ProcessCDR(1,14759263,1,1,2) [2025-03-25 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759263', 'tblTempUsageDetail_20' ) start [2025-03-25 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759263', 'tblTempUsageDetail_20' ) end [2025-03-25 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:43:28] Production.INFO: ==6463== Releasing lock... [2025-03-25 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:43:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-25 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:44:06 [end_date_ymd] => 2025-03-25 11:44:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:44:06' and `end` < '2025-03-25 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-03-25 11:44:19] Production.INFO: count ==5213 [2025-03-25 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:44:06 - End Time 2025-03-25 11:44:06 [2025-03-25 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759268', 'tblTempUsageDetail_20' ) start [2025-03-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759268', 'tblTempUsageDetail_20' ) end [2025-03-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759268', 'tblTempVendorCDR_20' ) start [2025-03-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759268', 'tblTempVendorCDR_20' ) end [2025-03-25 11:44:21] Production.INFO: ProcessCDR(1,14759268,1,1,2) [2025-03-25 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759268', 'tblTempUsageDetail_20' ) start [2025-03-25 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759268', 'tblTempUsageDetail_20' ) end [2025-03-25 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:44:27] Production.INFO: ==6560== Releasing lock... [2025-03-25 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:44:27] Production.INFO: 67 MB #Memory Used# [2025-03-25 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:45:06 [end_date_ymd] => 2025-03-25 11:45:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:45:06' and `end` < '2025-03-25 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-03-25 11:45:19] Production.INFO: count ==5217 [2025-03-25 11:45:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:45:06 - End Time 2025-03-25 11:45:06 [2025-03-25 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759273', 'tblTempUsageDetail_20' ) start [2025-03-25 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759273', 'tblTempUsageDetail_20' ) end [2025-03-25 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759273', 'tblTempVendorCDR_20' ) start [2025-03-25 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759273', 'tblTempVendorCDR_20' ) end [2025-03-25 11:45:22] Production.INFO: ProcessCDR(1,14759273,1,1,2) [2025-03-25 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759273', 'tblTempUsageDetail_20' ) start [2025-03-25 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759273', 'tblTempUsageDetail_20' ) end [2025-03-25 11:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:45:28] Production.INFO: ==6660== Releasing lock... [2025-03-25 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:45:28] Production.INFO: 67 MB #Memory Used# [2025-03-25 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:46:06 [end_date_ymd] => 2025-03-25 11:46:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:46:06' and `end` < '2025-03-25 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-03-25 11:46:19] Production.INFO: count ==5226 [2025-03-25 11:46:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:46:06 - End Time 2025-03-25 11:46:06 [2025-03-25 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759278', 'tblTempUsageDetail_20' ) start [2025-03-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759278', 'tblTempUsageDetail_20' ) end [2025-03-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759278', 'tblTempVendorCDR_20' ) start [2025-03-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759278', 'tblTempVendorCDR_20' ) end [2025-03-25 11:46:22] Production.INFO: ProcessCDR(1,14759278,1,1,2) [2025-03-25 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759278', 'tblTempUsageDetail_20' ) start [2025-03-25 11:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759278', 'tblTempUsageDetail_20' ) end [2025-03-25 11:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:46:28] Production.INFO: ==6762== Releasing lock... [2025-03-25 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:46:28] Production.INFO: 67 MB #Memory Used# [2025-03-25 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:47:06 [end_date_ymd] => 2025-03-25 11:47:06 [RateCDR] => 1 ) [2025-03-25 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:47:06' and `end` < '2025-03-25 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:47:20] Production.INFO: count ==5252 [2025-03-25 11:47:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:47:06 - End Time 2025-03-25 11:47:06 [2025-03-25 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759283', 'tblTempUsageDetail_20' ) start [2025-03-25 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759283', 'tblTempUsageDetail_20' ) end [2025-03-25 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759283', 'tblTempVendorCDR_20' ) start [2025-03-25 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759283', 'tblTempVendorCDR_20' ) end [2025-03-25 11:47:22] Production.INFO: ProcessCDR(1,14759283,1,1,2) [2025-03-25 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759283', 'tblTempUsageDetail_20' ) start [2025-03-25 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759283', 'tblTempUsageDetail_20' ) end [2025-03-25 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:47:29] Production.INFO: ==6855== Releasing lock... [2025-03-25 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:47:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-25 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:48:05 [end_date_ymd] => 2025-03-25 11:48:05 [RateCDR] => 1 ) [2025-03-25 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:48:05' and `end` < '2025-03-25 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:48:19] Production.INFO: count ==5269 [2025-03-25 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:48:05 - End Time 2025-03-25 11:48:05 [2025-03-25 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759288', 'tblTempUsageDetail_20' ) start [2025-03-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759288', 'tblTempUsageDetail_20' ) end [2025-03-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759288', 'tblTempVendorCDR_20' ) start [2025-03-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759288', 'tblTempVendorCDR_20' ) end [2025-03-25 11:48:21] Production.INFO: ProcessCDR(1,14759288,1,1,2) [2025-03-25 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759288', 'tblTempUsageDetail_20' ) start [2025-03-25 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759288', 'tblTempUsageDetail_20' ) end [2025-03-25 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:48:27] Production.INFO: ==6953== Releasing lock... [2025-03-25 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:48:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-25 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:49:06 [end_date_ymd] => 2025-03-25 11:49:06 [RateCDR] => 1 ) [2025-03-25 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:49:06' and `end` < '2025-03-25 11: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-03-25 11:49:20] Production.INFO: count ==5313 [2025-03-25 11:49:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:49:06 - End Time 2025-03-25 11:49:06 [2025-03-25 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759292', 'tblTempUsageDetail_20' ) start [2025-03-25 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759292', 'tblTempUsageDetail_20' ) end [2025-03-25 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759292', 'tblTempVendorCDR_20' ) start [2025-03-25 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759292', 'tblTempVendorCDR_20' ) end [2025-03-25 11:49:23] Production.INFO: ProcessCDR(1,14759292,1,1,2) [2025-03-25 11:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759292', 'tblTempUsageDetail_20' ) start [2025-03-25 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759292', 'tblTempUsageDetail_20' ) end [2025-03-25 11:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:49:29] Production.INFO: ==7050== Releasing lock... [2025-03-25 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:49:29] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:50:07 [end_date_ymd] => 2025-03-25 11:50:07 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:50:07' and `end` < '2025-03-25 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-03-25 11:50:20] Production.INFO: count ==5335 [2025-03-25 11:50:23] Production.ERROR: pbx CDR StartTime 2025-03-25 08:50:07 - End Time 2025-03-25 11:50:07 [2025-03-25 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759298', 'tblTempUsageDetail_20' ) start [2025-03-25 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759298', 'tblTempUsageDetail_20' ) end [2025-03-25 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759298', 'tblTempVendorCDR_20' ) start [2025-03-25 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759298', 'tblTempVendorCDR_20' ) end [2025-03-25 11:50:23] Production.INFO: ProcessCDR(1,14759298,1,1,2) [2025-03-25 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759298', 'tblTempUsageDetail_20' ) start [2025-03-25 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759298', 'tblTempUsageDetail_20' ) end [2025-03-25 11:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:50:29] Production.INFO: ==7152== Releasing lock... [2025-03-25 11:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:50:29] Production.INFO: 68 MB #Memory Used# [2025-03-25 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:51:06 [end_date_ymd] => 2025-03-25 11:51:06 [RateCDR] => 1 ) [2025-03-25 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:51:06' and `end` < '2025-03-25 11: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-03-25 11:51:20] Production.INFO: count ==5428 [2025-03-25 11:51:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:51:06 - End Time 2025-03-25 11:51:06 [2025-03-25 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759304', 'tblTempUsageDetail_20' ) start [2025-03-25 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759304', 'tblTempUsageDetail_20' ) end [2025-03-25 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759304', 'tblTempVendorCDR_20' ) start [2025-03-25 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759304', 'tblTempVendorCDR_20' ) end [2025-03-25 11:51:22] Production.INFO: ProcessCDR(1,14759304,1,1,2) [2025-03-25 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759304', 'tblTempUsageDetail_20' ) start [2025-03-25 11:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759304', 'tblTempUsageDetail_20' ) end [2025-03-25 11:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:51:28] Production.INFO: ==7246== Releasing lock... [2025-03-25 11:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:51:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:52:05 [end_date_ymd] => 2025-03-25 11:52:05 [RateCDR] => 1 ) [2025-03-25 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:52:05' and `end` < '2025-03-25 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:52:19] Production.INFO: count ==5439 [2025-03-25 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:52:05 - End Time 2025-03-25 11:52:05 [2025-03-25 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759309', 'tblTempUsageDetail_20' ) start [2025-03-25 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759309', 'tblTempUsageDetail_20' ) end [2025-03-25 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759309', 'tblTempVendorCDR_20' ) start [2025-03-25 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759309', 'tblTempVendorCDR_20' ) end [2025-03-25 11:52:22] Production.INFO: ProcessCDR(1,14759309,1,1,2) [2025-03-25 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759309', 'tblTempUsageDetail_20' ) start [2025-03-25 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759309', 'tblTempUsageDetail_20' ) end [2025-03-25 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:52:27] Production.INFO: ==7380== Releasing lock... [2025-03-25 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:52:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:53:05 [end_date_ymd] => 2025-03-25 11:53:05 [RateCDR] => 1 ) [2025-03-25 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:53:05' and `end` < '2025-03-25 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:53:18] Production.INFO: count ==5440 [2025-03-25 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:53:05 - End Time 2025-03-25 11:53:05 [2025-03-25 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759314', 'tblTempUsageDetail_20' ) start [2025-03-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759314', 'tblTempUsageDetail_20' ) end [2025-03-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759314', 'tblTempVendorCDR_20' ) start [2025-03-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759314', 'tblTempVendorCDR_20' ) end [2025-03-25 11:53:21] Production.INFO: ProcessCDR(1,14759314,1,1,2) [2025-03-25 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759314', 'tblTempUsageDetail_20' ) start [2025-03-25 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759314', 'tblTempUsageDetail_20' ) end [2025-03-25 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:53:26] Production.INFO: ==7490== Releasing lock... [2025-03-25 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:53:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:54:06 [end_date_ymd] => 2025-03-25 11:54:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:54:06' and `end` < '2025-03-25 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-03-25 11:54:19] Production.INFO: count ==5456 [2025-03-25 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:54:06 - End Time 2025-03-25 11:54:06 [2025-03-25 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759319', 'tblTempUsageDetail_20' ) start [2025-03-25 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759319', 'tblTempUsageDetail_20' ) end [2025-03-25 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759319', 'tblTempVendorCDR_20' ) start [2025-03-25 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759319', 'tblTempVendorCDR_20' ) end [2025-03-25 11:54:22] Production.INFO: ProcessCDR(1,14759319,1,1,2) [2025-03-25 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759319', 'tblTempUsageDetail_20' ) start [2025-03-25 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759319', 'tblTempUsageDetail_20' ) end [2025-03-25 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:54:27] Production.INFO: ==7606== Releasing lock... [2025-03-25 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:54:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:55:05 [end_date_ymd] => 2025-03-25 11:55:05 [RateCDR] => 1 ) [2025-03-25 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:55:05' and `end` < '2025-03-25 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:55:19] Production.INFO: count ==5507 [2025-03-25 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:55:05 - End Time 2025-03-25 11:55:05 [2025-03-25 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759324', 'tblTempUsageDetail_20' ) start [2025-03-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759324', 'tblTempUsageDetail_20' ) end [2025-03-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759324', 'tblTempVendorCDR_20' ) start [2025-03-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759324', 'tblTempVendorCDR_20' ) end [2025-03-25 11:55:21] Production.INFO: ProcessCDR(1,14759324,1,1,2) [2025-03-25 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759324', 'tblTempUsageDetail_20' ) start [2025-03-25 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759324', 'tblTempUsageDetail_20' ) end [2025-03-25 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:55:27] Production.INFO: ==7727== Releasing lock... [2025-03-25 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:55:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:56:05 [end_date_ymd] => 2025-03-25 11:56:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:56:05' and `end` < '2025-03-25 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-03-25 11:56:19] Production.INFO: count ==5482 [2025-03-25 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:56:05 - End Time 2025-03-25 11:56:05 [2025-03-25 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759329', 'tblTempUsageDetail_20' ) start [2025-03-25 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759329', 'tblTempUsageDetail_20' ) end [2025-03-25 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759329', 'tblTempVendorCDR_20' ) start [2025-03-25 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759329', 'tblTempVendorCDR_20' ) end [2025-03-25 11:56:21] Production.INFO: ProcessCDR(1,14759329,1,1,2) [2025-03-25 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759329', 'tblTempUsageDetail_20' ) start [2025-03-25 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759329', 'tblTempUsageDetail_20' ) end [2025-03-25 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:56:27] Production.INFO: ==7840== Releasing lock... [2025-03-25 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:56:27] Production.INFO: 69 MB #Memory Used# [2025-03-25 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:57:05 [end_date_ymd] => 2025-03-25 11:57:05 [RateCDR] => 1 ) [2025-03-25 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 08:57:05' and `end` < '2025-03-25 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 11:57:19] Production.INFO: count ==5508 [2025-03-25 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:57:05 - End Time 2025-03-25 11:57:05 [2025-03-25 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759334', 'tblTempUsageDetail_20' ) start [2025-03-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759334', 'tblTempUsageDetail_20' ) end [2025-03-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759334', 'tblTempVendorCDR_20' ) start [2025-03-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759334', 'tblTempVendorCDR_20' ) end [2025-03-25 11:57:21] Production.INFO: ProcessCDR(1,14759334,1,1,2) [2025-03-25 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759334', 'tblTempUsageDetail_20' ) start [2025-03-25 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759334', 'tblTempUsageDetail_20' ) end [2025-03-25 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:57:26] Production.INFO: ==7960== Releasing lock... [2025-03-25 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:57:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:58:06 [end_date_ymd] => 2025-03-25 11:58:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:58:06' and `end` < '2025-03-25 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-03-25 11:58:19] Production.INFO: count ==5511 [2025-03-25 11:58:22] Production.ERROR: pbx CDR StartTime 2025-03-25 08:58:06 - End Time 2025-03-25 11:58:06 [2025-03-25 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759339', 'tblTempUsageDetail_20' ) start [2025-03-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759339', 'tblTempUsageDetail_20' ) end [2025-03-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759339', 'tblTempVendorCDR_20' ) start [2025-03-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759339', 'tblTempVendorCDR_20' ) end [2025-03-25 11:58:22] Production.INFO: ProcessCDR(1,14759339,1,1,2) [2025-03-25 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759339', 'tblTempUsageDetail_20' ) start [2025-03-25 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759339', 'tblTempUsageDetail_20' ) end [2025-03-25 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:58:28] Production.INFO: ==8084== Releasing lock... [2025-03-25 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:58:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 08:59:05 [end_date_ymd] => 2025-03-25 11:59:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 08:59:05' and `end` < '2025-03-25 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-03-25 11:59:18] Production.INFO: count ==5514 [2025-03-25 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-25 08:59:05 - End Time 2025-03-25 11:59:05 [2025-03-25 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759344', 'tblTempUsageDetail_20' ) start [2025-03-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759344', 'tblTempUsageDetail_20' ) end [2025-03-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759344', 'tblTempVendorCDR_20' ) start [2025-03-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759344', 'tblTempVendorCDR_20' ) end [2025-03-25 11:59:21] Production.INFO: ProcessCDR(1,14759344,1,1,2) [2025-03-25 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759344', 'tblTempUsageDetail_20' ) start [2025-03-25 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759344', 'tblTempUsageDetail_20' ) end [2025-03-25 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 11:59:26] Production.INFO: ==8206== Releasing lock... [2025-03-25 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 11:59:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:00:07 [end_date_ymd] => 2025-03-25 12:00:07 [RateCDR] => 1 ) [2025-03-25 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:00:07' and `end` < '2025-03-25 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:00:20] Production.INFO: count ==5543 [2025-03-25 12:00:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:00:07 - End Time 2025-03-25 12:00:07 [2025-03-25 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759350', 'tblTempUsageDetail_20' ) start [2025-03-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759350', 'tblTempUsageDetail_20' ) end [2025-03-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759350', 'tblTempVendorCDR_20' ) start [2025-03-25 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759350', 'tblTempVendorCDR_20' ) end [2025-03-25 12:00:23] Production.INFO: ProcessCDR(1,14759350,1,1,2) [2025-03-25 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759350', 'tblTempUsageDetail_20' ) start [2025-03-25 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759350', 'tblTempUsageDetail_20' ) end [2025-03-25 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:00:29] Production.INFO: ==8332== Releasing lock... [2025-03-25 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:00:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:01:05 [end_date_ymd] => 2025-03-25 12:01:05 [RateCDR] => 1 ) [2025-03-25 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:01:05' and `end` < '2025-03-25 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:01:18] Production.INFO: count ==5647 [2025-03-25 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:01:05 - End Time 2025-03-25 12:01:05 [2025-03-25 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759355', 'tblTempUsageDetail_20' ) start [2025-03-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759355', 'tblTempUsageDetail_20' ) end [2025-03-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759355', 'tblTempVendorCDR_20' ) start [2025-03-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759355', 'tblTempVendorCDR_20' ) end [2025-03-25 12:01:21] Production.INFO: ProcessCDR(1,14759355,1,1,2) [2025-03-25 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759355', 'tblTempUsageDetail_20' ) start [2025-03-25 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759355', 'tblTempUsageDetail_20' ) end [2025-03-25 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:01:26] Production.INFO: ==8471== Releasing lock... [2025-03-25 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:01:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:02:05 [end_date_ymd] => 2025-03-25 12:02:05 [RateCDR] => 1 ) [2025-03-25 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:02:05' and `end` < '2025-03-25 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:02:19] Production.INFO: count ==5652 [2025-03-25 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:02:05 - End Time 2025-03-25 12:02:05 [2025-03-25 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759360', 'tblTempUsageDetail_20' ) start [2025-03-25 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759360', 'tblTempUsageDetail_20' ) end [2025-03-25 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759360', 'tblTempVendorCDR_20' ) start [2025-03-25 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759360', 'tblTempVendorCDR_20' ) end [2025-03-25 12:02:22] Production.INFO: ProcessCDR(1,14759360,1,1,2) [2025-03-25 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759360', 'tblTempUsageDetail_20' ) start [2025-03-25 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759360', 'tblTempUsageDetail_20' ) end [2025-03-25 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:02:26] Production.INFO: ==8586== Releasing lock... [2025-03-25 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:02:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:03:06 [end_date_ymd] => 2025-03-25 12:03:06 [RateCDR] => 1 ) [2025-03-25 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:03:06' and `end` < '2025-03-25 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:03:19] Production.INFO: count ==5662 [2025-03-25 12:03:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:03:06 - End Time 2025-03-25 12:03:06 [2025-03-25 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759365', 'tblTempUsageDetail_20' ) start [2025-03-25 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759365', 'tblTempUsageDetail_20' ) end [2025-03-25 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759365', 'tblTempVendorCDR_20' ) start [2025-03-25 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759365', 'tblTempVendorCDR_20' ) end [2025-03-25 12:03:22] Production.INFO: ProcessCDR(1,14759365,1,1,2) [2025-03-25 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759365', 'tblTempUsageDetail_20' ) start [2025-03-25 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759365', 'tblTempUsageDetail_20' ) end [2025-03-25 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:03:27] Production.INFO: ==8710== Releasing lock... [2025-03-25 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:03:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:04:05 [end_date_ymd] => 2025-03-25 12:04:05 [RateCDR] => 1 ) [2025-03-25 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:04:05' and `end` < '2025-03-25 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:04:19] Production.INFO: count ==5668 [2025-03-25 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:04:05 - End Time 2025-03-25 12:04:05 [2025-03-25 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759370', 'tblTempUsageDetail_20' ) start [2025-03-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759370', 'tblTempUsageDetail_20' ) end [2025-03-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759370', 'tblTempVendorCDR_20' ) start [2025-03-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759370', 'tblTempVendorCDR_20' ) end [2025-03-25 12:04:21] Production.INFO: ProcessCDR(1,14759370,1,1,2) [2025-03-25 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759370', 'tblTempUsageDetail_20' ) start [2025-03-25 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759370', 'tblTempUsageDetail_20' ) end [2025-03-25 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:04:27] Production.INFO: ==8832== Releasing lock... [2025-03-25 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:04:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:05:05 [end_date_ymd] => 2025-03-25 12:05:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:05:05' and `end` < '2025-03-25 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-03-25 12:05:19] Production.INFO: count ==5672 [2025-03-25 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:05:05 - End Time 2025-03-25 12:05:05 [2025-03-25 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759375', 'tblTempUsageDetail_20' ) start [2025-03-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759375', 'tblTempUsageDetail_20' ) end [2025-03-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759375', 'tblTempVendorCDR_20' ) start [2025-03-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759375', 'tblTempVendorCDR_20' ) end [2025-03-25 12:05:21] Production.INFO: ProcessCDR(1,14759375,1,1,2) [2025-03-25 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759375', 'tblTempUsageDetail_20' ) start [2025-03-25 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759375', 'tblTempUsageDetail_20' ) end [2025-03-25 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:05:26] Production.INFO: ==8946== Releasing lock... [2025-03-25 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:05:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:06:05 [end_date_ymd] => 2025-03-25 12:06:05 [RateCDR] => 1 ) [2025-03-25 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:06:05' and `end` < '2025-03-25 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:06:19] Production.INFO: count ==5662 [2025-03-25 12:06:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:06:05 - End Time 2025-03-25 12:06:05 [2025-03-25 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759380', 'tblTempUsageDetail_20' ) start [2025-03-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759380', 'tblTempUsageDetail_20' ) end [2025-03-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759380', 'tblTempVendorCDR_20' ) start [2025-03-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759380', 'tblTempVendorCDR_20' ) end [2025-03-25 12:06:22] Production.INFO: ProcessCDR(1,14759380,1,1,2) [2025-03-25 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759380', 'tblTempUsageDetail_20' ) start [2025-03-25 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759380', 'tblTempUsageDetail_20' ) end [2025-03-25 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:06:28] Production.INFO: ==9058== Releasing lock... [2025-03-25 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:06:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:07:05 [end_date_ymd] => 2025-03-25 12:07:05 [RateCDR] => 1 ) [2025-03-25 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:07:05' and `end` < '2025-03-25 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:07:19] Production.INFO: count ==5667 [2025-03-25 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:07:05 - End Time 2025-03-25 12:07:05 [2025-03-25 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759385', 'tblTempUsageDetail_20' ) start [2025-03-25 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759385', 'tblTempUsageDetail_20' ) end [2025-03-25 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759385', 'tblTempVendorCDR_20' ) start [2025-03-25 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759385', 'tblTempVendorCDR_20' ) end [2025-03-25 12:07:22] Production.INFO: ProcessCDR(1,14759385,1,1,2) [2025-03-25 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759385', 'tblTempUsageDetail_20' ) start [2025-03-25 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759385', 'tblTempUsageDetail_20' ) end [2025-03-25 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:07:27] Production.INFO: ==9169== Releasing lock... [2025-03-25 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:07:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:08:06 [end_date_ymd] => 2025-03-25 12:08:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:08:06' and `end` < '2025-03-25 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-03-25 12:08:19] Production.INFO: count ==5658 [2025-03-25 12:08:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:08:06 - End Time 2025-03-25 12:08:06 [2025-03-25 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759390', 'tblTempUsageDetail_20' ) start [2025-03-25 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759390', 'tblTempUsageDetail_20' ) end [2025-03-25 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759390', 'tblTempVendorCDR_20' ) start [2025-03-25 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759390', 'tblTempVendorCDR_20' ) end [2025-03-25 12:08:22] Production.INFO: ProcessCDR(1,14759390,1,1,2) [2025-03-25 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759390', 'tblTempUsageDetail_20' ) start [2025-03-25 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759390', 'tblTempUsageDetail_20' ) end [2025-03-25 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:08:28] Production.INFO: ==9324== Releasing lock... [2025-03-25 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:08:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:09:05 [end_date_ymd] => 2025-03-25 12:09:05 [RateCDR] => 1 ) [2025-03-25 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:09:05' and `end` < '2025-03-25 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:09:19] Production.INFO: count ==5669 [2025-03-25 12:09:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:09:05 - End Time 2025-03-25 12:09:05 [2025-03-25 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759395', 'tblTempUsageDetail_20' ) start [2025-03-25 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759395', 'tblTempUsageDetail_20' ) end [2025-03-25 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759395', 'tblTempVendorCDR_20' ) start [2025-03-25 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759395', 'tblTempVendorCDR_20' ) end [2025-03-25 12:09:22] Production.INFO: ProcessCDR(1,14759395,1,1,2) [2025-03-25 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759395', 'tblTempUsageDetail_20' ) start [2025-03-25 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759395', 'tblTempUsageDetail_20' ) end [2025-03-25 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:09:28] Production.INFO: ==9427== Releasing lock... [2025-03-25 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:09:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:10:06 [end_date_ymd] => 2025-03-25 12:10:06 [RateCDR] => 1 ) [2025-03-25 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:10:06' and `end` < '2025-03-25 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:10:20] Production.INFO: count ==5681 [2025-03-25 12:10:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:10:06 - End Time 2025-03-25 12:10:06 [2025-03-25 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759401', 'tblTempUsageDetail_20' ) start [2025-03-25 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759401', 'tblTempUsageDetail_20' ) end [2025-03-25 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759401', 'tblTempVendorCDR_20' ) start [2025-03-25 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759401', 'tblTempVendorCDR_20' ) end [2025-03-25 12:10:23] Production.INFO: ProcessCDR(1,14759401,1,1,2) [2025-03-25 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759401', 'tblTempUsageDetail_20' ) start [2025-03-25 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759401', 'tblTempUsageDetail_20' ) end [2025-03-25 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:10:29] Production.INFO: ==9544== Releasing lock... [2025-03-25 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:10:29] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:11:05 [end_date_ymd] => 2025-03-25 12:11:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:11:05' and `end` < '2025-03-25 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-03-25 12:11:18] Production.INFO: count ==5737 [2025-03-25 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:11:05 - End Time 2025-03-25 12:11:05 [2025-03-25 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759406', 'tblTempUsageDetail_20' ) start [2025-03-25 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759406', 'tblTempUsageDetail_20' ) end [2025-03-25 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759406', 'tblTempVendorCDR_20' ) start [2025-03-25 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759406', 'tblTempVendorCDR_20' ) end [2025-03-25 12:11:21] Production.INFO: ProcessCDR(1,14759406,1,1,2) [2025-03-25 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759406', 'tblTempUsageDetail_20' ) start [2025-03-25 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759406', 'tblTempUsageDetail_20' ) end [2025-03-25 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:11:27] Production.INFO: ==9659== Releasing lock... [2025-03-25 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:11:27] Production.INFO: 71 MB #Memory Used# [2025-03-25 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:12:06 [end_date_ymd] => 2025-03-25 12:12:06 [RateCDR] => 1 ) [2025-03-25 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:12:06' and `end` < '2025-03-25 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:12:20] Production.INFO: count ==5740 [2025-03-25 12:12:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:12:06 - End Time 2025-03-25 12:12:06 [2025-03-25 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759411', 'tblTempUsageDetail_20' ) start [2025-03-25 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759411', 'tblTempUsageDetail_20' ) end [2025-03-25 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759411', 'tblTempVendorCDR_20' ) start [2025-03-25 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759411', 'tblTempVendorCDR_20' ) end [2025-03-25 12:12:22] Production.INFO: ProcessCDR(1,14759411,1,1,2) [2025-03-25 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759411', 'tblTempUsageDetail_20' ) start [2025-03-25 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759411', 'tblTempUsageDetail_20' ) end [2025-03-25 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:12:28] Production.INFO: ==9771== Releasing lock... [2025-03-25 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:12:28] Production.INFO: 71 MB #Memory Used# [2025-03-25 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:13:05 [end_date_ymd] => 2025-03-25 12:13:05 [RateCDR] => 1 ) [2025-03-25 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:13:05' and `end` < '2025-03-25 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:13:19] Production.INFO: count ==5747 [2025-03-25 12:13:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:13:05 - End Time 2025-03-25 12:13:05 [2025-03-25 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759416', 'tblTempUsageDetail_20' ) start [2025-03-25 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759416', 'tblTempUsageDetail_20' ) end [2025-03-25 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759416', 'tblTempVendorCDR_20' ) start [2025-03-25 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759416', 'tblTempVendorCDR_20' ) end [2025-03-25 12:13:22] Production.INFO: ProcessCDR(1,14759416,1,1,2) [2025-03-25 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759416', 'tblTempUsageDetail_20' ) start [2025-03-25 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759416', 'tblTempUsageDetail_20' ) end [2025-03-25 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:13:28] Production.INFO: ==9878== Releasing lock... [2025-03-25 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:13:28] Production.INFO: 71 MB #Memory Used# [2025-03-25 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:14:06 [end_date_ymd] => 2025-03-25 12:14:06 [RateCDR] => 1 ) [2025-03-25 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:14:06' and `end` < '2025-03-25 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:14:20] Production.INFO: count ==5762 [2025-03-25 12:14:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:14:06 - End Time 2025-03-25 12:14:06 [2025-03-25 12:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759421', 'tblTempUsageDetail_20' ) start [2025-03-25 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759421', 'tblTempUsageDetail_20' ) end [2025-03-25 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759421', 'tblTempVendorCDR_20' ) start [2025-03-25 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759421', 'tblTempVendorCDR_20' ) end [2025-03-25 12:14:23] Production.INFO: ProcessCDR(1,14759421,1,1,2) [2025-03-25 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759421', 'tblTempUsageDetail_20' ) start [2025-03-25 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759421', 'tblTempUsageDetail_20' ) end [2025-03-25 12:14:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:14:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:14:29] Production.INFO: ==9993== Releasing lock... [2025-03-25 12:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:14:29] Production.INFO: 71 MB #Memory Used# [2025-03-25 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:15:06 [end_date_ymd] => 2025-03-25 12:15:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:15:06' and `end` < '2025-03-25 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-03-25 12:15:19] Production.INFO: count ==5780 [2025-03-25 12:15:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:15:06 - End Time 2025-03-25 12:15:06 [2025-03-25 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759426', 'tblTempUsageDetail_20' ) start [2025-03-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759426', 'tblTempUsageDetail_20' ) end [2025-03-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759426', 'tblTempVendorCDR_20' ) start [2025-03-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759426', 'tblTempVendorCDR_20' ) end [2025-03-25 12:15:22] Production.INFO: ProcessCDR(1,14759426,1,1,2) [2025-03-25 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759426', 'tblTempUsageDetail_20' ) start [2025-03-25 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759426', 'tblTempUsageDetail_20' ) end [2025-03-25 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:15:29] Production.INFO: ==10109== Releasing lock... [2025-03-25 12:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:15:29] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:16:06 [end_date_ymd] => 2025-03-25 12:16:06 [RateCDR] => 1 ) [2025-03-25 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:16:06' and `end` < '2025-03-25 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:16:19] Production.INFO: count ==5798 [2025-03-25 12:16:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:16:06 - End Time 2025-03-25 12:16:06 [2025-03-25 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759431', 'tblTempUsageDetail_20' ) start [2025-03-25 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759431', 'tblTempUsageDetail_20' ) end [2025-03-25 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759431', 'tblTempVendorCDR_20' ) start [2025-03-25 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759431', 'tblTempVendorCDR_20' ) end [2025-03-25 12:16:22] Production.INFO: ProcessCDR(1,14759431,1,1,2) [2025-03-25 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759431', 'tblTempUsageDetail_20' ) start [2025-03-25 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759431', 'tblTempUsageDetail_20' ) end [2025-03-25 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:16:27] Production.INFO: ==10223== Releasing lock... [2025-03-25 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:16:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:17:05 [end_date_ymd] => 2025-03-25 12:17:05 [RateCDR] => 1 ) [2025-03-25 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:17:05' and `end` < '2025-03-25 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:17:19] Production.INFO: count ==5796 [2025-03-25 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:17:05 - End Time 2025-03-25 12:17:05 [2025-03-25 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759436', 'tblTempUsageDetail_20' ) start [2025-03-25 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759436', 'tblTempUsageDetail_20' ) end [2025-03-25 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759436', 'tblTempVendorCDR_20' ) start [2025-03-25 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759436', 'tblTempVendorCDR_20' ) end [2025-03-25 12:17:21] Production.INFO: ProcessCDR(1,14759436,1,1,2) [2025-03-25 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759436', 'tblTempUsageDetail_20' ) start [2025-03-25 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759436', 'tblTempUsageDetail_20' ) end [2025-03-25 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:17:27] Production.INFO: ==10313== Releasing lock... [2025-03-25 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:17:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:18:06 [end_date_ymd] => 2025-03-25 12:18:06 [RateCDR] => 1 ) [2025-03-25 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:18:06' and `end` < '2025-03-25 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:18:19] Production.INFO: count ==5800 [2025-03-25 12:18:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:18:06 - End Time 2025-03-25 12:18:06 [2025-03-25 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759441', 'tblTempUsageDetail_20' ) start [2025-03-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759441', 'tblTempUsageDetail_20' ) end [2025-03-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759441', 'tblTempVendorCDR_20' ) start [2025-03-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759441', 'tblTempVendorCDR_20' ) end [2025-03-25 12:18:22] Production.INFO: ProcessCDR(1,14759441,1,1,2) [2025-03-25 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759441', 'tblTempUsageDetail_20' ) start [2025-03-25 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759441', 'tblTempUsageDetail_20' ) end [2025-03-25 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:18:27] Production.INFO: ==10402== Releasing lock... [2025-03-25 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:19:05 [end_date_ymd] => 2025-03-25 12:19:05 [RateCDR] => 1 ) [2025-03-25 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:19:05' and `end` < '2025-03-25 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:19:19] Production.INFO: count ==5804 [2025-03-25 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:19:05 - End Time 2025-03-25 12:19:05 [2025-03-25 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759446', 'tblTempUsageDetail_20' ) start [2025-03-25 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759446', 'tblTempUsageDetail_20' ) end [2025-03-25 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759446', 'tblTempVendorCDR_20' ) start [2025-03-25 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759446', 'tblTempVendorCDR_20' ) end [2025-03-25 12:19:22] Production.INFO: ProcessCDR(1,14759446,1,1,2) [2025-03-25 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759446', 'tblTempUsageDetail_20' ) start [2025-03-25 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759446', 'tblTempUsageDetail_20' ) end [2025-03-25 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:19:27] Production.INFO: ==10497== Releasing lock... [2025-03-25 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:19:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:20:06 [end_date_ymd] => 2025-03-25 12:20:06 [RateCDR] => 1 ) [2025-03-25 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:20:06' and `end` < '2025-03-25 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:20:19] Production.INFO: count ==5790 [2025-03-25 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:20:06 - End Time 2025-03-25 12:20:06 [2025-03-25 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759451', 'tblTempUsageDetail_20' ) start [2025-03-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759451', 'tblTempUsageDetail_20' ) end [2025-03-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759451', 'tblTempVendorCDR_20' ) start [2025-03-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759451', 'tblTempVendorCDR_20' ) end [2025-03-25 12:20:22] Production.INFO: ProcessCDR(1,14759451,1,1,2) [2025-03-25 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759451', 'tblTempUsageDetail_20' ) start [2025-03-25 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759451', 'tblTempUsageDetail_20' ) end [2025-03-25 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:20:27] Production.INFO: ==10593== Releasing lock... [2025-03-25 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:20:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:21:05 [end_date_ymd] => 2025-03-25 12:21:05 [RateCDR] => 1 ) [2025-03-25 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:21:05' and `end` < '2025-03-25 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:21:19] Production.INFO: count ==5838 [2025-03-25 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:21:05 - End Time 2025-03-25 12:21:05 [2025-03-25 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759457', 'tblTempUsageDetail_20' ) start [2025-03-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759457', 'tblTempUsageDetail_20' ) end [2025-03-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759457', 'tblTempVendorCDR_20' ) start [2025-03-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759457', 'tblTempVendorCDR_20' ) end [2025-03-25 12:21:21] Production.INFO: ProcessCDR(1,14759457,1,1,2) [2025-03-25 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759457', 'tblTempUsageDetail_20' ) start [2025-03-25 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759457', 'tblTempUsageDetail_20' ) end [2025-03-25 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:21:27] Production.INFO: ==10687== Releasing lock... [2025-03-25 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:21:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:22:05 [end_date_ymd] => 2025-03-25 12:22:05 [RateCDR] => 1 ) [2025-03-25 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:22:05' and `end` < '2025-03-25 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:22:19] Production.INFO: count ==5893 [2025-03-25 12:22:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:22:05 - End Time 2025-03-25 12:22:05 [2025-03-25 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759462', 'tblTempUsageDetail_20' ) start [2025-03-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759462', 'tblTempUsageDetail_20' ) end [2025-03-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759462', 'tblTempVendorCDR_20' ) start [2025-03-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759462', 'tblTempVendorCDR_20' ) end [2025-03-25 12:22:22] Production.INFO: ProcessCDR(1,14759462,1,1,2) [2025-03-25 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759462', 'tblTempUsageDetail_20' ) start [2025-03-25 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759462', 'tblTempUsageDetail_20' ) end [2025-03-25 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:22:28] Production.INFO: ==10777== Releasing lock... [2025-03-25 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:22:28] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:23:04 [end_date_ymd] => 2025-03-25 12:23:04 [RateCDR] => 1 ) [2025-03-25 12: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-03-25 09:23:04' and `end` < '2025-03-25 12: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-03-25 12:23:18] Production.INFO: count ==5923 [2025-03-25 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:23:04 - End Time 2025-03-25 12:23:04 [2025-03-25 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759467', 'tblTempUsageDetail_20' ) start [2025-03-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759467', 'tblTempUsageDetail_20' ) end [2025-03-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759467', 'tblTempVendorCDR_20' ) start [2025-03-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759467', 'tblTempVendorCDR_20' ) end [2025-03-25 12:23:21] Production.INFO: ProcessCDR(1,14759467,1,1,2) [2025-03-25 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759467', 'tblTempUsageDetail_20' ) start [2025-03-25 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759467', 'tblTempUsageDetail_20' ) end [2025-03-25 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:23:26] Production.INFO: ==10907== Releasing lock... [2025-03-25 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:23:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:24:06 [end_date_ymd] => 2025-03-25 12:24:06 [RateCDR] => 1 ) [2025-03-25 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:24:06' and `end` < '2025-03-25 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:24:19] Production.INFO: count ==5914 [2025-03-25 12:24:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:24:06 - End Time 2025-03-25 12:24:06 [2025-03-25 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759472', 'tblTempUsageDetail_20' ) start [2025-03-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759472', 'tblTempUsageDetail_20' ) end [2025-03-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759472', 'tblTempVendorCDR_20' ) start [2025-03-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759472', 'tblTempVendorCDR_20' ) end [2025-03-25 12:24:22] Production.INFO: ProcessCDR(1,14759472,1,1,2) [2025-03-25 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759472', 'tblTempUsageDetail_20' ) start [2025-03-25 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759472', 'tblTempUsageDetail_20' ) end [2025-03-25 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:24:28] Production.INFO: ==11005== Releasing lock... [2025-03-25 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:24:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:25:05 [end_date_ymd] => 2025-03-25 12:25:05 [RateCDR] => 1 ) [2025-03-25 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:25:05' and `end` < '2025-03-25 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:25:19] Production.INFO: count ==5913 [2025-03-25 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:25:05 - End Time 2025-03-25 12:25:05 [2025-03-25 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759477', 'tblTempUsageDetail_20' ) start [2025-03-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759477', 'tblTempUsageDetail_20' ) end [2025-03-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759477', 'tblTempVendorCDR_20' ) start [2025-03-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759477', 'tblTempVendorCDR_20' ) end [2025-03-25 12:25:21] Production.INFO: ProcessCDR(1,14759477,1,1,2) [2025-03-25 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759477', 'tblTempUsageDetail_20' ) start [2025-03-25 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759477', 'tblTempUsageDetail_20' ) end [2025-03-25 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:25:27] Production.INFO: ==11095== Releasing lock... [2025-03-25 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:25:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:26:05 [end_date_ymd] => 2025-03-25 12:26:05 [RateCDR] => 1 ) [2025-03-25 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:26:05' and `end` < '2025-03-25 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:26:19] Production.INFO: count ==5892 [2025-03-25 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:26:05 - End Time 2025-03-25 12:26:05 [2025-03-25 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759482', 'tblTempUsageDetail_20' ) start [2025-03-25 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759482', 'tblTempUsageDetail_20' ) end [2025-03-25 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759482', 'tblTempVendorCDR_20' ) start [2025-03-25 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759482', 'tblTempVendorCDR_20' ) end [2025-03-25 12:26:21] Production.INFO: ProcessCDR(1,14759482,1,1,2) [2025-03-25 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759482', 'tblTempUsageDetail_20' ) start [2025-03-25 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759482', 'tblTempUsageDetail_20' ) end [2025-03-25 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:26:27] Production.INFO: ==11192== Releasing lock... [2025-03-25 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:26:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:27:05 [end_date_ymd] => 2025-03-25 12:27:05 [RateCDR] => 1 ) [2025-03-25 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:27:05' and `end` < '2025-03-25 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:27:19] Production.INFO: count ==5859 [2025-03-25 12:27:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:27:05 - End Time 2025-03-25 12:27:05 [2025-03-25 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759487', 'tblTempUsageDetail_20' ) start [2025-03-25 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759487', 'tblTempUsageDetail_20' ) end [2025-03-25 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759487', 'tblTempVendorCDR_20' ) start [2025-03-25 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759487', 'tblTempVendorCDR_20' ) end [2025-03-25 12:27:22] Production.INFO: ProcessCDR(1,14759487,1,1,2) [2025-03-25 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759487', 'tblTempUsageDetail_20' ) start [2025-03-25 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759487', 'tblTempUsageDetail_20' ) end [2025-03-25 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:27:27] Production.INFO: ==11285== Releasing lock... [2025-03-25 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:27:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:28:05 [end_date_ymd] => 2025-03-25 12:28:05 [RateCDR] => 1 ) [2025-03-25 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:28:05' and `end` < '2025-03-25 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:28:19] Production.INFO: count ==5830 [2025-03-25 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:28:05 - End Time 2025-03-25 12:28:05 [2025-03-25 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759492', 'tblTempUsageDetail_20' ) start [2025-03-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759492', 'tblTempUsageDetail_20' ) end [2025-03-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759492', 'tblTempVendorCDR_20' ) start [2025-03-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759492', 'tblTempVendorCDR_20' ) end [2025-03-25 12:28:21] Production.INFO: ProcessCDR(1,14759492,1,1,2) [2025-03-25 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759492', 'tblTempUsageDetail_20' ) start [2025-03-25 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759492', 'tblTempUsageDetail_20' ) end [2025-03-25 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:28:26] Production.INFO: ==11371== Releasing lock... [2025-03-25 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:28:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:29:05 [end_date_ymd] => 2025-03-25 12:29:05 [RateCDR] => 1 ) [2025-03-25 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:29:05' and `end` < '2025-03-25 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:29:19] Production.INFO: count ==5833 [2025-03-25 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:29:05 - End Time 2025-03-25 12:29:05 [2025-03-25 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759497', 'tblTempUsageDetail_20' ) start [2025-03-25 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759497', 'tblTempUsageDetail_20' ) end [2025-03-25 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759497', 'tblTempVendorCDR_20' ) start [2025-03-25 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759497', 'tblTempVendorCDR_20' ) end [2025-03-25 12:29:22] Production.INFO: ProcessCDR(1,14759497,1,1,2) [2025-03-25 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759497', 'tblTempUsageDetail_20' ) start [2025-03-25 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759497', 'tblTempUsageDetail_20' ) end [2025-03-25 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:29:27] Production.INFO: ==11465== Releasing lock... [2025-03-25 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:29:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:30:06 [end_date_ymd] => 2025-03-25 12:30:06 [RateCDR] => 1 ) [2025-03-25 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:30:06' and `end` < '2025-03-25 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:30:20] Production.INFO: count ==5826 [2025-03-25 12:30:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:30:06 - End Time 2025-03-25 12:30:06 [2025-03-25 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759503', 'tblTempUsageDetail_20' ) start [2025-03-25 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759503', 'tblTempUsageDetail_20' ) end [2025-03-25 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759503', 'tblTempVendorCDR_20' ) start [2025-03-25 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759503', 'tblTempVendorCDR_20' ) end [2025-03-25 12:30:23] Production.INFO: ProcessCDR(1,14759503,1,1,2) [2025-03-25 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759503', 'tblTempUsageDetail_20' ) start [2025-03-25 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759503', 'tblTempUsageDetail_20' ) end [2025-03-25 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:30:29] Production.INFO: ==11559== Releasing lock... [2025-03-25 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:30:29] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:31:06 [end_date_ymd] => 2025-03-25 12:31:06 [RateCDR] => 1 ) [2025-03-25 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:31:06' and `end` < '2025-03-25 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:31:20] Production.INFO: count ==5854 [2025-03-25 12:31:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:31:06 - End Time 2025-03-25 12:31:06 [2025-03-25 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759508', 'tblTempUsageDetail_20' ) start [2025-03-25 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759508', 'tblTempUsageDetail_20' ) end [2025-03-25 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759508', 'tblTempVendorCDR_20' ) start [2025-03-25 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759508', 'tblTempVendorCDR_20' ) end [2025-03-25 12:31:23] Production.INFO: ProcessCDR(1,14759508,1,1,2) [2025-03-25 12:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759508', 'tblTempUsageDetail_20' ) start [2025-03-25 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759508', 'tblTempUsageDetail_20' ) end [2025-03-25 12:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:31:29] Production.INFO: ==11650== Releasing lock... [2025-03-25 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:31:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:32:05 [end_date_ymd] => 2025-03-25 12:32:05 [RateCDR] => 1 ) [2025-03-25 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:32:05' and `end` < '2025-03-25 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:32:19] Production.INFO: count ==5854 [2025-03-25 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:32:05 - End Time 2025-03-25 12:32:05 [2025-03-25 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759513', 'tblTempUsageDetail_20' ) start [2025-03-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759513', 'tblTempUsageDetail_20' ) end [2025-03-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759513', 'tblTempVendorCDR_20' ) start [2025-03-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759513', 'tblTempVendorCDR_20' ) end [2025-03-25 12:32:22] Production.INFO: ProcessCDR(1,14759513,1,1,2) [2025-03-25 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759513', 'tblTempUsageDetail_20' ) start [2025-03-25 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759513', 'tblTempUsageDetail_20' ) end [2025-03-25 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:32:28] Production.INFO: ==11743== Releasing lock... [2025-03-25 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:32:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:33:06 [end_date_ymd] => 2025-03-25 12:33:06 [RateCDR] => 1 ) [2025-03-25 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:33:06' and `end` < '2025-03-25 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:33:19] Production.INFO: count ==5850 [2025-03-25 12:33:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:33:06 - End Time 2025-03-25 12:33:06 [2025-03-25 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759518', 'tblTempUsageDetail_20' ) start [2025-03-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759518', 'tblTempUsageDetail_20' ) end [2025-03-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759518', 'tblTempVendorCDR_20' ) start [2025-03-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759518', 'tblTempVendorCDR_20' ) end [2025-03-25 12:33:22] Production.INFO: ProcessCDR(1,14759518,1,1,2) [2025-03-25 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759518', 'tblTempUsageDetail_20' ) start [2025-03-25 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759518', 'tblTempUsageDetail_20' ) end [2025-03-25 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:33:28] Production.INFO: ==11834== Releasing lock... [2025-03-25 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:33:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:34:05 [end_date_ymd] => 2025-03-25 12:34:05 [RateCDR] => 1 ) [2025-03-25 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:34:05' and `end` < '2025-03-25 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:34:19] Production.INFO: count ==5833 [2025-03-25 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:34:05 - End Time 2025-03-25 12:34:05 [2025-03-25 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759523', 'tblTempUsageDetail_20' ) start [2025-03-25 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759523', 'tblTempUsageDetail_20' ) end [2025-03-25 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759523', 'tblTempVendorCDR_20' ) start [2025-03-25 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759523', 'tblTempVendorCDR_20' ) end [2025-03-25 12:34:22] Production.INFO: ProcessCDR(1,14759523,1,1,2) [2025-03-25 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759523', 'tblTempUsageDetail_20' ) start [2025-03-25 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759523', 'tblTempUsageDetail_20' ) end [2025-03-25 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:34:26] Production.INFO: ==11926== Releasing lock... [2025-03-25 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:34:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:35:06 [end_date_ymd] => 2025-03-25 12:35:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:35:06' and `end` < '2025-03-25 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-03-25 12:35:19] Production.INFO: count ==5842 [2025-03-25 12:35:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:35:06 - End Time 2025-03-25 12:35:06 [2025-03-25 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759528', 'tblTempUsageDetail_20' ) start [2025-03-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759528', 'tblTempUsageDetail_20' ) end [2025-03-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759528', 'tblTempVendorCDR_20' ) start [2025-03-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759528', 'tblTempVendorCDR_20' ) end [2025-03-25 12:35:22] Production.INFO: ProcessCDR(1,14759528,1,1,2) [2025-03-25 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759528', 'tblTempUsageDetail_20' ) start [2025-03-25 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759528', 'tblTempUsageDetail_20' ) end [2025-03-25 12:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:35:28] Production.INFO: ==12021== Releasing lock... [2025-03-25 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:35:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:36:05 [end_date_ymd] => 2025-03-25 12:36:05 [RateCDR] => 1 ) [2025-03-25 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:36:05' and `end` < '2025-03-25 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:36:18] Production.INFO: count ==5846 [2025-03-25 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:36:05 - End Time 2025-03-25 12:36:05 [2025-03-25 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759533', 'tblTempUsageDetail_20' ) start [2025-03-25 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759533', 'tblTempUsageDetail_20' ) end [2025-03-25 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759533', 'tblTempVendorCDR_20' ) start [2025-03-25 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759533', 'tblTempVendorCDR_20' ) end [2025-03-25 12:36:21] Production.INFO: ProcessCDR(1,14759533,1,1,2) [2025-03-25 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759533', 'tblTempUsageDetail_20' ) start [2025-03-25 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759533', 'tblTempUsageDetail_20' ) end [2025-03-25 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:36:26] Production.INFO: ==12112== Releasing lock... [2025-03-25 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:36:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:37:06 [end_date_ymd] => 2025-03-25 12:37:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:37:06' and `end` < '2025-03-25 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-03-25 12:37:19] Production.INFO: count ==5849 [2025-03-25 12:37:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:37:06 - End Time 2025-03-25 12:37:06 [2025-03-25 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759538', 'tblTempUsageDetail_20' ) start [2025-03-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759538', 'tblTempUsageDetail_20' ) end [2025-03-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759538', 'tblTempVendorCDR_20' ) start [2025-03-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759538', 'tblTempVendorCDR_20' ) end [2025-03-25 12:37:22] Production.INFO: ProcessCDR(1,14759538,1,1,2) [2025-03-25 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759538', 'tblTempUsageDetail_20' ) start [2025-03-25 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759538', 'tblTempUsageDetail_20' ) end [2025-03-25 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:37:27] Production.INFO: ==12207== Releasing lock... [2025-03-25 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:37:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:38:05 [end_date_ymd] => 2025-03-25 12:38:05 [RateCDR] => 1 ) [2025-03-25 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:38:05' and `end` < '2025-03-25 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:38:19] Production.INFO: count ==5824 [2025-03-25 12:38:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:38:05 - End Time 2025-03-25 12:38:05 [2025-03-25 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759543', 'tblTempUsageDetail_20' ) start [2025-03-25 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759543', 'tblTempUsageDetail_20' ) end [2025-03-25 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759543', 'tblTempVendorCDR_20' ) start [2025-03-25 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759543', 'tblTempVendorCDR_20' ) end [2025-03-25 12:38:22] Production.INFO: ProcessCDR(1,14759543,1,1,2) [2025-03-25 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759543', 'tblTempUsageDetail_20' ) start [2025-03-25 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759543', 'tblTempUsageDetail_20' ) end [2025-03-25 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:38:27] Production.INFO: ==12300== Releasing lock... [2025-03-25 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:38:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:39:05 [end_date_ymd] => 2025-03-25 12:39:05 [RateCDR] => 1 ) [2025-03-25 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:39:05' and `end` < '2025-03-25 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:39:19] Production.INFO: count ==5817 [2025-03-25 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:39:05 - End Time 2025-03-25 12:39:05 [2025-03-25 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759548', 'tblTempUsageDetail_20' ) start [2025-03-25 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759548', 'tblTempUsageDetail_20' ) end [2025-03-25 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759548', 'tblTempVendorCDR_20' ) start [2025-03-25 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759548', 'tblTempVendorCDR_20' ) end [2025-03-25 12:39:21] Production.INFO: ProcessCDR(1,14759548,1,1,2) [2025-03-25 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759548', 'tblTempUsageDetail_20' ) start [2025-03-25 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759548', 'tblTempUsageDetail_20' ) end [2025-03-25 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:39:26] Production.INFO: ==12429== Releasing lock... [2025-03-25 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:39:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:40:06 [end_date_ymd] => 2025-03-25 12:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:40:06' and `end` < '2025-03-25 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-03-25 12:40:19] Production.INFO: count ==5804 [2025-03-25 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:40:06 - End Time 2025-03-25 12:40:06 [2025-03-25 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759554', 'tblTempUsageDetail_20' ) start [2025-03-25 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759554', 'tblTempUsageDetail_20' ) end [2025-03-25 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759554', 'tblTempVendorCDR_20' ) start [2025-03-25 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759554', 'tblTempVendorCDR_20' ) end [2025-03-25 12:40:22] Production.INFO: ProcessCDR(1,14759554,1,1,2) [2025-03-25 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759554', 'tblTempUsageDetail_20' ) start [2025-03-25 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759554', 'tblTempUsageDetail_20' ) end [2025-03-25 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:40:27] Production.INFO: ==12520== Releasing lock... [2025-03-25 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:40:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:41:05 [end_date_ymd] => 2025-03-25 12:41:05 [RateCDR] => 1 ) [2025-03-25 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:41:05' and `end` < '2025-03-25 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:41:19] Production.INFO: count ==5839 [2025-03-25 12:41:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:41:05 - End Time 2025-03-25 12:41:05 [2025-03-25 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759559', 'tblTempUsageDetail_20' ) start [2025-03-25 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759559', 'tblTempUsageDetail_20' ) end [2025-03-25 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759559', 'tblTempVendorCDR_20' ) start [2025-03-25 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759559', 'tblTempVendorCDR_20' ) end [2025-03-25 12:41:22] Production.INFO: ProcessCDR(1,14759559,1,1,2) [2025-03-25 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759559', 'tblTempUsageDetail_20' ) start [2025-03-25 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759559', 'tblTempUsageDetail_20' ) end [2025-03-25 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:41:28] Production.INFO: ==12613== Releasing lock... [2025-03-25 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:41:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:42:05 [end_date_ymd] => 2025-03-25 12:42:05 [RateCDR] => 1 ) [2025-03-25 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:42:05' and `end` < '2025-03-25 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:42:19] Production.INFO: count ==5870 [2025-03-25 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:42:05 - End Time 2025-03-25 12:42:05 [2025-03-25 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759564', 'tblTempUsageDetail_20' ) start [2025-03-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759564', 'tblTempUsageDetail_20' ) end [2025-03-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759564', 'tblTempVendorCDR_20' ) start [2025-03-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759564', 'tblTempVendorCDR_20' ) end [2025-03-25 12:42:22] Production.INFO: ProcessCDR(1,14759564,1,1,2) [2025-03-25 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759564', 'tblTempUsageDetail_20' ) start [2025-03-25 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759564', 'tblTempUsageDetail_20' ) end [2025-03-25 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:42:27] Production.INFO: ==12708== Releasing lock... [2025-03-25 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:42:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:43:06 [end_date_ymd] => 2025-03-25 12:43:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:43:06' and `end` < '2025-03-25 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-03-25 12:43:19] Production.INFO: count ==5874 [2025-03-25 12:43:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:43:06 - End Time 2025-03-25 12:43:06 [2025-03-25 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759569', 'tblTempUsageDetail_20' ) start [2025-03-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759569', 'tblTempUsageDetail_20' ) end [2025-03-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759569', 'tblTempVendorCDR_20' ) start [2025-03-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759569', 'tblTempVendorCDR_20' ) end [2025-03-25 12:43:22] Production.INFO: ProcessCDR(1,14759569,1,1,2) [2025-03-25 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759569', 'tblTempUsageDetail_20' ) start [2025-03-25 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759569', 'tblTempUsageDetail_20' ) end [2025-03-25 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:43:29] Production.INFO: ==12799== Releasing lock... [2025-03-25 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:43:29] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:44:05 [end_date_ymd] => 2025-03-25 12:44:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:44:05' and `end` < '2025-03-25 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-03-25 12:44:20] Production.INFO: count ==5880 [2025-03-25 12:44:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:44:05 - End Time 2025-03-25 12:44:05 [2025-03-25 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759574', 'tblTempUsageDetail_20' ) start [2025-03-25 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759574', 'tblTempUsageDetail_20' ) end [2025-03-25 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759574', 'tblTempVendorCDR_20' ) start [2025-03-25 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759574', 'tblTempVendorCDR_20' ) end [2025-03-25 12:44:23] Production.INFO: ProcessCDR(1,14759574,1,1,2) [2025-03-25 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759574', 'tblTempUsageDetail_20' ) start [2025-03-25 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759574', 'tblTempUsageDetail_20' ) end [2025-03-25 12:44:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:44:29] Production.INFO: ==12886== Releasing lock... [2025-03-25 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:44:29] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:45:06 [end_date_ymd] => 2025-03-25 12:45:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:45:06' and `end` < '2025-03-25 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-03-25 12:45:21] Production.INFO: count ==5871 [2025-03-25 12:45:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:45:06 - End Time 2025-03-25 12:45:06 [2025-03-25 12:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759579', 'tblTempUsageDetail_20' ) start [2025-03-25 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759579', 'tblTempUsageDetail_20' ) end [2025-03-25 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759579', 'tblTempVendorCDR_20' ) start [2025-03-25 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759579', 'tblTempVendorCDR_20' ) end [2025-03-25 12:45:24] Production.INFO: ProcessCDR(1,14759579,1,1,2) [2025-03-25 12:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759579', 'tblTempUsageDetail_20' ) start [2025-03-25 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759579', 'tblTempUsageDetail_20' ) end [2025-03-25 12:45:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:45:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:45:29] Production.INFO: ==12980== Releasing lock... [2025-03-25 12:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:45:29] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:46:05 [end_date_ymd] => 2025-03-25 12:46:05 [RateCDR] => 1 ) [2025-03-25 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:46:05' and `end` < '2025-03-25 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:46:20] Production.INFO: count ==5877 [2025-03-25 12:46:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:46:05 - End Time 2025-03-25 12:46:05 [2025-03-25 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759584', 'tblTempUsageDetail_20' ) start [2025-03-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759584', 'tblTempUsageDetail_20' ) end [2025-03-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759584', 'tblTempVendorCDR_20' ) start [2025-03-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759584', 'tblTempVendorCDR_20' ) end [2025-03-25 12:46:23] Production.INFO: ProcessCDR(1,14759584,1,1,2) [2025-03-25 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759584', 'tblTempUsageDetail_20' ) start [2025-03-25 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759584', 'tblTempUsageDetail_20' ) end [2025-03-25 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:46:29] Production.INFO: ==13077== Releasing lock... [2025-03-25 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:46:29] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:47:06 [end_date_ymd] => 2025-03-25 12:47:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 09:47:06' and `end` < '2025-03-25 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-03-25 12:47:20] Production.INFO: count ==5858 [2025-03-25 12:47:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:47:06 - End Time 2025-03-25 12:47:06 [2025-03-25 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759589', 'tblTempUsageDetail_20' ) start [2025-03-25 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759589', 'tblTempUsageDetail_20' ) end [2025-03-25 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759589', 'tblTempVendorCDR_20' ) start [2025-03-25 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759589', 'tblTempVendorCDR_20' ) end [2025-03-25 12:47:23] Production.INFO: ProcessCDR(1,14759589,1,1,2) [2025-03-25 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759589', 'tblTempUsageDetail_20' ) start [2025-03-25 12:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759589', 'tblTempUsageDetail_20' ) end [2025-03-25 12:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:47:29] Production.INFO: ==13169== Releasing lock... [2025-03-25 12:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:47:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:48:06 [end_date_ymd] => 2025-03-25 12:48:06 [RateCDR] => 1 ) [2025-03-25 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:48:06' and `end` < '2025-03-25 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:48:20] Production.INFO: count ==5827 [2025-03-25 12:48:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:48:06 - End Time 2025-03-25 12:48:06 [2025-03-25 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759594', 'tblTempUsageDetail_20' ) start [2025-03-25 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759594', 'tblTempUsageDetail_20' ) end [2025-03-25 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759594', 'tblTempVendorCDR_20' ) start [2025-03-25 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759594', 'tblTempVendorCDR_20' ) end [2025-03-25 12:48:23] Production.INFO: ProcessCDR(1,14759594,1,1,2) [2025-03-25 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759594', 'tblTempUsageDetail_20' ) start [2025-03-25 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759594', 'tblTempUsageDetail_20' ) end [2025-03-25 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:48:29] Production.INFO: ==13283== Releasing lock... [2025-03-25 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:48:29] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:49:05 [end_date_ymd] => 2025-03-25 12:49:05 [RateCDR] => 1 ) [2025-03-25 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:49:05' and `end` < '2025-03-25 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:49:19] Production.INFO: count ==5820 [2025-03-25 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:49:05 - End Time 2025-03-25 12:49:05 [2025-03-25 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759599', 'tblTempUsageDetail_20' ) start [2025-03-25 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759599', 'tblTempUsageDetail_20' ) end [2025-03-25 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759599', 'tblTempVendorCDR_20' ) start [2025-03-25 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759599', 'tblTempVendorCDR_20' ) end [2025-03-25 12:49:22] Production.INFO: ProcessCDR(1,14759599,1,1,2) [2025-03-25 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759599', 'tblTempUsageDetail_20' ) start [2025-03-25 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759599', 'tblTempUsageDetail_20' ) end [2025-03-25 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:49:27] Production.INFO: ==13403== Releasing lock... [2025-03-25 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:49:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:50:06 [end_date_ymd] => 2025-03-25 12:50:06 [RateCDR] => 1 ) [2025-03-25 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:50:06' and `end` < '2025-03-25 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:50:20] Production.INFO: count ==5830 [2025-03-25 12:50:23] Production.ERROR: pbx CDR StartTime 2025-03-25 09:50:06 - End Time 2025-03-25 12:50:06 [2025-03-25 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759605', 'tblTempUsageDetail_20' ) start [2025-03-25 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759605', 'tblTempUsageDetail_20' ) end [2025-03-25 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759605', 'tblTempVendorCDR_20' ) start [2025-03-25 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759605', 'tblTempVendorCDR_20' ) end [2025-03-25 12:50:23] Production.INFO: ProcessCDR(1,14759605,1,1,2) [2025-03-25 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759605', 'tblTempUsageDetail_20' ) start [2025-03-25 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759605', 'tblTempUsageDetail_20' ) end [2025-03-25 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:50:29] Production.INFO: ==13517== Releasing lock... [2025-03-25 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:50:29] Production.INFO: 72 MB #Memory Used# [2025-03-25 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:51:06 [end_date_ymd] => 2025-03-25 12:51:06 [RateCDR] => 1 ) [2025-03-25 12:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:51:06' and `end` < '2025-03-25 12: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-03-25 12:51:19] Production.INFO: count ==5813 [2025-03-25 12:51:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:51:06 - End Time 2025-03-25 12:51:06 [2025-03-25 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759610', 'tblTempUsageDetail_20' ) start [2025-03-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759610', 'tblTempUsageDetail_20' ) end [2025-03-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759610', 'tblTempVendorCDR_20' ) start [2025-03-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759610', 'tblTempVendorCDR_20' ) end [2025-03-25 12:51:22] Production.INFO: ProcessCDR(1,14759610,1,1,2) [2025-03-25 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759610', 'tblTempUsageDetail_20' ) start [2025-03-25 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759610', 'tblTempUsageDetail_20' ) end [2025-03-25 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:51:27] Production.INFO: ==13624== Releasing lock... [2025-03-25 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:51:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:52:05 [end_date_ymd] => 2025-03-25 12:52:05 [RateCDR] => 1 ) [2025-03-25 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:52:05' and `end` < '2025-03-25 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:52:19] Production.INFO: count ==5793 [2025-03-25 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:52:05 - End Time 2025-03-25 12:52:05 [2025-03-25 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759615', 'tblTempUsageDetail_20' ) start [2025-03-25 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759615', 'tblTempUsageDetail_20' ) end [2025-03-25 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759615', 'tblTempVendorCDR_20' ) start [2025-03-25 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759615', 'tblTempVendorCDR_20' ) end [2025-03-25 12:52:21] Production.INFO: ProcessCDR(1,14759615,1,1,2) [2025-03-25 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759615', 'tblTempUsageDetail_20' ) start [2025-03-25 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759615', 'tblTempUsageDetail_20' ) end [2025-03-25 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:52:27] Production.INFO: ==13734== Releasing lock... [2025-03-25 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:52:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:53:06 [end_date_ymd] => 2025-03-25 12:53:06 [RateCDR] => 1 ) [2025-03-25 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:53:06' and `end` < '2025-03-25 12: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-03-25 12:53:19] Production.INFO: count ==5776 [2025-03-25 12:53:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:53:06 - End Time 2025-03-25 12:53:06 [2025-03-25 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759620', 'tblTempUsageDetail_20' ) start [2025-03-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759620', 'tblTempUsageDetail_20' ) end [2025-03-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759620', 'tblTempVendorCDR_20' ) start [2025-03-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759620', 'tblTempVendorCDR_20' ) end [2025-03-25 12:53:22] Production.INFO: ProcessCDR(1,14759620,1,1,2) [2025-03-25 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759620', 'tblTempUsageDetail_20' ) start [2025-03-25 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759620', 'tblTempUsageDetail_20' ) end [2025-03-25 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:53:27] Production.INFO: ==13827== Releasing lock... [2025-03-25 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:53:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:54:06 [end_date_ymd] => 2025-03-25 12:54:06 [RateCDR] => 1 ) [2025-03-25 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:54:06' and `end` < '2025-03-25 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:54:19] Production.INFO: count ==5747 [2025-03-25 12:54:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:54:06 - End Time 2025-03-25 12:54:06 [2025-03-25 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759625', 'tblTempUsageDetail_20' ) start [2025-03-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759625', 'tblTempUsageDetail_20' ) end [2025-03-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759625', 'tblTempVendorCDR_20' ) start [2025-03-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759625', 'tblTempVendorCDR_20' ) end [2025-03-25 12:54:22] Production.INFO: ProcessCDR(1,14759625,1,1,2) [2025-03-25 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759625', 'tblTempUsageDetail_20' ) start [2025-03-25 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759625', 'tblTempUsageDetail_20' ) end [2025-03-25 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:54:25] Production.INFO: ==13956== Releasing lock... [2025-03-25 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:54:25] Production.INFO: 71 MB #Memory Used# [2025-03-25 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:55:06 [end_date_ymd] => 2025-03-25 12:55:06 [RateCDR] => 1 ) [2025-03-25 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:55:06' and `end` < '2025-03-25 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:55:19] Production.INFO: count ==5731 [2025-03-25 12:55:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:55:06 - End Time 2025-03-25 12:55:06 [2025-03-25 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759630', 'tblTempUsageDetail_20' ) start [2025-03-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759630', 'tblTempUsageDetail_20' ) end [2025-03-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759630', 'tblTempVendorCDR_20' ) start [2025-03-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759630', 'tblTempVendorCDR_20' ) end [2025-03-25 12:55:22] Production.INFO: ProcessCDR(1,14759630,1,1,2) [2025-03-25 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759630', 'tblTempUsageDetail_20' ) start [2025-03-25 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759630', 'tblTempUsageDetail_20' ) end [2025-03-25 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:55:27] Production.INFO: ==14042== Releasing lock... [2025-03-25 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:55:27] Production.INFO: 71 MB #Memory Used# [2025-03-25 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:56:05 [end_date_ymd] => 2025-03-25 12:56:05 [RateCDR] => 1 ) [2025-03-25 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:56:05' and `end` < '2025-03-25 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:56:19] Production.INFO: count ==5715 [2025-03-25 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-25 09:56:05 - End Time 2025-03-25 12:56:05 [2025-03-25 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759635', 'tblTempUsageDetail_20' ) start [2025-03-25 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759635', 'tblTempUsageDetail_20' ) end [2025-03-25 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759635', 'tblTempVendorCDR_20' ) start [2025-03-25 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759635', 'tblTempVendorCDR_20' ) end [2025-03-25 12:56:21] Production.INFO: ProcessCDR(1,14759635,1,1,2) [2025-03-25 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759635', 'tblTempUsageDetail_20' ) start [2025-03-25 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759635', 'tblTempUsageDetail_20' ) end [2025-03-25 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:56:27] Production.INFO: ==14129== Releasing lock... [2025-03-25 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:56:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:57:06 [end_date_ymd] => 2025-03-25 12:57:06 [RateCDR] => 1 ) [2025-03-25 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:57:06' and `end` < '2025-03-25 12: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-03-25 12:57:19] Production.INFO: count ==5682 [2025-03-25 12:57:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:57:06 - End Time 2025-03-25 12:57:06 [2025-03-25 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759640', 'tblTempUsageDetail_20' ) start [2025-03-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759640', 'tblTempUsageDetail_20' ) end [2025-03-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759640', 'tblTempVendorCDR_20' ) start [2025-03-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759640', 'tblTempVendorCDR_20' ) end [2025-03-25 12:57:22] Production.INFO: ProcessCDR(1,14759640,1,1,2) [2025-03-25 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759640', 'tblTempUsageDetail_20' ) start [2025-03-25 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759640', 'tblTempUsageDetail_20' ) end [2025-03-25 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:57:27] Production.INFO: ==14218== Releasing lock... [2025-03-25 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:57:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:58:05 [end_date_ymd] => 2025-03-25 12:58:05 [RateCDR] => 1 ) [2025-03-25 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:58:05' and `end` < '2025-03-25 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:58:19] Production.INFO: count ==5654 [2025-03-25 12:58:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:58:05 - End Time 2025-03-25 12:58:05 [2025-03-25 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759645', 'tblTempUsageDetail_20' ) start [2025-03-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759645', 'tblTempUsageDetail_20' ) end [2025-03-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759645', 'tblTempVendorCDR_20' ) start [2025-03-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759645', 'tblTempVendorCDR_20' ) end [2025-03-25 12:58:22] Production.INFO: ProcessCDR(1,14759645,1,1,2) [2025-03-25 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759645', 'tblTempUsageDetail_20' ) start [2025-03-25 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759645', 'tblTempUsageDetail_20' ) end [2025-03-25 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:58:27] Production.INFO: ==14304== Releasing lock... [2025-03-25 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:58:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 09:59:06 [end_date_ymd] => 2025-03-25 12:59:06 [RateCDR] => 1 ) [2025-03-25 12:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 09:59:06' and `end` < '2025-03-25 12:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 12:59:20] Production.INFO: count ==5602 [2025-03-25 12:59:22] Production.ERROR: pbx CDR StartTime 2025-03-25 09:59:06 - End Time 2025-03-25 12:59:06 [2025-03-25 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759650', 'tblTempUsageDetail_20' ) start [2025-03-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759650', 'tblTempUsageDetail_20' ) end [2025-03-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759650', 'tblTempVendorCDR_20' ) start [2025-03-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759650', 'tblTempVendorCDR_20' ) end [2025-03-25 12:59:22] Production.INFO: ProcessCDR(1,14759650,1,1,2) [2025-03-25 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759650', 'tblTempUsageDetail_20' ) start [2025-03-25 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759650', 'tblTempUsageDetail_20' ) end [2025-03-25 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 12:59:27] Production.INFO: ==14393== Releasing lock... [2025-03-25 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 12:59:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:00:06 [end_date_ymd] => 2025-03-25 13:00:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 10:00:06' and `end` < '2025-03-25 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-03-25 13:00:20] Production.INFO: count ==5578 [2025-03-25 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:00:06 - End Time 2025-03-25 13:00:06 [2025-03-25 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759656', 'tblTempUsageDetail_20' ) start [2025-03-25 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759656', 'tblTempUsageDetail_20' ) end [2025-03-25 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759656', 'tblTempVendorCDR_20' ) start [2025-03-25 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759656', 'tblTempVendorCDR_20' ) end [2025-03-25 13:00:22] Production.INFO: ProcessCDR(1,14759656,1,1,2) [2025-03-25 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759656', 'tblTempUsageDetail_20' ) start [2025-03-25 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759656', 'tblTempUsageDetail_20' ) end [2025-03-25 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:00:28] Production.INFO: ==14482== Releasing lock... [2025-03-25 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:00:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:01:05 [end_date_ymd] => 2025-03-25 13:01:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 10:01:05' and `end` < '2025-03-25 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:01:19] Production.INFO: count ==5583 [2025-03-25 13:01:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:01:05 - End Time 2025-03-25 13:01:05 [2025-03-25 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759661', 'tblTempUsageDetail_20' ) start [2025-03-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759661', 'tblTempUsageDetail_20' ) end [2025-03-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759661', 'tblTempVendorCDR_20' ) start [2025-03-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759661', 'tblTempVendorCDR_20' ) end [2025-03-25 13:01:22] Production.INFO: ProcessCDR(1,14759661,1,1,2) [2025-03-25 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759661', 'tblTempUsageDetail_20' ) start [2025-03-25 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759661', 'tblTempUsageDetail_20' ) end [2025-03-25 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:01:27] Production.INFO: ==14593== Releasing lock... [2025-03-25 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:01:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:02:05 [end_date_ymd] => 2025-03-25 13:02:05 [RateCDR] => 1 ) [2025-03-25 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:02:05' and `end` < '2025-03-25 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:02:18] Production.INFO: count ==5597 [2025-03-25 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:02:05 - End Time 2025-03-25 13:02:05 [2025-03-25 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759666', 'tblTempUsageDetail_20' ) start [2025-03-25 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759666', 'tblTempUsageDetail_20' ) end [2025-03-25 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759666', 'tblTempVendorCDR_20' ) start [2025-03-25 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759666', 'tblTempVendorCDR_20' ) end [2025-03-25 13:02:21] Production.INFO: ProcessCDR(1,14759666,1,1,2) [2025-03-25 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759666', 'tblTempUsageDetail_20' ) start [2025-03-25 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759666', 'tblTempUsageDetail_20' ) end [2025-03-25 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:02:26] Production.INFO: ==14690== Releasing lock... [2025-03-25 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:02:26] Production.INFO: 70 MB #Memory Used# [2025-03-25 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:03:06 [end_date_ymd] => 2025-03-25 13:03:06 [RateCDR] => 1 ) [2025-03-25 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:03:06' and `end` < '2025-03-25 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:03:19] Production.INFO: count ==5582 [2025-03-25 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:03:06 - End Time 2025-03-25 13:03:06 [2025-03-25 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759671', 'tblTempUsageDetail_20' ) start [2025-03-25 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759671', 'tblTempUsageDetail_20' ) end [2025-03-25 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759671', 'tblTempVendorCDR_20' ) start [2025-03-25 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759671', 'tblTempVendorCDR_20' ) end [2025-03-25 13:03:22] Production.INFO: ProcessCDR(1,14759671,1,1,2) [2025-03-25 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759671', 'tblTempUsageDetail_20' ) start [2025-03-25 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759671', 'tblTempUsageDetail_20' ) end [2025-03-25 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:03:27] Production.INFO: ==14775== Releasing lock... [2025-03-25 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:03:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:04:05 [end_date_ymd] => 2025-03-25 13:04:05 [RateCDR] => 1 ) [2025-03-25 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:04:05' and `end` < '2025-03-25 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:04:19] Production.INFO: count ==5567 [2025-03-25 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:04:05 - End Time 2025-03-25 13:04:05 [2025-03-25 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759676', 'tblTempUsageDetail_20' ) start [2025-03-25 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759676', 'tblTempUsageDetail_20' ) end [2025-03-25 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759676', 'tblTempVendorCDR_20' ) start [2025-03-25 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759676', 'tblTempVendorCDR_20' ) end [2025-03-25 13:04:21] Production.INFO: ProcessCDR(1,14759676,1,1,2) [2025-03-25 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759676', 'tblTempUsageDetail_20' ) start [2025-03-25 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759676', 'tblTempUsageDetail_20' ) end [2025-03-25 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:04:27] Production.INFO: ==14866== Releasing lock... [2025-03-25 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:04:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:05:05 [end_date_ymd] => 2025-03-25 13:05:05 [RateCDR] => 1 ) [2025-03-25 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:05:05' and `end` < '2025-03-25 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:05:19] Production.INFO: count ==5550 [2025-03-25 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:05:05 - End Time 2025-03-25 13:05:05 [2025-03-25 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759681', 'tblTempUsageDetail_20' ) start [2025-03-25 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759681', 'tblTempUsageDetail_20' ) end [2025-03-25 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759681', 'tblTempVendorCDR_20' ) start [2025-03-25 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759681', 'tblTempVendorCDR_20' ) end [2025-03-25 13:05:22] Production.INFO: ProcessCDR(1,14759681,1,1,2) [2025-03-25 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759681', 'tblTempUsageDetail_20' ) start [2025-03-25 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759681', 'tblTempUsageDetail_20' ) end [2025-03-25 13:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:05:25] Production.INFO: ==14962== Releasing lock... [2025-03-25 13:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:05:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:06:05 [end_date_ymd] => 2025-03-25 13:06:05 [RateCDR] => 1 ) [2025-03-25 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:06:05' and `end` < '2025-03-25 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:06:19] Production.INFO: count ==5572 [2025-03-25 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:06:05 - End Time 2025-03-25 13:06:05 [2025-03-25 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759686', 'tblTempUsageDetail_20' ) start [2025-03-25 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759686', 'tblTempUsageDetail_20' ) end [2025-03-25 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759686', 'tblTempVendorCDR_20' ) start [2025-03-25 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759686', 'tblTempVendorCDR_20' ) end [2025-03-25 13:06:21] Production.INFO: ProcessCDR(1,14759686,1,1,2) [2025-03-25 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759686', 'tblTempUsageDetail_20' ) start [2025-03-25 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759686', 'tblTempUsageDetail_20' ) end [2025-03-25 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:06:27] Production.INFO: ==15047== Releasing lock... [2025-03-25 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:06:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:07:05 [end_date_ymd] => 2025-03-25 13:07:05 [RateCDR] => 1 ) [2025-03-25 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:07:05' and `end` < '2025-03-25 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:07:19] Production.INFO: count ==5596 [2025-03-25 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:07:05 - End Time 2025-03-25 13:07:05 [2025-03-25 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759691', 'tblTempUsageDetail_20' ) start [2025-03-25 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759691', 'tblTempUsageDetail_20' ) end [2025-03-25 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759691', 'tblTempVendorCDR_20' ) start [2025-03-25 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759691', 'tblTempVendorCDR_20' ) end [2025-03-25 13:07:21] Production.INFO: ProcessCDR(1,14759691,1,1,2) [2025-03-25 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759691', 'tblTempUsageDetail_20' ) start [2025-03-25 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759691', 'tblTempUsageDetail_20' ) end [2025-03-25 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:07:27] Production.INFO: ==15136== Releasing lock... [2025-03-25 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:07:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:08:05 [end_date_ymd] => 2025-03-25 13:08:05 [RateCDR] => 1 ) [2025-03-25 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:08:05' and `end` < '2025-03-25 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:08:19] Production.INFO: count ==5635 [2025-03-25 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:08:05 - End Time 2025-03-25 13:08:05 [2025-03-25 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759696', 'tblTempUsageDetail_20' ) start [2025-03-25 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759696', 'tblTempUsageDetail_20' ) end [2025-03-25 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759696', 'tblTempVendorCDR_20' ) start [2025-03-25 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759696', 'tblTempVendorCDR_20' ) end [2025-03-25 13:08:21] Production.INFO: ProcessCDR(1,14759696,1,1,2) [2025-03-25 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759696', 'tblTempUsageDetail_20' ) start [2025-03-25 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759696', 'tblTempUsageDetail_20' ) end [2025-03-25 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:08:27] Production.INFO: ==15222== Releasing lock... [2025-03-25 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:08:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:09:05 [end_date_ymd] => 2025-03-25 13:09:05 [RateCDR] => 1 ) [2025-03-25 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:09:05' and `end` < '2025-03-25 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:09:19] Production.INFO: count ==5710 [2025-03-25 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:09:05 - End Time 2025-03-25 13:09:05 [2025-03-25 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759701', 'tblTempUsageDetail_20' ) start [2025-03-25 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759701', 'tblTempUsageDetail_20' ) end [2025-03-25 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759701', 'tblTempVendorCDR_20' ) start [2025-03-25 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759701', 'tblTempVendorCDR_20' ) end [2025-03-25 13:09:21] Production.INFO: ProcessCDR(1,14759701,1,1,2) [2025-03-25 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759701', 'tblTempUsageDetail_20' ) start [2025-03-25 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759701', 'tblTempUsageDetail_20' ) end [2025-03-25 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:09:27] Production.INFO: ==15309== Releasing lock... [2025-03-25 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:09:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:10:05 [end_date_ymd] => 2025-03-25 13:10:05 [RateCDR] => 1 ) [2025-03-25 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:10:05' and `end` < '2025-03-25 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:10:19] Production.INFO: count ==5713 [2025-03-25 13:10:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:10:05 - End Time 2025-03-25 13:10:05 [2025-03-25 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759706', 'tblTempUsageDetail_20' ) start [2025-03-25 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759706', 'tblTempUsageDetail_20' ) end [2025-03-25 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759706', 'tblTempVendorCDR_20' ) start [2025-03-25 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759706', 'tblTempVendorCDR_20' ) end [2025-03-25 13:10:21] Production.INFO: ProcessCDR(1,14759706,1,1,2) [2025-03-25 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759706', 'tblTempUsageDetail_20' ) start [2025-03-25 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759706', 'tblTempUsageDetail_20' ) end [2025-03-25 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:10:25] Production.INFO: ==15439== Releasing lock... [2025-03-25 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:10:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:11:05 [end_date_ymd] => 2025-03-25 13:11:05 [RateCDR] => 1 ) [2025-03-25 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:11:05' and `end` < '2025-03-25 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:11:19] Production.INFO: count ==5756 [2025-03-25 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:11:05 - End Time 2025-03-25 13:11:05 [2025-03-25 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759712', 'tblTempUsageDetail_20' ) start [2025-03-25 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759712', 'tblTempUsageDetail_20' ) end [2025-03-25 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759712', 'tblTempVendorCDR_20' ) start [2025-03-25 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759712', 'tblTempVendorCDR_20' ) end [2025-03-25 13:11:21] Production.INFO: ProcessCDR(1,14759712,1,1,2) [2025-03-25 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759712', 'tblTempUsageDetail_20' ) start [2025-03-25 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759712', 'tblTempUsageDetail_20' ) end [2025-03-25 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:11:27] Production.INFO: ==15528== Releasing lock... [2025-03-25 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:11:27] Production.INFO: 71 MB #Memory Used# [2025-03-25 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:12:06 [end_date_ymd] => 2025-03-25 13:12:06 [RateCDR] => 1 ) [2025-03-25 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:12:06' and `end` < '2025-03-25 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:12:20] Production.INFO: count ==5765 [2025-03-25 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:12:06 - End Time 2025-03-25 13:12:06 [2025-03-25 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759717', 'tblTempUsageDetail_20' ) start [2025-03-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759717', 'tblTempUsageDetail_20' ) end [2025-03-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759717', 'tblTempVendorCDR_20' ) start [2025-03-25 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759717', 'tblTempVendorCDR_20' ) end [2025-03-25 13:12:22] Production.INFO: ProcessCDR(1,14759717,1,1,2) [2025-03-25 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759717', 'tblTempUsageDetail_20' ) start [2025-03-25 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759717', 'tblTempUsageDetail_20' ) end [2025-03-25 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:12:28] Production.INFO: ==15615== Releasing lock... [2025-03-25 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:12:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:13:06 [end_date_ymd] => 2025-03-25 13:13:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 10:13:06' and `end` < '2025-03-25 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-03-25 13:13:19] Production.INFO: count ==5776 [2025-03-25 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:13:06 - End Time 2025-03-25 13:13:06 [2025-03-25 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759722', 'tblTempUsageDetail_20' ) start [2025-03-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759722', 'tblTempUsageDetail_20' ) end [2025-03-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759722', 'tblTempVendorCDR_20' ) start [2025-03-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759722', 'tblTempVendorCDR_20' ) end [2025-03-25 13:13:22] Production.INFO: ProcessCDR(1,14759722,1,1,2) [2025-03-25 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759722', 'tblTempUsageDetail_20' ) start [2025-03-25 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759722', 'tblTempUsageDetail_20' ) end [2025-03-25 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:13:28] Production.INFO: ==15701== Releasing lock... [2025-03-25 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:13:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:14:05 [end_date_ymd] => 2025-03-25 13:14:05 [RateCDR] => 1 ) [2025-03-25 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:14:05' and `end` < '2025-03-25 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:14:18] Production.INFO: count ==5783 [2025-03-25 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:14:05 - End Time 2025-03-25 13:14:05 [2025-03-25 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759727', 'tblTempUsageDetail_20' ) start [2025-03-25 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759727', 'tblTempUsageDetail_20' ) end [2025-03-25 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759727', 'tblTempVendorCDR_20' ) start [2025-03-25 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759727', 'tblTempVendorCDR_20' ) end [2025-03-25 13:14:21] Production.INFO: ProcessCDR(1,14759727,1,1,2) [2025-03-25 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759727', 'tblTempUsageDetail_20' ) start [2025-03-25 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759727', 'tblTempUsageDetail_20' ) end [2025-03-25 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:14:26] Production.INFO: ==15794== Releasing lock... [2025-03-25 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:14:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:15:05 [end_date_ymd] => 2025-03-25 13:15:05 [RateCDR] => 1 ) [2025-03-25 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:15:05' and `end` < '2025-03-25 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:15:18] Production.INFO: count ==5798 [2025-03-25 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:15:05 - End Time 2025-03-25 13:15:05 [2025-03-25 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759732', 'tblTempUsageDetail_20' ) start [2025-03-25 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759732', 'tblTempUsageDetail_20' ) end [2025-03-25 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759732', 'tblTempVendorCDR_20' ) start [2025-03-25 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759732', 'tblTempVendorCDR_20' ) end [2025-03-25 13:15:21] Production.INFO: ProcessCDR(1,14759732,1,1,2) [2025-03-25 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759732', 'tblTempUsageDetail_20' ) start [2025-03-25 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759732', 'tblTempUsageDetail_20' ) end [2025-03-25 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:15:24] Production.INFO: ==15883== Releasing lock... [2025-03-25 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:15:24] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:16:05 [end_date_ymd] => 2025-03-25 13:16:05 [RateCDR] => 1 ) [2025-03-25 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:16:05' and `end` < '2025-03-25 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:16:19] Production.INFO: count ==5776 [2025-03-25 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:16:05 - End Time 2025-03-25 13:16:05 [2025-03-25 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759737', 'tblTempUsageDetail_20' ) start [2025-03-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759737', 'tblTempUsageDetail_20' ) end [2025-03-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759737', 'tblTempVendorCDR_20' ) start [2025-03-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759737', 'tblTempVendorCDR_20' ) end [2025-03-25 13:16:21] Production.INFO: ProcessCDR(1,14759737,1,1,2) [2025-03-25 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759737', 'tblTempUsageDetail_20' ) start [2025-03-25 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759737', 'tblTempUsageDetail_20' ) end [2025-03-25 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:16:26] Production.INFO: ==15965== Releasing lock... [2025-03-25 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:16:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:17:05 [end_date_ymd] => 2025-03-25 13:17:05 [RateCDR] => 1 ) [2025-03-25 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:17:05' and `end` < '2025-03-25 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:17:19] Production.INFO: count ==5800 [2025-03-25 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:17:05 - End Time 2025-03-25 13:17:05 [2025-03-25 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759742', 'tblTempUsageDetail_20' ) start [2025-03-25 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759742', 'tblTempUsageDetail_20' ) end [2025-03-25 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759742', 'tblTempVendorCDR_20' ) start [2025-03-25 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759742', 'tblTempVendorCDR_20' ) end [2025-03-25 13:17:21] Production.INFO: ProcessCDR(1,14759742,1,1,2) [2025-03-25 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759742', 'tblTempUsageDetail_20' ) start [2025-03-25 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759742', 'tblTempUsageDetail_20' ) end [2025-03-25 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:17:27] Production.INFO: ==16055== Releasing lock... [2025-03-25 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:17:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:18:05 [end_date_ymd] => 2025-03-25 13:18:05 [RateCDR] => 1 ) [2025-03-25 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:18:05' and `end` < '2025-03-25 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:18:19] Production.INFO: count ==5809 [2025-03-25 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:18:05 - End Time 2025-03-25 13:18:05 [2025-03-25 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759747', 'tblTempUsageDetail_20' ) start [2025-03-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759747', 'tblTempUsageDetail_20' ) end [2025-03-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759747', 'tblTempVendorCDR_20' ) start [2025-03-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759747', 'tblTempVendorCDR_20' ) end [2025-03-25 13:18:21] Production.INFO: ProcessCDR(1,14759747,1,1,2) [2025-03-25 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759747', 'tblTempUsageDetail_20' ) start [2025-03-25 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759747', 'tblTempUsageDetail_20' ) end [2025-03-25 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:18:27] Production.INFO: ==16152== Releasing lock... [2025-03-25 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:19:06 [end_date_ymd] => 2025-03-25 13:19:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 10:19:06' and `end` < '2025-03-25 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-03-25 13:19:19] Production.INFO: count ==5812 [2025-03-25 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:19:06 - End Time 2025-03-25 13:19:06 [2025-03-25 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759752', 'tblTempUsageDetail_20' ) start [2025-03-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759752', 'tblTempUsageDetail_20' ) end [2025-03-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759752', 'tblTempVendorCDR_20' ) start [2025-03-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759752', 'tblTempVendorCDR_20' ) end [2025-03-25 13:19:22] Production.INFO: ProcessCDR(1,14759752,1,1,2) [2025-03-25 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759752', 'tblTempUsageDetail_20' ) start [2025-03-25 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759752', 'tblTempUsageDetail_20' ) end [2025-03-25 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:19:27] Production.INFO: ==16244== Releasing lock... [2025-03-25 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:19:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:20:06 [end_date_ymd] => 2025-03-25 13:20:06 [RateCDR] => 1 ) [2025-03-25 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:20:06' and `end` < '2025-03-25 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:20:20] Production.INFO: count ==5823 [2025-03-25 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:20:06 - End Time 2025-03-25 13:20:06 [2025-03-25 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759758', 'tblTempUsageDetail_20' ) start [2025-03-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759758', 'tblTempUsageDetail_20' ) end [2025-03-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759758', 'tblTempVendorCDR_20' ) start [2025-03-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759758', 'tblTempVendorCDR_20' ) end [2025-03-25 13:20:23] Production.INFO: ProcessCDR(1,14759758,1,1,2) [2025-03-25 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759758', 'tblTempUsageDetail_20' ) start [2025-03-25 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759758', 'tblTempUsageDetail_20' ) end [2025-03-25 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:20:28] Production.INFO: ==16335== Releasing lock... [2025-03-25 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:20:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:21:05 [end_date_ymd] => 2025-03-25 13:21:05 [RateCDR] => 1 ) [2025-03-25 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:21:05' and `end` < '2025-03-25 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:21:19] Production.INFO: count ==5838 [2025-03-25 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:21:05 - End Time 2025-03-25 13:21:05 [2025-03-25 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759763', 'tblTempUsageDetail_20' ) start [2025-03-25 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759763', 'tblTempUsageDetail_20' ) end [2025-03-25 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759763', 'tblTempVendorCDR_20' ) start [2025-03-25 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759763', 'tblTempVendorCDR_20' ) end [2025-03-25 13:21:21] Production.INFO: ProcessCDR(1,14759763,1,1,2) [2025-03-25 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759763', 'tblTempUsageDetail_20' ) start [2025-03-25 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759763', 'tblTempUsageDetail_20' ) end [2025-03-25 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:21:27] Production.INFO: ==16422== Releasing lock... [2025-03-25 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:21:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:22:06 [end_date_ymd] => 2025-03-25 13:22:06 [RateCDR] => 1 ) [2025-03-25 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:22:06' and `end` < '2025-03-25 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:22:20] Production.INFO: count ==5844 [2025-03-25 13:22:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:22:06 - End Time 2025-03-25 13:22:06 [2025-03-25 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759768', 'tblTempUsageDetail_20' ) start [2025-03-25 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759768', 'tblTempUsageDetail_20' ) end [2025-03-25 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759768', 'tblTempVendorCDR_20' ) start [2025-03-25 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759768', 'tblTempVendorCDR_20' ) end [2025-03-25 13:22:22] Production.INFO: ProcessCDR(1,14759768,1,1,2) [2025-03-25 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759768', 'tblTempUsageDetail_20' ) start [2025-03-25 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759768', 'tblTempUsageDetail_20' ) end [2025-03-25 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:22:28] Production.INFO: ==16517== Releasing lock... [2025-03-25 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:22:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:23:05 [end_date_ymd] => 2025-03-25 13:23:05 [RateCDR] => 1 ) [2025-03-25 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:23:05' and `end` < '2025-03-25 13: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-03-25 13:23:19] Production.INFO: count ==5833 [2025-03-25 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:23:05 - End Time 2025-03-25 13:23:05 [2025-03-25 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759773', 'tblTempUsageDetail_20' ) start [2025-03-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759773', 'tblTempUsageDetail_20' ) end [2025-03-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759773', 'tblTempVendorCDR_20' ) start [2025-03-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759773', 'tblTempVendorCDR_20' ) end [2025-03-25 13:23:21] Production.INFO: ProcessCDR(1,14759773,1,1,2) [2025-03-25 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759773', 'tblTempUsageDetail_20' ) start [2025-03-25 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759773', 'tblTempUsageDetail_20' ) end [2025-03-25 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:23:27] Production.INFO: ==16609== Releasing lock... [2025-03-25 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:23:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:24:06 [end_date_ymd] => 2025-03-25 13:24:06 [RateCDR] => 1 ) [2025-03-25 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:24:06' and `end` < '2025-03-25 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:24:19] Production.INFO: count ==5843 [2025-03-25 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:24:06 - End Time 2025-03-25 13:24:06 [2025-03-25 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759778', 'tblTempUsageDetail_20' ) start [2025-03-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759778', 'tblTempUsageDetail_20' ) end [2025-03-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759778', 'tblTempVendorCDR_20' ) start [2025-03-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759778', 'tblTempVendorCDR_20' ) end [2025-03-25 13:24:22] Production.INFO: ProcessCDR(1,14759778,1,1,2) [2025-03-25 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759778', 'tblTempUsageDetail_20' ) start [2025-03-25 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759778', 'tblTempUsageDetail_20' ) end [2025-03-25 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:24:28] Production.INFO: ==16705== Releasing lock... [2025-03-25 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:24:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:25:05 [end_date_ymd] => 2025-03-25 13:25:05 [RateCDR] => 1 ) [2025-03-25 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:25:05' and `end` < '2025-03-25 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:25:19] Production.INFO: count ==5877 [2025-03-25 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:25:05 - End Time 2025-03-25 13:25:05 [2025-03-25 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759783', 'tblTempUsageDetail_20' ) start [2025-03-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759783', 'tblTempUsageDetail_20' ) end [2025-03-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759783', 'tblTempVendorCDR_20' ) start [2025-03-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759783', 'tblTempVendorCDR_20' ) end [2025-03-25 13:25:22] Production.INFO: ProcessCDR(1,14759783,1,1,2) [2025-03-25 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759783', 'tblTempUsageDetail_20' ) start [2025-03-25 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759783', 'tblTempUsageDetail_20' ) end [2025-03-25 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:25:27] Production.INFO: ==16827== Releasing lock... [2025-03-25 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:25:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:26:06 [end_date_ymd] => 2025-03-25 13:26:06 [RateCDR] => 1 ) [2025-03-25 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:26:06' and `end` < '2025-03-25 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:26:20] Production.INFO: count ==5885 [2025-03-25 13:26:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:26:06 - End Time 2025-03-25 13:26:06 [2025-03-25 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759788', 'tblTempUsageDetail_20' ) start [2025-03-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759788', 'tblTempUsageDetail_20' ) end [2025-03-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759788', 'tblTempVendorCDR_20' ) start [2025-03-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759788', 'tblTempVendorCDR_20' ) end [2025-03-25 13:26:22] Production.INFO: ProcessCDR(1,14759788,1,1,2) [2025-03-25 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759788', 'tblTempUsageDetail_20' ) start [2025-03-25 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759788', 'tblTempUsageDetail_20' ) end [2025-03-25 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:26:28] Production.INFO: ==16926== Releasing lock... [2025-03-25 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:26:28] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:27:05 [end_date_ymd] => 2025-03-25 13:27:05 [RateCDR] => 1 ) [2025-03-25 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:27:05' and `end` < '2025-03-25 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:27:19] Production.INFO: count ==5883 [2025-03-25 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:27:05 - End Time 2025-03-25 13:27:05 [2025-03-25 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759793', 'tblTempUsageDetail_20' ) start [2025-03-25 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759793', 'tblTempUsageDetail_20' ) end [2025-03-25 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759793', 'tblTempVendorCDR_20' ) start [2025-03-25 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759793', 'tblTempVendorCDR_20' ) end [2025-03-25 13:27:21] Production.INFO: ProcessCDR(1,14759793,1,1,2) [2025-03-25 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759793', 'tblTempUsageDetail_20' ) start [2025-03-25 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759793', 'tblTempUsageDetail_20' ) end [2025-03-25 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:27:27] Production.INFO: ==17011== Releasing lock... [2025-03-25 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:27:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:28:05 [end_date_ymd] => 2025-03-25 13:28:05 [RateCDR] => 1 ) [2025-03-25 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:28:05' and `end` < '2025-03-25 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:28:19] Production.INFO: count ==5936 [2025-03-25 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:28:05 - End Time 2025-03-25 13:28:05 [2025-03-25 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759798', 'tblTempUsageDetail_20' ) start [2025-03-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759798', 'tblTempUsageDetail_20' ) end [2025-03-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759798', 'tblTempVendorCDR_20' ) start [2025-03-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759798', 'tblTempVendorCDR_20' ) end [2025-03-25 13:28:22] Production.INFO: ProcessCDR(1,14759798,1,1,2) [2025-03-25 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759798', 'tblTempUsageDetail_20' ) start [2025-03-25 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759798', 'tblTempUsageDetail_20' ) end [2025-03-25 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:28:27] Production.INFO: ==17101== Releasing lock... [2025-03-25 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:28:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-25 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:29:05 [end_date_ymd] => 2025-03-25 13:29:05 [RateCDR] => 1 ) [2025-03-25 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:29:05' and `end` < '2025-03-25 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:29:19] Production.INFO: count ==5933 [2025-03-25 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:29:05 - End Time 2025-03-25 13:29:05 [2025-03-25 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759803', 'tblTempUsageDetail_20' ) start [2025-03-25 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759803', 'tblTempUsageDetail_20' ) end [2025-03-25 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759803', 'tblTempVendorCDR_20' ) start [2025-03-25 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759803', 'tblTempVendorCDR_20' ) end [2025-03-25 13:29:21] Production.INFO: ProcessCDR(1,14759803,1,1,2) [2025-03-25 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759803', 'tblTempUsageDetail_20' ) start [2025-03-25 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759803', 'tblTempUsageDetail_20' ) end [2025-03-25 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:29:26] Production.INFO: ==17190== Releasing lock... [2025-03-25 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:29:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-25 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:30:06 [end_date_ymd] => 2025-03-25 13:30:06 [RateCDR] => 1 ) [2025-03-25 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:30:06' and `end` < '2025-03-25 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:30:20] Production.INFO: count ==5926 [2025-03-25 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:30:06 - End Time 2025-03-25 13:30:06 [2025-03-25 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759808', 'tblTempUsageDetail_20' ) start [2025-03-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759808', 'tblTempUsageDetail_20' ) end [2025-03-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759808', 'tblTempVendorCDR_20' ) start [2025-03-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759808', 'tblTempVendorCDR_20' ) end [2025-03-25 13:30:22] Production.INFO: ProcessCDR(1,14759808,1,1,2) [2025-03-25 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759808', 'tblTempUsageDetail_20' ) start [2025-03-25 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759808', 'tblTempUsageDetail_20' ) end [2025-03-25 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:30:28] Production.INFO: ==17280== Releasing lock... [2025-03-25 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:30:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:31:05 [end_date_ymd] => 2025-03-25 13:31:05 [RateCDR] => 1 ) [2025-03-25 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:31:05' and `end` < '2025-03-25 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:31:19] Production.INFO: count ==5908 [2025-03-25 13:31:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:31:05 - End Time 2025-03-25 13:31:05 [2025-03-25 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759814', 'tblTempUsageDetail_20' ) start [2025-03-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759814', 'tblTempUsageDetail_20' ) end [2025-03-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759814', 'tblTempVendorCDR_20' ) start [2025-03-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759814', 'tblTempVendorCDR_20' ) end [2025-03-25 13:31:22] Production.INFO: ProcessCDR(1,14759814,1,1,2) [2025-03-25 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759814', 'tblTempUsageDetail_20' ) start [2025-03-25 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759814', 'tblTempUsageDetail_20' ) end [2025-03-25 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:31:27] Production.INFO: ==17369== Releasing lock... [2025-03-25 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:31:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:32:06 [end_date_ymd] => 2025-03-25 13:32:06 [RateCDR] => 1 ) [2025-03-25 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:32:06' and `end` < '2025-03-25 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:32:20] Production.INFO: count ==5896 [2025-03-25 13:32:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:32:06 - End Time 2025-03-25 13:32:06 [2025-03-25 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759819', 'tblTempUsageDetail_20' ) start [2025-03-25 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759819', 'tblTempUsageDetail_20' ) end [2025-03-25 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759819', 'tblTempVendorCDR_20' ) start [2025-03-25 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759819', 'tblTempVendorCDR_20' ) end [2025-03-25 13:32:22] Production.INFO: ProcessCDR(1,14759819,1,1,2) [2025-03-25 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759819', 'tblTempUsageDetail_20' ) start [2025-03-25 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759819', 'tblTempUsageDetail_20' ) end [2025-03-25 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:32:28] Production.INFO: ==17457== Releasing lock... [2025-03-25 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:32:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:33:05 [end_date_ymd] => 2025-03-25 13:33:05 [RateCDR] => 1 ) [2025-03-25 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:33:05' and `end` < '2025-03-25 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:33:19] Production.INFO: count ==5913 [2025-03-25 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:33:05 - End Time 2025-03-25 13:33:05 [2025-03-25 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759824', 'tblTempUsageDetail_20' ) start [2025-03-25 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759824', 'tblTempUsageDetail_20' ) end [2025-03-25 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759824', 'tblTempVendorCDR_20' ) start [2025-03-25 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759824', 'tblTempVendorCDR_20' ) end [2025-03-25 13:33:22] Production.INFO: ProcessCDR(1,14759824,1,1,2) [2025-03-25 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759824', 'tblTempUsageDetail_20' ) start [2025-03-25 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759824', 'tblTempUsageDetail_20' ) end [2025-03-25 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:33:27] Production.INFO: ==17550== Releasing lock... [2025-03-25 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:33:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:34:06 [end_date_ymd] => 2025-03-25 13:34:06 [RateCDR] => 1 ) [2025-03-25 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:34:06' and `end` < '2025-03-25 13:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:34:19] Production.INFO: count ==5930 [2025-03-25 13:34:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:34:06 - End Time 2025-03-25 13:34:06 [2025-03-25 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759829', 'tblTempUsageDetail_20' ) start [2025-03-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759829', 'tblTempUsageDetail_20' ) end [2025-03-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759829', 'tblTempVendorCDR_20' ) start [2025-03-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759829', 'tblTempVendorCDR_20' ) end [2025-03-25 13:34:22] Production.INFO: ProcessCDR(1,14759829,1,1,2) [2025-03-25 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759829', 'tblTempUsageDetail_20' ) start [2025-03-25 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759829', 'tblTempUsageDetail_20' ) end [2025-03-25 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:34:27] Production.INFO: ==17638== Releasing lock... [2025-03-25 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:34:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-25 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:35:05 [end_date_ymd] => 2025-03-25 13:35:05 [RateCDR] => 1 ) [2025-03-25 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:35:05' and `end` < '2025-03-25 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:35:19] Production.INFO: count ==5950 [2025-03-25 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:35:05 - End Time 2025-03-25 13:35:05 [2025-03-25 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759834', 'tblTempUsageDetail_20' ) start [2025-03-25 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759834', 'tblTempUsageDetail_20' ) end [2025-03-25 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759834', 'tblTempVendorCDR_20' ) start [2025-03-25 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759834', 'tblTempVendorCDR_20' ) end [2025-03-25 13:35:21] Production.INFO: ProcessCDR(1,14759834,1,1,2) [2025-03-25 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759834', 'tblTempUsageDetail_20' ) start [2025-03-25 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759834', 'tblTempUsageDetail_20' ) end [2025-03-25 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:35:27] Production.INFO: ==17723== Releasing lock... [2025-03-25 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:35:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-25 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:36:06 [end_date_ymd] => 2025-03-25 13:36:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 10:36:06' and `end` < '2025-03-25 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-03-25 13:36:19] Production.INFO: count ==5956 [2025-03-25 13:36:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:36:06 - End Time 2025-03-25 13:36:06 [2025-03-25 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759839', 'tblTempUsageDetail_20' ) start [2025-03-25 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759839', 'tblTempUsageDetail_20' ) end [2025-03-25 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759839', 'tblTempVendorCDR_20' ) start [2025-03-25 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759839', 'tblTempVendorCDR_20' ) end [2025-03-25 13:36:22] Production.INFO: ProcessCDR(1,14759839,1,1,2) [2025-03-25 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759839', 'tblTempUsageDetail_20' ) start [2025-03-25 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759839', 'tblTempUsageDetail_20' ) end [2025-03-25 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:36:26] Production.INFO: ==17808== Releasing lock... [2025-03-25 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:36:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-25 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:37:05 [end_date_ymd] => 2025-03-25 13:37:05 [RateCDR] => 1 ) [2025-03-25 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:37:05' and `end` < '2025-03-25 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:37:19] Production.INFO: count ==5965 [2025-03-25 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:37:05 - End Time 2025-03-25 13:37:05 [2025-03-25 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759844', 'tblTempUsageDetail_20' ) start [2025-03-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759844', 'tblTempUsageDetail_20' ) end [2025-03-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759844', 'tblTempVendorCDR_20' ) start [2025-03-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759844', 'tblTempVendorCDR_20' ) end [2025-03-25 13:37:21] Production.INFO: ProcessCDR(1,14759844,1,1,2) [2025-03-25 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759844', 'tblTempUsageDetail_20' ) start [2025-03-25 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759844', 'tblTempUsageDetail_20' ) end [2025-03-25 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:37:26] Production.INFO: ==17899== Releasing lock... [2025-03-25 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:37:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-25 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:38:05 [end_date_ymd] => 2025-03-25 13:38:05 [RateCDR] => 1 ) [2025-03-25 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:38:05' and `end` < '2025-03-25 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:38:19] Production.INFO: count ==5967 [2025-03-25 13:38:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:38:05 - End Time 2025-03-25 13:38:05 [2025-03-25 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759849', 'tblTempUsageDetail_20' ) start [2025-03-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759849', 'tblTempUsageDetail_20' ) end [2025-03-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759849', 'tblTempVendorCDR_20' ) start [2025-03-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759849', 'tblTempVendorCDR_20' ) end [2025-03-25 13:38:22] Production.INFO: ProcessCDR(1,14759849,1,1,2) [2025-03-25 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759849', 'tblTempUsageDetail_20' ) start [2025-03-25 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759849', 'tblTempUsageDetail_20' ) end [2025-03-25 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:38:27] Production.INFO: ==17989== Releasing lock... [2025-03-25 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:38:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-25 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:39:05 [end_date_ymd] => 2025-03-25 13:39:05 [RateCDR] => 1 ) [2025-03-25 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:39:05' and `end` < '2025-03-25 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:39:19] Production.INFO: count ==5963 [2025-03-25 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:39:05 - End Time 2025-03-25 13:39:05 [2025-03-25 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759854', 'tblTempUsageDetail_20' ) start [2025-03-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759854', 'tblTempUsageDetail_20' ) end [2025-03-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759854', 'tblTempVendorCDR_20' ) start [2025-03-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759854', 'tblTempVendorCDR_20' ) end [2025-03-25 13:39:21] Production.INFO: ProcessCDR(1,14759854,1,1,2) [2025-03-25 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759854', 'tblTempUsageDetail_20' ) start [2025-03-25 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759854', 'tblTempUsageDetail_20' ) end [2025-03-25 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:39:27] Production.INFO: ==18096== Releasing lock... [2025-03-25 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:39:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-25 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:40:07 [end_date_ymd] => 2025-03-25 13:40:07 [RateCDR] => 1 ) [2025-03-25 13:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:40:07' and `end` < '2025-03-25 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:40:20] Production.INFO: count ==5946 [2025-03-25 13:40:23] Production.ERROR: pbx CDR StartTime 2025-03-25 10:40:07 - End Time 2025-03-25 13:40:07 [2025-03-25 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759860', 'tblTempUsageDetail_20' ) start [2025-03-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759860', 'tblTempUsageDetail_20' ) end [2025-03-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759860', 'tblTempVendorCDR_20' ) start [2025-03-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759860', 'tblTempVendorCDR_20' ) end [2025-03-25 13:40:23] Production.INFO: ProcessCDR(1,14759860,1,1,2) [2025-03-25 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759860', 'tblTempUsageDetail_20' ) start [2025-03-25 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759860', 'tblTempUsageDetail_20' ) end [2025-03-25 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:40:28] Production.INFO: ==18191== Releasing lock... [2025-03-25 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:40:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-25 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:41:05 [end_date_ymd] => 2025-03-25 13:41:05 [RateCDR] => 1 ) [2025-03-25 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:41:05' and `end` < '2025-03-25 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:41:18] Production.INFO: count ==5905 [2025-03-25 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:41:05 - End Time 2025-03-25 13:41:05 [2025-03-25 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759865', 'tblTempUsageDetail_20' ) start [2025-03-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759865', 'tblTempUsageDetail_20' ) end [2025-03-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759865', 'tblTempVendorCDR_20' ) start [2025-03-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759865', 'tblTempVendorCDR_20' ) end [2025-03-25 13:41:21] Production.INFO: ProcessCDR(1,14759865,1,1,2) [2025-03-25 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759865', 'tblTempUsageDetail_20' ) start [2025-03-25 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759865', 'tblTempUsageDetail_20' ) end [2025-03-25 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:41:27] Production.INFO: ==18324== Releasing lock... [2025-03-25 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:41:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-25 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:42:05 [end_date_ymd] => 2025-03-25 13:42:05 [RateCDR] => 1 ) [2025-03-25 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:42:05' and `end` < '2025-03-25 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:42:19] Production.INFO: count ==5875 [2025-03-25 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:42:05 - End Time 2025-03-25 13:42:05 [2025-03-25 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759870', 'tblTempUsageDetail_20' ) start [2025-03-25 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759870', 'tblTempUsageDetail_20' ) end [2025-03-25 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759870', 'tblTempVendorCDR_20' ) start [2025-03-25 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759870', 'tblTempVendorCDR_20' ) end [2025-03-25 13:42:21] Production.INFO: ProcessCDR(1,14759870,1,1,2) [2025-03-25 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759870', 'tblTempUsageDetail_20' ) start [2025-03-25 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759870', 'tblTempUsageDetail_20' ) end [2025-03-25 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:42:27] Production.INFO: ==18419== Releasing lock... [2025-03-25 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:42:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:43:05 [end_date_ymd] => 2025-03-25 13:43:05 [RateCDR] => 1 ) [2025-03-25 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:43:05' and `end` < '2025-03-25 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:43:19] Production.INFO: count ==5871 [2025-03-25 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:43:05 - End Time 2025-03-25 13:43:05 [2025-03-25 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759875', 'tblTempUsageDetail_20' ) start [2025-03-25 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759875', 'tblTempUsageDetail_20' ) end [2025-03-25 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759875', 'tblTempVendorCDR_20' ) start [2025-03-25 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759875', 'tblTempVendorCDR_20' ) end [2025-03-25 13:43:21] Production.INFO: ProcessCDR(1,14759875,1,1,2) [2025-03-25 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759875', 'tblTempUsageDetail_20' ) start [2025-03-25 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759875', 'tblTempUsageDetail_20' ) end [2025-03-25 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:43:27] Production.INFO: ==18509== Releasing lock... [2025-03-25 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:43:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:44:06 [end_date_ymd] => 2025-03-25 13:44:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 10:44:06' and `end` < '2025-03-25 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-03-25 13:44:19] Production.INFO: count ==5865 [2025-03-25 13:44:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:44:06 - End Time 2025-03-25 13:44:06 [2025-03-25 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759880', 'tblTempUsageDetail_20' ) start [2025-03-25 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759880', 'tblTempUsageDetail_20' ) end [2025-03-25 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759880', 'tblTempVendorCDR_20' ) start [2025-03-25 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759880', 'tblTempVendorCDR_20' ) end [2025-03-25 13:44:22] Production.INFO: ProcessCDR(1,14759880,1,1,2) [2025-03-25 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759880', 'tblTempUsageDetail_20' ) start [2025-03-25 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759880', 'tblTempUsageDetail_20' ) end [2025-03-25 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:44:27] Production.INFO: ==18605== Releasing lock... [2025-03-25 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:44:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:45:05 [end_date_ymd] => 2025-03-25 13:45:05 [RateCDR] => 1 ) [2025-03-25 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:45:05' and `end` < '2025-03-25 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:45:19] Production.INFO: count ==5830 [2025-03-25 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:45:05 - End Time 2025-03-25 13:45:05 [2025-03-25 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759885', 'tblTempUsageDetail_20' ) start [2025-03-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759885', 'tblTempUsageDetail_20' ) end [2025-03-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759885', 'tblTempVendorCDR_20' ) start [2025-03-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759885', 'tblTempVendorCDR_20' ) end [2025-03-25 13:45:22] Production.INFO: ProcessCDR(1,14759885,1,1,2) [2025-03-25 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759885', 'tblTempUsageDetail_20' ) start [2025-03-25 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759885', 'tblTempUsageDetail_20' ) end [2025-03-25 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:45:27] Production.INFO: ==18699== Releasing lock... [2025-03-25 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:45:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:46:05 [end_date_ymd] => 2025-03-25 13:46:05 [RateCDR] => 1 ) [2025-03-25 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:46:05' and `end` < '2025-03-25 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:46:19] Production.INFO: count ==5850 [2025-03-25 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:46:05 - End Time 2025-03-25 13:46:05 [2025-03-25 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759890', 'tblTempUsageDetail_20' ) start [2025-03-25 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759890', 'tblTempUsageDetail_20' ) end [2025-03-25 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759890', 'tblTempVendorCDR_20' ) start [2025-03-25 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759890', 'tblTempVendorCDR_20' ) end [2025-03-25 13:46:21] Production.INFO: ProcessCDR(1,14759890,1,1,2) [2025-03-25 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759890', 'tblTempUsageDetail_20' ) start [2025-03-25 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759890', 'tblTempUsageDetail_20' ) end [2025-03-25 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:46:27] Production.INFO: ==18789== Releasing lock... [2025-03-25 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:46:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:47:06 [end_date_ymd] => 2025-03-25 13:47:06 [RateCDR] => 1 ) [2025-03-25 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:47:06' and `end` < '2025-03-25 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:47:19] Production.INFO: count ==5880 [2025-03-25 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:47:06 - End Time 2025-03-25 13:47:06 [2025-03-25 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759895', 'tblTempUsageDetail_20' ) start [2025-03-25 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759895', 'tblTempUsageDetail_20' ) end [2025-03-25 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759895', 'tblTempVendorCDR_20' ) start [2025-03-25 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759895', 'tblTempVendorCDR_20' ) end [2025-03-25 13:47:22] Production.INFO: ProcessCDR(1,14759895,1,1,2) [2025-03-25 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759895', 'tblTempUsageDetail_20' ) start [2025-03-25 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759895', 'tblTempUsageDetail_20' ) end [2025-03-25 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:47:27] Production.INFO: ==18881== Releasing lock... [2025-03-25 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:47:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:48:05 [end_date_ymd] => 2025-03-25 13:48:05 [RateCDR] => 1 ) [2025-03-25 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:48:05' and `end` < '2025-03-25 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:48:19] Production.INFO: count ==5885 [2025-03-25 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:48:05 - End Time 2025-03-25 13:48:05 [2025-03-25 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759900', 'tblTempUsageDetail_20' ) start [2025-03-25 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759900', 'tblTempUsageDetail_20' ) end [2025-03-25 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759900', 'tblTempVendorCDR_20' ) start [2025-03-25 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759900', 'tblTempVendorCDR_20' ) end [2025-03-25 13:48:21] Production.INFO: ProcessCDR(1,14759900,1,1,2) [2025-03-25 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759900', 'tblTempUsageDetail_20' ) start [2025-03-25 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759900', 'tblTempUsageDetail_20' ) end [2025-03-25 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:48:27] Production.INFO: ==18970== Releasing lock... [2025-03-25 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:48:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:49:06 [end_date_ymd] => 2025-03-25 13:49:06 [RateCDR] => 1 ) [2025-03-25 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:49:06' and `end` < '2025-03-25 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:49:19] Production.INFO: count ==5879 [2025-03-25 13:49:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:49:06 - End Time 2025-03-25 13:49:06 [2025-03-25 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759905', 'tblTempUsageDetail_20' ) start [2025-03-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759905', 'tblTempUsageDetail_20' ) end [2025-03-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759905', 'tblTempVendorCDR_20' ) start [2025-03-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759905', 'tblTempVendorCDR_20' ) end [2025-03-25 13:49:22] Production.INFO: ProcessCDR(1,14759905,1,1,2) [2025-03-25 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759905', 'tblTempUsageDetail_20' ) start [2025-03-25 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759905', 'tblTempUsageDetail_20' ) end [2025-03-25 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:49:28] Production.INFO: ==19064== Releasing lock... [2025-03-25 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:49:28] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:50:06 [end_date_ymd] => 2025-03-25 13:50:06 [RateCDR] => 1 ) [2025-03-25 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:50:06' and `end` < '2025-03-25 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:50:20] Production.INFO: count ==5873 [2025-03-25 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:50:06 - End Time 2025-03-25 13:50:06 [2025-03-25 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759911', 'tblTempUsageDetail_20' ) start [2025-03-25 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759911', 'tblTempUsageDetail_20' ) end [2025-03-25 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759911', 'tblTempVendorCDR_20' ) start [2025-03-25 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759911', 'tblTempVendorCDR_20' ) end [2025-03-25 13:50:22] Production.INFO: ProcessCDR(1,14759911,1,1,2) [2025-03-25 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759911', 'tblTempUsageDetail_20' ) start [2025-03-25 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759911', 'tblTempUsageDetail_20' ) end [2025-03-25 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:50:28] Production.INFO: ==19149== Releasing lock... [2025-03-25 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:50:28] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:51:06 [end_date_ymd] => 2025-03-25 13:51:06 [RateCDR] => 1 ) [2025-03-25 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:51:06' and `end` < '2025-03-25 13: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-03-25 13:51:19] Production.INFO: count ==5872 [2025-03-25 13:51:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:51:06 - End Time 2025-03-25 13:51:06 [2025-03-25 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759916', 'tblTempUsageDetail_20' ) start [2025-03-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759916', 'tblTempUsageDetail_20' ) end [2025-03-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759916', 'tblTempVendorCDR_20' ) start [2025-03-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759916', 'tblTempVendorCDR_20' ) end [2025-03-25 13:51:22] Production.INFO: ProcessCDR(1,14759916,1,1,2) [2025-03-25 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759916', 'tblTempUsageDetail_20' ) start [2025-03-25 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759916', 'tblTempUsageDetail_20' ) end [2025-03-25 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:51:28] Production.INFO: ==19228== Releasing lock... [2025-03-25 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:51:28] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:52:05 [end_date_ymd] => 2025-03-25 13:52:05 [RateCDR] => 1 ) [2025-03-25 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:52:05' and `end` < '2025-03-25 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:52:19] Production.INFO: count ==5867 [2025-03-25 13:52:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:52:05 - End Time 2025-03-25 13:52:05 [2025-03-25 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759921', 'tblTempUsageDetail_20' ) start [2025-03-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759921', 'tblTempUsageDetail_20' ) end [2025-03-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759921', 'tblTempVendorCDR_20' ) start [2025-03-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759921', 'tblTempVendorCDR_20' ) end [2025-03-25 13:52:22] Production.INFO: ProcessCDR(1,14759921,1,1,2) [2025-03-25 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759921', 'tblTempUsageDetail_20' ) start [2025-03-25 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759921', 'tblTempUsageDetail_20' ) end [2025-03-25 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:52:27] Production.INFO: ==19304== Releasing lock... [2025-03-25 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:52:27] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:53:06 [end_date_ymd] => 2025-03-25 13:53:06 [RateCDR] => 1 ) [2025-03-25 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:53:06' and `end` < '2025-03-25 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:53:20] Production.INFO: count ==5860 [2025-03-25 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:53:06 - End Time 2025-03-25 13:53:06 [2025-03-25 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759926', 'tblTempUsageDetail_20' ) start [2025-03-25 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759926', 'tblTempUsageDetail_20' ) end [2025-03-25 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759926', 'tblTempVendorCDR_20' ) start [2025-03-25 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759926', 'tblTempVendorCDR_20' ) end [2025-03-25 13:53:23] Production.INFO: ProcessCDR(1,14759926,1,1,2) [2025-03-25 13:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759926', 'tblTempUsageDetail_20' ) start [2025-03-25 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759926', 'tblTempUsageDetail_20' ) end [2025-03-25 13:53:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:53:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:53:29] Production.INFO: ==19382== Releasing lock... [2025-03-25 13:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:53:29] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:54:05 [end_date_ymd] => 2025-03-25 13:54:05 [RateCDR] => 1 ) [2025-03-25 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:54:05' and `end` < '2025-03-25 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:54:19] Production.INFO: count ==5860 [2025-03-25 13:54:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:54:05 - End Time 2025-03-25 13:54:05 [2025-03-25 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759931', 'tblTempUsageDetail_20' ) start [2025-03-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759931', 'tblTempUsageDetail_20' ) end [2025-03-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759931', 'tblTempVendorCDR_20' ) start [2025-03-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759931', 'tblTempVendorCDR_20' ) end [2025-03-25 13:54:22] Production.INFO: ProcessCDR(1,14759931,1,1,2) [2025-03-25 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759931', 'tblTempUsageDetail_20' ) start [2025-03-25 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759931', 'tblTempUsageDetail_20' ) end [2025-03-25 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:54:28] Production.INFO: ==19456== Releasing lock... [2025-03-25 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:54:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:55:06 [end_date_ymd] => 2025-03-25 13:55:06 [RateCDR] => 1 ) [2025-03-25 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:55:06' and `end` < '2025-03-25 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:55:20] Production.INFO: count ==5861 [2025-03-25 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:55:06 - End Time 2025-03-25 13:55:06 [2025-03-25 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759936', 'tblTempUsageDetail_20' ) start [2025-03-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759936', 'tblTempUsageDetail_20' ) end [2025-03-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759936', 'tblTempVendorCDR_20' ) start [2025-03-25 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759936', 'tblTempVendorCDR_20' ) end [2025-03-25 13:55:23] Production.INFO: ProcessCDR(1,14759936,1,1,2) [2025-03-25 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759936', 'tblTempUsageDetail_20' ) start [2025-03-25 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759936', 'tblTempUsageDetail_20' ) end [2025-03-25 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:55:28] Production.INFO: ==19539== Releasing lock... [2025-03-25 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:55:28] Production.INFO: 72 MB #Memory Used# [2025-03-25 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:56:06 [end_date_ymd] => 2025-03-25 13:56:06 [RateCDR] => 1 ) [2025-03-25 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:56:06' and `end` < '2025-03-25 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:56:19] Production.INFO: count ==5850 [2025-03-25 13:56:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:56:06 - End Time 2025-03-25 13:56:06 [2025-03-25 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759941', 'tblTempUsageDetail_20' ) start [2025-03-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759941', 'tblTempUsageDetail_20' ) end [2025-03-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759941', 'tblTempVendorCDR_20' ) start [2025-03-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759941', 'tblTempVendorCDR_20' ) end [2025-03-25 13:56:22] Production.INFO: ProcessCDR(1,14759941,1,1,2) [2025-03-25 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759941', 'tblTempUsageDetail_20' ) start [2025-03-25 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759941', 'tblTempUsageDetail_20' ) end [2025-03-25 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:56:27] Production.INFO: ==19655== Releasing lock... [2025-03-25 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:56:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:57:05 [end_date_ymd] => 2025-03-25 13:57:05 [RateCDR] => 1 ) [2025-03-25 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:57:05' and `end` < '2025-03-25 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:57:19] Production.INFO: count ==5846 [2025-03-25 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:57:05 - End Time 2025-03-25 13:57:05 [2025-03-25 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759946', 'tblTempUsageDetail_20' ) start [2025-03-25 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759946', 'tblTempUsageDetail_20' ) end [2025-03-25 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759946', 'tblTempVendorCDR_20' ) start [2025-03-25 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759946', 'tblTempVendorCDR_20' ) end [2025-03-25 13:57:22] Production.INFO: ProcessCDR(1,14759946,1,1,2) [2025-03-25 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759946', 'tblTempUsageDetail_20' ) start [2025-03-25 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759946', 'tblTempUsageDetail_20' ) end [2025-03-25 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:57:27] Production.INFO: ==19732== Releasing lock... [2025-03-25 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:57:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:58:05 [end_date_ymd] => 2025-03-25 13:58:05 [RateCDR] => 1 ) [2025-03-25 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:58:05' and `end` < '2025-03-25 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:58:19] Production.INFO: count ==5836 [2025-03-25 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-25 10:58:05 - End Time 2025-03-25 13:58:05 [2025-03-25 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759951', 'tblTempUsageDetail_20' ) start [2025-03-25 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759951', 'tblTempUsageDetail_20' ) end [2025-03-25 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759951', 'tblTempVendorCDR_20' ) start [2025-03-25 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759951', 'tblTempVendorCDR_20' ) end [2025-03-25 13:58:21] Production.INFO: ProcessCDR(1,14759951,1,1,2) [2025-03-25 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759951', 'tblTempUsageDetail_20' ) start [2025-03-25 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759951', 'tblTempUsageDetail_20' ) end [2025-03-25 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:58:27] Production.INFO: ==19809== Releasing lock... [2025-03-25 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:58:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-25 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 10:59:06 [end_date_ymd] => 2025-03-25 13:59:06 [RateCDR] => 1 ) [2025-03-25 13:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 10:59:06' and `end` < '2025-03-25 13:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 13:59:19] Production.INFO: count ==5821 [2025-03-25 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-25 10:59:06 - End Time 2025-03-25 13:59:06 [2025-03-25 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759956', 'tblTempUsageDetail_20' ) start [2025-03-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759956', 'tblTempUsageDetail_20' ) end [2025-03-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759956', 'tblTempVendorCDR_20' ) start [2025-03-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759956', 'tblTempVendorCDR_20' ) end [2025-03-25 13:59:22] Production.INFO: ProcessCDR(1,14759956,1,1,2) [2025-03-25 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759956', 'tblTempUsageDetail_20' ) start [2025-03-25 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759956', 'tblTempUsageDetail_20' ) end [2025-03-25 13:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 13:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 13:59:28] Production.INFO: ==19902== Releasing lock... [2025-03-25 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 13:59:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:00:06 [end_date_ymd] => 2025-03-25 14:00:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:00:06' and `end` < '2025-03-25 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-03-25 14:00:20] Production.INFO: count ==5825 [2025-03-25 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:00:06 - End Time 2025-03-25 14:00:06 [2025-03-25 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759961', 'tblTempUsageDetail_20' ) start [2025-03-25 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759961', 'tblTempUsageDetail_20' ) end [2025-03-25 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759961', 'tblTempVendorCDR_20' ) start [2025-03-25 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759961', 'tblTempVendorCDR_20' ) end [2025-03-25 14:00:23] Production.INFO: ProcessCDR(1,14759961,1,1,2) [2025-03-25 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759961', 'tblTempUsageDetail_20' ) start [2025-03-25 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759961', 'tblTempUsageDetail_20' ) end [2025-03-25 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:00:28] Production.INFO: ==19982== Releasing lock... [2025-03-25 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:00:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:01:05 [end_date_ymd] => 2025-03-25 14:01:05 [RateCDR] => 1 ) [2025-03-25 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:01:05' and `end` < '2025-03-25 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:01:19] Production.INFO: count ==5787 [2025-03-25 14:01:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:01:05 - End Time 2025-03-25 14:01:05 [2025-03-25 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759967', 'tblTempUsageDetail_20' ) start [2025-03-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759967', 'tblTempUsageDetail_20' ) end [2025-03-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759967', 'tblTempVendorCDR_20' ) start [2025-03-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759967', 'tblTempVendorCDR_20' ) end [2025-03-25 14:01:22] Production.INFO: ProcessCDR(1,14759967,1,1,2) [2025-03-25 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759967', 'tblTempUsageDetail_20' ) start [2025-03-25 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759967', 'tblTempUsageDetail_20' ) end [2025-03-25 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:01:28] Production.INFO: ==20077== Releasing lock... [2025-03-25 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:01:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:02:05 [end_date_ymd] => 2025-03-25 14:02:05 [RateCDR] => 1 ) [2025-03-25 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:02:05' and `end` < '2025-03-25 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:02:19] Production.INFO: count ==5799 [2025-03-25 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:02:05 - End Time 2025-03-25 14:02:05 [2025-03-25 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759972', 'tblTempUsageDetail_20' ) start [2025-03-25 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759972', 'tblTempUsageDetail_20' ) end [2025-03-25 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759972', 'tblTempVendorCDR_20' ) start [2025-03-25 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759972', 'tblTempVendorCDR_20' ) end [2025-03-25 14:02:22] Production.INFO: ProcessCDR(1,14759972,1,1,2) [2025-03-25 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759972', 'tblTempUsageDetail_20' ) start [2025-03-25 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759972', 'tblTempUsageDetail_20' ) end [2025-03-25 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:02:27] Production.INFO: ==20154== Releasing lock... [2025-03-25 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:02:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:03:06 [end_date_ymd] => 2025-03-25 14:03:06 [RateCDR] => 1 ) [2025-03-25 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:03:06' and `end` < '2025-03-25 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:03:19] Production.INFO: count ==5790 [2025-03-25 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:03:06 - End Time 2025-03-25 14:03:06 [2025-03-25 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759977', 'tblTempUsageDetail_20' ) start [2025-03-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759977', 'tblTempUsageDetail_20' ) end [2025-03-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759977', 'tblTempVendorCDR_20' ) start [2025-03-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759977', 'tblTempVendorCDR_20' ) end [2025-03-25 14:03:22] Production.INFO: ProcessCDR(1,14759977,1,1,2) [2025-03-25 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759977', 'tblTempUsageDetail_20' ) start [2025-03-25 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759977', 'tblTempUsageDetail_20' ) end [2025-03-25 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:03:27] Production.INFO: ==20238== Releasing lock... [2025-03-25 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:03:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:04:05 [end_date_ymd] => 2025-03-25 14:04:05 [RateCDR] => 1 ) [2025-03-25 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:04:05' and `end` < '2025-03-25 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:04:19] Production.INFO: count ==5793 [2025-03-25 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:04:05 - End Time 2025-03-25 14:04:05 [2025-03-25 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759982', 'tblTempUsageDetail_20' ) start [2025-03-25 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759982', 'tblTempUsageDetail_20' ) end [2025-03-25 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759982', 'tblTempVendorCDR_20' ) start [2025-03-25 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759982', 'tblTempVendorCDR_20' ) end [2025-03-25 14:04:22] Production.INFO: ProcessCDR(1,14759982,1,1,2) [2025-03-25 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759982', 'tblTempUsageDetail_20' ) start [2025-03-25 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759982', 'tblTempUsageDetail_20' ) end [2025-03-25 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:04:27] Production.INFO: ==20313== Releasing lock... [2025-03-25 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:04:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:05:06 [end_date_ymd] => 2025-03-25 14:05:06 [RateCDR] => 1 ) [2025-03-25 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:05:06' and `end` < '2025-03-25 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:05:19] Production.INFO: count ==5790 [2025-03-25 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:05:06 - End Time 2025-03-25 14:05:06 [2025-03-25 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759987', 'tblTempUsageDetail_20' ) start [2025-03-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759987', 'tblTempUsageDetail_20' ) end [2025-03-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759987', 'tblTempVendorCDR_20' ) start [2025-03-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759987', 'tblTempVendorCDR_20' ) end [2025-03-25 14:05:22] Production.INFO: ProcessCDR(1,14759987,1,1,2) [2025-03-25 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759987', 'tblTempUsageDetail_20' ) start [2025-03-25 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759987', 'tblTempUsageDetail_20' ) end [2025-03-25 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:05:28] Production.INFO: ==20392== Releasing lock... [2025-03-25 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:05:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:06:05 [end_date_ymd] => 2025-03-25 14:06:05 [RateCDR] => 1 ) [2025-03-25 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:06:05' and `end` < '2025-03-25 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-03-25 14:06:19] Production.INFO: count ==5791 [2025-03-25 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:06:05 - End Time 2025-03-25 14:06:05 [2025-03-25 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759992', 'tblTempUsageDetail_20' ) start [2025-03-25 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759992', 'tblTempUsageDetail_20' ) end [2025-03-25 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759992', 'tblTempVendorCDR_20' ) start [2025-03-25 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759992', 'tblTempVendorCDR_20' ) end [2025-03-25 14:06:22] Production.INFO: ProcessCDR(1,14759992,1,1,2) [2025-03-25 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759992', 'tblTempUsageDetail_20' ) start [2025-03-25 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759992', 'tblTempUsageDetail_20' ) end [2025-03-25 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:06:27] Production.INFO: ==20469== Releasing lock... [2025-03-25 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:06:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:07:05 [end_date_ymd] => 2025-03-25 14:07:05 [RateCDR] => 1 ) [2025-03-25 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:07:05' and `end` < '2025-03-25 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:07:19] Production.INFO: count ==5797 [2025-03-25 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:07:05 - End Time 2025-03-25 14:07:05 [2025-03-25 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759997', 'tblTempUsageDetail_20' ) start [2025-03-25 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14759997', 'tblTempUsageDetail_20' ) end [2025-03-25 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759997', 'tblTempVendorCDR_20' ) start [2025-03-25 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14759997', 'tblTempVendorCDR_20' ) end [2025-03-25 14:07:22] Production.INFO: ProcessCDR(1,14759997,1,1,2) [2025-03-25 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14759997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14759997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14759997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14759997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759997', 'tblTempUsageDetail_20' ) start [2025-03-25 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14759997', 'tblTempUsageDetail_20' ) end [2025-03-25 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:07:27] Production.INFO: ==20545== Releasing lock... [2025-03-25 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:07:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-25 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:08:05 [end_date_ymd] => 2025-03-25 14:08:05 [RateCDR] => 1 ) [2025-03-25 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:08:05' and `end` < '2025-03-25 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:08:19] Production.INFO: count ==5782 [2025-03-25 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:08:05 - End Time 2025-03-25 14:08:05 [2025-03-25 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760002', 'tblTempUsageDetail_20' ) start [2025-03-25 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760002', 'tblTempUsageDetail_20' ) end [2025-03-25 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760002', 'tblTempVendorCDR_20' ) start [2025-03-25 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760002', 'tblTempVendorCDR_20' ) end [2025-03-25 14:08:21] Production.INFO: ProcessCDR(1,14760002,1,1,2) [2025-03-25 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760002', 'tblTempUsageDetail_20' ) start [2025-03-25 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760002', 'tblTempUsageDetail_20' ) end [2025-03-25 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:08:27] Production.INFO: ==20630== Releasing lock... [2025-03-25 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:08:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-25 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:09:06 [end_date_ymd] => 2025-03-25 14:09:06 [RateCDR] => 1 ) [2025-03-25 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:09:06' and `end` < '2025-03-25 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:09:19] Production.INFO: count ==5738 [2025-03-25 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:09:06 - End Time 2025-03-25 14:09:06 [2025-03-25 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760007', 'tblTempUsageDetail_20' ) start [2025-03-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760007', 'tblTempUsageDetail_20' ) end [2025-03-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760007', 'tblTempVendorCDR_20' ) start [2025-03-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760007', 'tblTempVendorCDR_20' ) end [2025-03-25 14:09:22] Production.INFO: ProcessCDR(1,14760007,1,1,2) [2025-03-25 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760007', 'tblTempUsageDetail_20' ) start [2025-03-25 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760007', 'tblTempUsageDetail_20' ) end [2025-03-25 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:09:27] Production.INFO: ==20709== Releasing lock... [2025-03-25 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:09:27] Production.INFO: 71 MB #Memory Used# [2025-03-25 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:10:06 [end_date_ymd] => 2025-03-25 14:10:06 [RateCDR] => 1 ) [2025-03-25 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:10:06' and `end` < '2025-03-25 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:10:20] Production.INFO: count ==5744 [2025-03-25 14:10:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:10:06 - End Time 2025-03-25 14:10:06 [2025-03-25 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760013', 'tblTempUsageDetail_20' ) start [2025-03-25 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760013', 'tblTempUsageDetail_20' ) end [2025-03-25 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760013', 'tblTempVendorCDR_20' ) start [2025-03-25 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760013', 'tblTempVendorCDR_20' ) end [2025-03-25 14:10:23] Production.INFO: ProcessCDR(1,14760013,1,1,2) [2025-03-25 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760013', 'tblTempUsageDetail_20' ) start [2025-03-25 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760013', 'tblTempUsageDetail_20' ) end [2025-03-25 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:10:28] Production.INFO: ==20785== Releasing lock... [2025-03-25 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:10:28] Production.INFO: 71 MB #Memory Used# [2025-03-25 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:11:05 [end_date_ymd] => 2025-03-25 14:11:05 [RateCDR] => 1 ) [2025-03-25 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:11:05' and `end` < '2025-03-25 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:11:19] Production.INFO: count ==5694 [2025-03-25 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:11:05 - End Time 2025-03-25 14:11:05 [2025-03-25 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760018', 'tblTempUsageDetail_20' ) start [2025-03-25 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760018', 'tblTempUsageDetail_20' ) end [2025-03-25 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760018', 'tblTempVendorCDR_20' ) start [2025-03-25 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760018', 'tblTempVendorCDR_20' ) end [2025-03-25 14:11:22] Production.INFO: ProcessCDR(1,14760018,1,1,2) [2025-03-25 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760018', 'tblTempUsageDetail_20' ) start [2025-03-25 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760018', 'tblTempUsageDetail_20' ) end [2025-03-25 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:11:27] Production.INFO: ==20904== Releasing lock... [2025-03-25 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:11:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:12:05 [end_date_ymd] => 2025-03-25 14:12:05 [RateCDR] => 1 ) [2025-03-25 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:12:05' and `end` < '2025-03-25 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:12:18] Production.INFO: count ==5692 [2025-03-25 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:12:05 - End Time 2025-03-25 14:12:05 [2025-03-25 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760023', 'tblTempUsageDetail_20' ) start [2025-03-25 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760023', 'tblTempUsageDetail_20' ) end [2025-03-25 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760023', 'tblTempVendorCDR_20' ) start [2025-03-25 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760023', 'tblTempVendorCDR_20' ) end [2025-03-25 14:12:21] Production.INFO: ProcessCDR(1,14760023,1,1,2) [2025-03-25 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760023', 'tblTempUsageDetail_20' ) start [2025-03-25 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760023', 'tblTempUsageDetail_20' ) end [2025-03-25 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:12:27] Production.INFO: ==20981== Releasing lock... [2025-03-25 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:12:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:13:05 [end_date_ymd] => 2025-03-25 14:13:05 [RateCDR] => 1 ) [2025-03-25 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:13:05' and `end` < '2025-03-25 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:13:19] Production.INFO: count ==5688 [2025-03-25 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:13:05 - End Time 2025-03-25 14:13:05 [2025-03-25 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760028', 'tblTempUsageDetail_20' ) start [2025-03-25 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760028', 'tblTempUsageDetail_20' ) end [2025-03-25 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760028', 'tblTempVendorCDR_20' ) start [2025-03-25 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760028', 'tblTempVendorCDR_20' ) end [2025-03-25 14:13:22] Production.INFO: ProcessCDR(1,14760028,1,1,2) [2025-03-25 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760028', 'tblTempUsageDetail_20' ) start [2025-03-25 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760028', 'tblTempUsageDetail_20' ) end [2025-03-25 14:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:13:28] Production.INFO: ==21059== Releasing lock... [2025-03-25 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:13:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:14:05 [end_date_ymd] => 2025-03-25 14:14:05 [RateCDR] => 1 ) [2025-03-25 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:14:05' and `end` < '2025-03-25 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:14:19] Production.INFO: count ==5685 [2025-03-25 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:14:05 - End Time 2025-03-25 14:14:05 [2025-03-25 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760033', 'tblTempUsageDetail_20' ) start [2025-03-25 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760033', 'tblTempUsageDetail_20' ) end [2025-03-25 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760033', 'tblTempVendorCDR_20' ) start [2025-03-25 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760033', 'tblTempVendorCDR_20' ) end [2025-03-25 14:14:22] Production.INFO: ProcessCDR(1,14760033,1,1,2) [2025-03-25 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760033', 'tblTempUsageDetail_20' ) start [2025-03-25 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760033', 'tblTempUsageDetail_20' ) end [2025-03-25 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:14:27] Production.INFO: ==21136== Releasing lock... [2025-03-25 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:14:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:15:05 [end_date_ymd] => 2025-03-25 14:15:05 [RateCDR] => 1 ) [2025-03-25 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:15:05' and `end` < '2025-03-25 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:15:19] Production.INFO: count ==5695 [2025-03-25 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:15:05 - End Time 2025-03-25 14:15:05 [2025-03-25 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760038', 'tblTempUsageDetail_20' ) start [2025-03-25 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760038', 'tblTempUsageDetail_20' ) end [2025-03-25 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760038', 'tblTempVendorCDR_20' ) start [2025-03-25 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760038', 'tblTempVendorCDR_20' ) end [2025-03-25 14:15:21] Production.INFO: ProcessCDR(1,14760038,1,1,2) [2025-03-25 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760038', 'tblTempUsageDetail_20' ) start [2025-03-25 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760038', 'tblTempUsageDetail_20' ) end [2025-03-25 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:15:26] Production.INFO: ==21221== Releasing lock... [2025-03-25 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:15:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:16:05 [end_date_ymd] => 2025-03-25 14:16:05 [RateCDR] => 1 ) [2025-03-25 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:16:05' and `end` < '2025-03-25 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:16:19] Production.INFO: count ==5679 [2025-03-25 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:16:05 - End Time 2025-03-25 14:16:05 [2025-03-25 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760043', 'tblTempUsageDetail_20' ) start [2025-03-25 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760043', 'tblTempUsageDetail_20' ) end [2025-03-25 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760043', 'tblTempVendorCDR_20' ) start [2025-03-25 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760043', 'tblTempVendorCDR_20' ) end [2025-03-25 14:16:22] Production.INFO: ProcessCDR(1,14760043,1,1,2) [2025-03-25 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760043', 'tblTempUsageDetail_20' ) start [2025-03-25 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760043', 'tblTempUsageDetail_20' ) end [2025-03-25 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:16:27] Production.INFO: ==21298== Releasing lock... [2025-03-25 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:16:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:17:05 [end_date_ymd] => 2025-03-25 14:17:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:17:05' and `end` < '2025-03-25 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-03-25 14:17:19] Production.INFO: count ==5682 [2025-03-25 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:17:05 - End Time 2025-03-25 14:17:05 [2025-03-25 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760048', 'tblTempUsageDetail_20' ) start [2025-03-25 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760048', 'tblTempUsageDetail_20' ) end [2025-03-25 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760048', 'tblTempVendorCDR_20' ) start [2025-03-25 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760048', 'tblTempVendorCDR_20' ) end [2025-03-25 14:17:21] Production.INFO: ProcessCDR(1,14760048,1,1,2) [2025-03-25 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760048', 'tblTempUsageDetail_20' ) start [2025-03-25 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760048', 'tblTempUsageDetail_20' ) end [2025-03-25 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:17:27] Production.INFO: ==21378== Releasing lock... [2025-03-25 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:17:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:18:06 [end_date_ymd] => 2025-03-25 14:18:06 [RateCDR] => 1 ) [2025-03-25 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:18:06' and `end` < '2025-03-25 14: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-03-25 14:18:19] Production.INFO: count ==5698 [2025-03-25 14:18:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:18:06 - End Time 2025-03-25 14:18:06 [2025-03-25 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760053', 'tblTempUsageDetail_20' ) start [2025-03-25 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760053', 'tblTempUsageDetail_20' ) end [2025-03-25 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760053', 'tblTempVendorCDR_20' ) start [2025-03-25 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760053', 'tblTempVendorCDR_20' ) end [2025-03-25 14:18:22] Production.INFO: ProcessCDR(1,14760053,1,1,2) [2025-03-25 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760053', 'tblTempUsageDetail_20' ) start [2025-03-25 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760053', 'tblTempUsageDetail_20' ) end [2025-03-25 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:18:27] Production.INFO: ==21455== Releasing lock... [2025-03-25 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:18:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:19:04 [end_date_ymd] => 2025-03-25 14:19:04 [RateCDR] => 1 ) [2025-03-25 14: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-03-25 11:19:04' and `end` < '2025-03-25 14: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-03-25 14:19:18] Production.INFO: count ==5681 [2025-03-25 14:19:20] Production.ERROR: pbx CDR StartTime 2025-03-25 11:19:04 - End Time 2025-03-25 14:19:04 [2025-03-25 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760058', 'tblTempUsageDetail_20' ) start [2025-03-25 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760058', 'tblTempUsageDetail_20' ) end [2025-03-25 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760058', 'tblTempVendorCDR_20' ) start [2025-03-25 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760058', 'tblTempVendorCDR_20' ) end [2025-03-25 14:19:21] Production.INFO: ProcessCDR(1,14760058,1,1,2) [2025-03-25 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760058', 'tblTempUsageDetail_20' ) start [2025-03-25 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760058', 'tblTempUsageDetail_20' ) end [2025-03-25 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:19:26] Production.INFO: ==21531== Releasing lock... [2025-03-25 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:19:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:20:06 [end_date_ymd] => 2025-03-25 14:20:06 [RateCDR] => 1 ) [2025-03-25 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:20:06' and `end` < '2025-03-25 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:20:20] Production.INFO: count ==5683 [2025-03-25 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:20:06 - End Time 2025-03-25 14:20:06 [2025-03-25 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760064', 'tblTempUsageDetail_20' ) start [2025-03-25 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760064', 'tblTempUsageDetail_20' ) end [2025-03-25 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760064', 'tblTempVendorCDR_20' ) start [2025-03-25 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760064', 'tblTempVendorCDR_20' ) end [2025-03-25 14:20:22] Production.INFO: ProcessCDR(1,14760064,1,1,2) [2025-03-25 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760064', 'tblTempUsageDetail_20' ) start [2025-03-25 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760064', 'tblTempUsageDetail_20' ) end [2025-03-25 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:20:27] Production.INFO: ==21608== Releasing lock... [2025-03-25 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:20:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:21:05 [end_date_ymd] => 2025-03-25 14:21:05 [RateCDR] => 1 ) [2025-03-25 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:21:05' and `end` < '2025-03-25 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:21:19] Production.INFO: count ==5671 [2025-03-25 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:21:05 - End Time 2025-03-25 14:21:05 [2025-03-25 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760069', 'tblTempUsageDetail_20' ) start [2025-03-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760069', 'tblTempUsageDetail_20' ) end [2025-03-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760069', 'tblTempVendorCDR_20' ) start [2025-03-25 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760069', 'tblTempVendorCDR_20' ) end [2025-03-25 14:21:21] Production.INFO: ProcessCDR(1,14760069,1,1,2) [2025-03-25 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760069', 'tblTempUsageDetail_20' ) start [2025-03-25 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760069', 'tblTempUsageDetail_20' ) end [2025-03-25 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:21:26] Production.INFO: ==21686== Releasing lock... [2025-03-25 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:21:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:22:05 [end_date_ymd] => 2025-03-25 14:22:05 [RateCDR] => 1 ) [2025-03-25 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:22:05' and `end` < '2025-03-25 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:22:19] Production.INFO: count ==5672 [2025-03-25 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:22:05 - End Time 2025-03-25 14:22:05 [2025-03-25 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760074', 'tblTempUsageDetail_20' ) start [2025-03-25 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760074', 'tblTempUsageDetail_20' ) end [2025-03-25 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760074', 'tblTempVendorCDR_20' ) start [2025-03-25 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760074', 'tblTempVendorCDR_20' ) end [2025-03-25 14:22:21] Production.INFO: ProcessCDR(1,14760074,1,1,2) [2025-03-25 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760074', 'tblTempUsageDetail_20' ) start [2025-03-25 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760074', 'tblTempUsageDetail_20' ) end [2025-03-25 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:22:27] Production.INFO: ==21762== Releasing lock... [2025-03-25 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:22:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:23:05 [end_date_ymd] => 2025-03-25 14:23:05 [RateCDR] => 1 ) [2025-03-25 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:23:05' and `end` < '2025-03-25 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:23:19] Production.INFO: count ==5693 [2025-03-25 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:23:05 - End Time 2025-03-25 14:23:05 [2025-03-25 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760079', 'tblTempUsageDetail_20' ) start [2025-03-25 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760079', 'tblTempUsageDetail_20' ) end [2025-03-25 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760079', 'tblTempVendorCDR_20' ) start [2025-03-25 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760079', 'tblTempVendorCDR_20' ) end [2025-03-25 14:23:21] Production.INFO: ProcessCDR(1,14760079,1,1,2) [2025-03-25 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760079', 'tblTempUsageDetail_20' ) start [2025-03-25 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760079', 'tblTempUsageDetail_20' ) end [2025-03-25 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:23:26] Production.INFO: ==21837== Releasing lock... [2025-03-25 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:23:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:24:05 [end_date_ymd] => 2025-03-25 14:24:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:24:05' and `end` < '2025-03-25 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-03-25 14:24:19] Production.INFO: count ==5676 [2025-03-25 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:24:05 - End Time 2025-03-25 14:24:05 [2025-03-25 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760084', 'tblTempUsageDetail_20' ) start [2025-03-25 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760084', 'tblTempUsageDetail_20' ) end [2025-03-25 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760084', 'tblTempVendorCDR_20' ) start [2025-03-25 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760084', 'tblTempVendorCDR_20' ) end [2025-03-25 14:24:22] Production.INFO: ProcessCDR(1,14760084,1,1,2) [2025-03-25 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760084', 'tblTempUsageDetail_20' ) start [2025-03-25 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760084', 'tblTempUsageDetail_20' ) end [2025-03-25 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:24:27] Production.INFO: ==21910== Releasing lock... [2025-03-25 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:24:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:25:06 [end_date_ymd] => 2025-03-25 14:25:06 [RateCDR] => 1 ) [2025-03-25 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:25:06' and `end` < '2025-03-25 14: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-03-25 14:25:19] Production.INFO: count ==5663 [2025-03-25 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:25:06 - End Time 2025-03-25 14:25:06 [2025-03-25 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760089', 'tblTempUsageDetail_20' ) start [2025-03-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760089', 'tblTempUsageDetail_20' ) end [2025-03-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760089', 'tblTempVendorCDR_20' ) start [2025-03-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760089', 'tblTempVendorCDR_20' ) end [2025-03-25 14:25:22] Production.INFO: ProcessCDR(1,14760089,1,1,2) [2025-03-25 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760089', 'tblTempUsageDetail_20' ) start [2025-03-25 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760089', 'tblTempUsageDetail_20' ) end [2025-03-25 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:25:27] Production.INFO: ==21983== Releasing lock... [2025-03-25 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:25:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:26:05 [end_date_ymd] => 2025-03-25 14:26:05 [RateCDR] => 1 ) [2025-03-25 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:26:05' and `end` < '2025-03-25 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:26:19] Production.INFO: count ==5664 [2025-03-25 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:26:05 - End Time 2025-03-25 14:26:05 [2025-03-25 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760094', 'tblTempUsageDetail_20' ) start [2025-03-25 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760094', 'tblTempUsageDetail_20' ) end [2025-03-25 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760094', 'tblTempVendorCDR_20' ) start [2025-03-25 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760094', 'tblTempVendorCDR_20' ) end [2025-03-25 14:26:21] Production.INFO: ProcessCDR(1,14760094,1,1,2) [2025-03-25 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760094', 'tblTempUsageDetail_20' ) start [2025-03-25 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760094', 'tblTempUsageDetail_20' ) end [2025-03-25 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:26:26] Production.INFO: ==22053== Releasing lock... [2025-03-25 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:26:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:27:05 [end_date_ymd] => 2025-03-25 14:27:05 [RateCDR] => 1 ) [2025-03-25 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:27:05' and `end` < '2025-03-25 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:27:19] Production.INFO: count ==5645 [2025-03-25 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:27:05 - End Time 2025-03-25 14:27:05 [2025-03-25 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760099', 'tblTempUsageDetail_20' ) start [2025-03-25 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760099', 'tblTempUsageDetail_20' ) end [2025-03-25 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760099', 'tblTempVendorCDR_20' ) start [2025-03-25 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760099', 'tblTempVendorCDR_20' ) end [2025-03-25 14:27:22] Production.INFO: ProcessCDR(1,14760099,1,1,2) [2025-03-25 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760099', 'tblTempUsageDetail_20' ) start [2025-03-25 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760099', 'tblTempUsageDetail_20' ) end [2025-03-25 14:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:27:25] Production.INFO: ==22169== Releasing lock... [2025-03-25 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:27:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:28:05 [end_date_ymd] => 2025-03-25 14:28:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:28:05' and `end` < '2025-03-25 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-03-25 14:28:19] Production.INFO: count ==5630 [2025-03-25 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:28:05 - End Time 2025-03-25 14:28:05 [2025-03-25 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760104', 'tblTempUsageDetail_20' ) start [2025-03-25 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760104', 'tblTempUsageDetail_20' ) end [2025-03-25 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760104', 'tblTempVendorCDR_20' ) start [2025-03-25 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760104', 'tblTempVendorCDR_20' ) end [2025-03-25 14:28:21] Production.INFO: ProcessCDR(1,14760104,1,1,2) [2025-03-25 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760104', 'tblTempUsageDetail_20' ) start [2025-03-25 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760104', 'tblTempUsageDetail_20' ) end [2025-03-25 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:28:26] Production.INFO: ==22242== Releasing lock... [2025-03-25 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:28:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:29:06 [end_date_ymd] => 2025-03-25 14:29:06 [RateCDR] => 1 ) [2025-03-25 14:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:29:06' and `end` < '2025-03-25 14:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:29:20] Production.INFO: count ==5603 [2025-03-25 14:29:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:29:06 - End Time 2025-03-25 14:29:06 [2025-03-25 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760109', 'tblTempUsageDetail_20' ) start [2025-03-25 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760109', 'tblTempUsageDetail_20' ) end [2025-03-25 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760109', 'tblTempVendorCDR_20' ) start [2025-03-25 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760109', 'tblTempVendorCDR_20' ) end [2025-03-25 14:29:22] Production.INFO: ProcessCDR(1,14760109,1,1,2) [2025-03-25 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760109', 'tblTempUsageDetail_20' ) start [2025-03-25 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760109', 'tblTempUsageDetail_20' ) end [2025-03-25 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:29:26] Production.INFO: ==22315== Releasing lock... [2025-03-25 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:29:26] Production.INFO: 70 MB #Memory Used# [2025-03-25 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:30:06 [end_date_ymd] => 2025-03-25 14:30:06 [RateCDR] => 1 ) [2025-03-25 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:30:06' and `end` < '2025-03-25 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:30:20] Production.INFO: count ==5567 [2025-03-25 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:30:06 - End Time 2025-03-25 14:30:06 [2025-03-25 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760115', 'tblTempUsageDetail_20' ) start [2025-03-25 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760115', 'tblTempUsageDetail_20' ) end [2025-03-25 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760115', 'tblTempVendorCDR_20' ) start [2025-03-25 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760115', 'tblTempVendorCDR_20' ) end [2025-03-25 14:30:22] Production.INFO: ProcessCDR(1,14760115,1,1,2) [2025-03-25 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760115', 'tblTempUsageDetail_20' ) start [2025-03-25 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760115', 'tblTempUsageDetail_20' ) end [2025-03-25 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:30:28] Production.INFO: ==22391== Releasing lock... [2025-03-25 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:30:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:31:05 [end_date_ymd] => 2025-03-25 14:31:05 [RateCDR] => 1 ) [2025-03-25 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:31:05' and `end` < '2025-03-25 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:31:19] Production.INFO: count ==5522 [2025-03-25 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:31:05 - End Time 2025-03-25 14:31:05 [2025-03-25 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760120', 'tblTempUsageDetail_20' ) start [2025-03-25 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760120', 'tblTempUsageDetail_20' ) end [2025-03-25 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760120', 'tblTempVendorCDR_20' ) start [2025-03-25 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760120', 'tblTempVendorCDR_20' ) end [2025-03-25 14:31:21] Production.INFO: ProcessCDR(1,14760120,1,1,2) [2025-03-25 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760120', 'tblTempUsageDetail_20' ) start [2025-03-25 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760120', 'tblTempUsageDetail_20' ) end [2025-03-25 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:31:26] Production.INFO: ==22468== Releasing lock... [2025-03-25 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:31:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:32:05 [end_date_ymd] => 2025-03-25 14:32:05 [RateCDR] => 1 ) [2025-03-25 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:32:05' and `end` < '2025-03-25 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:32:18] Production.INFO: count ==5518 [2025-03-25 14:32:20] Production.ERROR: pbx CDR StartTime 2025-03-25 11:32:05 - End Time 2025-03-25 14:32:05 [2025-03-25 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760125', 'tblTempUsageDetail_20' ) start [2025-03-25 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760125', 'tblTempUsageDetail_20' ) end [2025-03-25 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760125', 'tblTempVendorCDR_20' ) start [2025-03-25 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760125', 'tblTempVendorCDR_20' ) end [2025-03-25 14:32:21] Production.INFO: ProcessCDR(1,14760125,1,1,2) [2025-03-25 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760125', 'tblTempUsageDetail_20' ) start [2025-03-25 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760125', 'tblTempUsageDetail_20' ) end [2025-03-25 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:32:26] Production.INFO: ==22539== Releasing lock... [2025-03-25 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:32:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:33:05 [end_date_ymd] => 2025-03-25 14:33:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:33:05' and `end` < '2025-03-25 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-03-25 14:33:19] Production.INFO: count ==5514 [2025-03-25 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:33:05 - End Time 2025-03-25 14:33:05 [2025-03-25 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760130', 'tblTempUsageDetail_20' ) start [2025-03-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760130', 'tblTempUsageDetail_20' ) end [2025-03-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760130', 'tblTempVendorCDR_20' ) start [2025-03-25 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760130', 'tblTempVendorCDR_20' ) end [2025-03-25 14:33:21] Production.INFO: ProcessCDR(1,14760130,1,1,2) [2025-03-25 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760130', 'tblTempUsageDetail_20' ) start [2025-03-25 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760130', 'tblTempUsageDetail_20' ) end [2025-03-25 14:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:33:25] Production.INFO: ==22635== Releasing lock... [2025-03-25 14:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:33:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:34:05 [end_date_ymd] => 2025-03-25 14:34:05 [RateCDR] => 1 ) [2025-03-25 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:34:05' and `end` < '2025-03-25 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:34:19] Production.INFO: count ==5519 [2025-03-25 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:34:05 - End Time 2025-03-25 14:34:05 [2025-03-25 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760135', 'tblTempUsageDetail_20' ) start [2025-03-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760135', 'tblTempUsageDetail_20' ) end [2025-03-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760135', 'tblTempVendorCDR_20' ) start [2025-03-25 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760135', 'tblTempVendorCDR_20' ) end [2025-03-25 14:34:21] Production.INFO: ProcessCDR(1,14760135,1,1,2) [2025-03-25 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760135', 'tblTempUsageDetail_20' ) start [2025-03-25 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760135', 'tblTempUsageDetail_20' ) end [2025-03-25 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:34:26] Production.INFO: ==22736== Releasing lock... [2025-03-25 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:34:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:35:05 [end_date_ymd] => 2025-03-25 14:35:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:35:05' and `end` < '2025-03-25 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-03-25 14:35:19] Production.INFO: count ==5543 [2025-03-25 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:35:05 - End Time 2025-03-25 14:35:05 [2025-03-25 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760140', 'tblTempUsageDetail_20' ) start [2025-03-25 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760140', 'tblTempUsageDetail_20' ) end [2025-03-25 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760140', 'tblTempVendorCDR_20' ) start [2025-03-25 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760140', 'tblTempVendorCDR_20' ) end [2025-03-25 14:35:21] Production.INFO: ProcessCDR(1,14760140,1,1,2) [2025-03-25 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760140', 'tblTempUsageDetail_20' ) start [2025-03-25 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760140', 'tblTempUsageDetail_20' ) end [2025-03-25 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:35:27] Production.INFO: ==22841== Releasing lock... [2025-03-25 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:35:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:36:06 [end_date_ymd] => 2025-03-25 14:36:06 [RateCDR] => 1 ) [2025-03-25 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:36:06' and `end` < '2025-03-25 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:36:19] Production.INFO: count ==5547 [2025-03-25 14:36:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:36:06 - End Time 2025-03-25 14:36:06 [2025-03-25 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760145', 'tblTempUsageDetail_20' ) start [2025-03-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760145', 'tblTempUsageDetail_20' ) end [2025-03-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760145', 'tblTempVendorCDR_20' ) start [2025-03-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760145', 'tblTempVendorCDR_20' ) end [2025-03-25 14:36:22] Production.INFO: ProcessCDR(1,14760145,1,1,2) [2025-03-25 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760145', 'tblTempUsageDetail_20' ) start [2025-03-25 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760145', 'tblTempUsageDetail_20' ) end [2025-03-25 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:36:27] Production.INFO: ==22941== Releasing lock... [2025-03-25 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:36:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:37:05 [end_date_ymd] => 2025-03-25 14:37:05 [RateCDR] => 1 ) [2025-03-25 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:37:05' and `end` < '2025-03-25 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:37:18] Production.INFO: count ==5549 [2025-03-25 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:37:05 - End Time 2025-03-25 14:37:05 [2025-03-25 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760150', 'tblTempUsageDetail_20' ) start [2025-03-25 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760150', 'tblTempUsageDetail_20' ) end [2025-03-25 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760150', 'tblTempVendorCDR_20' ) start [2025-03-25 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760150', 'tblTempVendorCDR_20' ) end [2025-03-25 14:37:21] Production.INFO: ProcessCDR(1,14760150,1,1,2) [2025-03-25 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760150', 'tblTempUsageDetail_20' ) start [2025-03-25 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760150', 'tblTempUsageDetail_20' ) end [2025-03-25 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:37:26] Production.INFO: ==23040== Releasing lock... [2025-03-25 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:38:06 [end_date_ymd] => 2025-03-25 14:38:06 [RateCDR] => 1 ) [2025-03-25 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:38:06' and `end` < '2025-03-25 14: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-03-25 14:38:19] Production.INFO: count ==5565 [2025-03-25 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:38:06 - End Time 2025-03-25 14:38:06 [2025-03-25 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760155', 'tblTempUsageDetail_20' ) start [2025-03-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760155', 'tblTempUsageDetail_20' ) end [2025-03-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760155', 'tblTempVendorCDR_20' ) start [2025-03-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760155', 'tblTempVendorCDR_20' ) end [2025-03-25 14:38:22] Production.INFO: ProcessCDR(1,14760155,1,1,2) [2025-03-25 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760155', 'tblTempUsageDetail_20' ) start [2025-03-25 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760155', 'tblTempUsageDetail_20' ) end [2025-03-25 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:38:27] Production.INFO: ==23142== Releasing lock... [2025-03-25 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:38:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:39:05 [end_date_ymd] => 2025-03-25 14:39:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:39:05' and `end` < '2025-03-25 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-03-25 14:39:18] Production.INFO: count ==5569 [2025-03-25 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:39:05 - End Time 2025-03-25 14:39:05 [2025-03-25 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760160', 'tblTempUsageDetail_20' ) start [2025-03-25 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760160', 'tblTempUsageDetail_20' ) end [2025-03-25 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760160', 'tblTempVendorCDR_20' ) start [2025-03-25 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760160', 'tblTempVendorCDR_20' ) end [2025-03-25 14:39:21] Production.INFO: ProcessCDR(1,14760160,1,1,2) [2025-03-25 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760160', 'tblTempUsageDetail_20' ) start [2025-03-25 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760160', 'tblTempUsageDetail_20' ) end [2025-03-25 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:39:26] Production.INFO: ==23237== Releasing lock... [2025-03-25 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:39:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:40:06 [end_date_ymd] => 2025-03-25 14:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:40:06' and `end` < '2025-03-25 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-03-25 14:40:20] Production.INFO: count ==5570 [2025-03-25 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:40:06 - End Time 2025-03-25 14:40:06 [2025-03-25 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760166', 'tblTempUsageDetail_20' ) start [2025-03-25 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760166', 'tblTempUsageDetail_20' ) end [2025-03-25 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760166', 'tblTempVendorCDR_20' ) start [2025-03-25 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760166', 'tblTempVendorCDR_20' ) end [2025-03-25 14:40:22] Production.INFO: ProcessCDR(1,14760166,1,1,2) [2025-03-25 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760166', 'tblTempUsageDetail_20' ) start [2025-03-25 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760166', 'tblTempUsageDetail_20' ) end [2025-03-25 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:40:27] Production.INFO: ==23337== Releasing lock... [2025-03-25 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:40:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:41:05 [end_date_ymd] => 2025-03-25 14:41:05 [RateCDR] => 1 ) [2025-03-25 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:41:05' and `end` < '2025-03-25 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:41:18] Production.INFO: count ==5604 [2025-03-25 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:41:05 - End Time 2025-03-25 14:41:05 [2025-03-25 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760171', 'tblTempUsageDetail_20' ) start [2025-03-25 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760171', 'tblTempUsageDetail_20' ) end [2025-03-25 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760171', 'tblTempVendorCDR_20' ) start [2025-03-25 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760171', 'tblTempVendorCDR_20' ) end [2025-03-25 14:41:21] Production.INFO: ProcessCDR(1,14760171,1,1,2) [2025-03-25 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760171', 'tblTempUsageDetail_20' ) start [2025-03-25 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760171', 'tblTempUsageDetail_20' ) end [2025-03-25 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:41:26] Production.INFO: ==23440== Releasing lock... [2025-03-25 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:41:26] Production.INFO: 70 MB #Memory Used# [2025-03-25 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:42:05 [end_date_ymd] => 2025-03-25 14:42:05 [RateCDR] => 1 ) [2025-03-25 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:42:05' and `end` < '2025-03-25 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:42:19] Production.INFO: count ==5605 [2025-03-25 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:42:05 - End Time 2025-03-25 14:42:05 [2025-03-25 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760176', 'tblTempUsageDetail_20' ) start [2025-03-25 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760176', 'tblTempUsageDetail_20' ) end [2025-03-25 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760176', 'tblTempVendorCDR_20' ) start [2025-03-25 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760176', 'tblTempVendorCDR_20' ) end [2025-03-25 14:42:22] Production.INFO: ProcessCDR(1,14760176,1,1,2) [2025-03-25 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760176', 'tblTempUsageDetail_20' ) start [2025-03-25 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760176', 'tblTempUsageDetail_20' ) end [2025-03-25 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:42:27] Production.INFO: ==23582== Releasing lock... [2025-03-25 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:42:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:43:05 [end_date_ymd] => 2025-03-25 14:43:05 [RateCDR] => 1 ) [2025-03-25 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:43:05' and `end` < '2025-03-25 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:43:19] Production.INFO: count ==5613 [2025-03-25 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:43:05 - End Time 2025-03-25 14:43:05 [2025-03-25 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760181', 'tblTempUsageDetail_20' ) start [2025-03-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760181', 'tblTempUsageDetail_20' ) end [2025-03-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760181', 'tblTempVendorCDR_20' ) start [2025-03-25 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760181', 'tblTempVendorCDR_20' ) end [2025-03-25 14:43:21] Production.INFO: ProcessCDR(1,14760181,1,1,2) [2025-03-25 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760181', 'tblTempUsageDetail_20' ) start [2025-03-25 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760181', 'tblTempUsageDetail_20' ) end [2025-03-25 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:43:27] Production.INFO: ==23682== Releasing lock... [2025-03-25 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:43:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:44:06 [end_date_ymd] => 2025-03-25 14:44:06 [RateCDR] => 1 ) [2025-03-25 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:44:06' and `end` < '2025-03-25 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:44:19] Production.INFO: count ==5640 [2025-03-25 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:44:06 - End Time 2025-03-25 14:44:06 [2025-03-25 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760186', 'tblTempUsageDetail_20' ) start [2025-03-25 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760186', 'tblTempUsageDetail_20' ) end [2025-03-25 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760186', 'tblTempVendorCDR_20' ) start [2025-03-25 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760186', 'tblTempVendorCDR_20' ) end [2025-03-25 14:44:22] Production.INFO: ProcessCDR(1,14760186,1,1,2) [2025-03-25 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760186', 'tblTempUsageDetail_20' ) start [2025-03-25 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760186', 'tblTempUsageDetail_20' ) end [2025-03-25 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:44:28] Production.INFO: ==23781== Releasing lock... [2025-03-25 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:44:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:45:05 [end_date_ymd] => 2025-03-25 14:45:05 [RateCDR] => 1 ) [2025-03-25 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:45:05' and `end` < '2025-03-25 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:45:19] Production.INFO: count ==5635 [2025-03-25 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:45:05 - End Time 2025-03-25 14:45:05 [2025-03-25 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760191', 'tblTempUsageDetail_20' ) start [2025-03-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760191', 'tblTempUsageDetail_20' ) end [2025-03-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760191', 'tblTempVendorCDR_20' ) start [2025-03-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760191', 'tblTempVendorCDR_20' ) end [2025-03-25 14:45:22] Production.INFO: ProcessCDR(1,14760191,1,1,2) [2025-03-25 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760191', 'tblTempUsageDetail_20' ) start [2025-03-25 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760191', 'tblTempUsageDetail_20' ) end [2025-03-25 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:45:28] Production.INFO: ==23883== Releasing lock... [2025-03-25 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:45:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:46:06 [end_date_ymd] => 2025-03-25 14:46:06 [RateCDR] => 1 ) [2025-03-25 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:46:06' and `end` < '2025-03-25 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:46:20] Production.INFO: count ==5630 [2025-03-25 14:46:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:46:06 - End Time 2025-03-25 14:46:06 [2025-03-25 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760196', 'tblTempUsageDetail_20' ) start [2025-03-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760196', 'tblTempUsageDetail_20' ) end [2025-03-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760196', 'tblTempVendorCDR_20' ) start [2025-03-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760196', 'tblTempVendorCDR_20' ) end [2025-03-25 14:46:23] Production.INFO: ProcessCDR(1,14760196,1,1,2) [2025-03-25 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760196', 'tblTempUsageDetail_20' ) start [2025-03-25 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760196', 'tblTempUsageDetail_20' ) end [2025-03-25 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:46:28] Production.INFO: ==23982== Releasing lock... [2025-03-25 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:46:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:47:05 [end_date_ymd] => 2025-03-25 14:47:05 [RateCDR] => 1 ) [2025-03-25 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:47:05' and `end` < '2025-03-25 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:47:19] Production.INFO: count ==5585 [2025-03-25 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:47:05 - End Time 2025-03-25 14:47:05 [2025-03-25 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760201', 'tblTempUsageDetail_20' ) start [2025-03-25 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760201', 'tblTempUsageDetail_20' ) end [2025-03-25 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760201', 'tblTempVendorCDR_20' ) start [2025-03-25 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760201', 'tblTempVendorCDR_20' ) end [2025-03-25 14:47:22] Production.INFO: ProcessCDR(1,14760201,1,1,2) [2025-03-25 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760201', 'tblTempUsageDetail_20' ) start [2025-03-25 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760201', 'tblTempUsageDetail_20' ) end [2025-03-25 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:47:28] Production.INFO: ==24083== Releasing lock... [2025-03-25 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:47:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:48:06 [end_date_ymd] => 2025-03-25 14:48:06 [RateCDR] => 1 ) [2025-03-25 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:48:06' and `end` < '2025-03-25 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:48:20] Production.INFO: count ==5595 [2025-03-25 14:48:23] Production.ERROR: pbx CDR StartTime 2025-03-25 11:48:06 - End Time 2025-03-25 14:48:06 [2025-03-25 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760206', 'tblTempUsageDetail_20' ) start [2025-03-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760206', 'tblTempUsageDetail_20' ) end [2025-03-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760206', 'tblTempVendorCDR_20' ) start [2025-03-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760206', 'tblTempVendorCDR_20' ) end [2025-03-25 14:48:23] Production.INFO: ProcessCDR(1,14760206,1,1,2) [2025-03-25 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760206', 'tblTempUsageDetail_20' ) start [2025-03-25 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760206', 'tblTempUsageDetail_20' ) end [2025-03-25 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:48:28] Production.INFO: ==24183== Releasing lock... [2025-03-25 14:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:48:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:49:05 [end_date_ymd] => 2025-03-25 14:49:05 [RateCDR] => 1 ) [2025-03-25 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:49:05' and `end` < '2025-03-25 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:49:19] Production.INFO: count ==5592 [2025-03-25 14:49:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:49:05 - End Time 2025-03-25 14:49:05 [2025-03-25 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760211', 'tblTempUsageDetail_20' ) start [2025-03-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760211', 'tblTempUsageDetail_20' ) end [2025-03-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760211', 'tblTempVendorCDR_20' ) start [2025-03-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760211', 'tblTempVendorCDR_20' ) end [2025-03-25 14:49:22] Production.INFO: ProcessCDR(1,14760211,1,1,2) [2025-03-25 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760211', 'tblTempUsageDetail_20' ) start [2025-03-25 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760211', 'tblTempUsageDetail_20' ) end [2025-03-25 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:49:27] Production.INFO: ==24288== Releasing lock... [2025-03-25 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:49:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:50:06 [end_date_ymd] => 2025-03-25 14:50:06 [RateCDR] => 1 ) [2025-03-25 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:50:06' and `end` < '2025-03-25 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:50:20] Production.INFO: count ==5565 [2025-03-25 14:50:23] Production.ERROR: pbx CDR StartTime 2025-03-25 11:50:06 - End Time 2025-03-25 14:50:06 [2025-03-25 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760217', 'tblTempUsageDetail_20' ) start [2025-03-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760217', 'tblTempUsageDetail_20' ) end [2025-03-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760217', 'tblTempVendorCDR_20' ) start [2025-03-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760217', 'tblTempVendorCDR_20' ) end [2025-03-25 14:50:23] Production.INFO: ProcessCDR(1,14760217,1,1,2) [2025-03-25 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760217', 'tblTempUsageDetail_20' ) start [2025-03-25 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760217', 'tblTempUsageDetail_20' ) end [2025-03-25 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:50:29] Production.INFO: ==24389== Releasing lock... [2025-03-25 14:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:50:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:51:05 [end_date_ymd] => 2025-03-25 14:51:05 [RateCDR] => 1 ) [2025-03-25 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:51:05' and `end` < '2025-03-25 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:51:18] Production.INFO: count ==5511 [2025-03-25 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:51:05 - End Time 2025-03-25 14:51:05 [2025-03-25 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760222', 'tblTempUsageDetail_20' ) start [2025-03-25 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760222', 'tblTempUsageDetail_20' ) end [2025-03-25 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760222', 'tblTempVendorCDR_20' ) start [2025-03-25 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760222', 'tblTempVendorCDR_20' ) end [2025-03-25 14:51:21] Production.INFO: ProcessCDR(1,14760222,1,1,2) [2025-03-25 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760222', 'tblTempUsageDetail_20' ) start [2025-03-25 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760222', 'tblTempUsageDetail_20' ) end [2025-03-25 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:51:27] Production.INFO: ==24470== Releasing lock... [2025-03-25 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:51:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:52:06 [end_date_ymd] => 2025-03-25 14:52:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:52:06' and `end` < '2025-03-25 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-03-25 14:52:19] Production.INFO: count ==5502 [2025-03-25 14:52:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:52:06 - End Time 2025-03-25 14:52:06 [2025-03-25 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760227', 'tblTempUsageDetail_20' ) start [2025-03-25 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760227', 'tblTempUsageDetail_20' ) end [2025-03-25 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760227', 'tblTempVendorCDR_20' ) start [2025-03-25 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760227', 'tblTempVendorCDR_20' ) end [2025-03-25 14:52:22] Production.INFO: ProcessCDR(1,14760227,1,1,2) [2025-03-25 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760227', 'tblTempUsageDetail_20' ) start [2025-03-25 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760227', 'tblTempUsageDetail_20' ) end [2025-03-25 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:52:28] Production.INFO: ==24543== Releasing lock... [2025-03-25 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:52:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:53:05 [end_date_ymd] => 2025-03-25 14:53:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:53:05' and `end` < '2025-03-25 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-03-25 14:53:19] Production.INFO: count ==5516 [2025-03-25 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:53:05 - End Time 2025-03-25 14:53:05 [2025-03-25 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760232', 'tblTempUsageDetail_20' ) start [2025-03-25 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760232', 'tblTempUsageDetail_20' ) end [2025-03-25 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760232', 'tblTempVendorCDR_20' ) start [2025-03-25 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760232', 'tblTempVendorCDR_20' ) end [2025-03-25 14:53:22] Production.INFO: ProcessCDR(1,14760232,1,1,2) [2025-03-25 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760232', 'tblTempUsageDetail_20' ) start [2025-03-25 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760232', 'tblTempUsageDetail_20' ) end [2025-03-25 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:53:27] Production.INFO: ==24616== Releasing lock... [2025-03-25 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:53:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:54:06 [end_date_ymd] => 2025-03-25 14:54:06 [RateCDR] => 1 ) [2025-03-25 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:54:06' and `end` < '2025-03-25 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:54:19] Production.INFO: count ==5515 [2025-03-25 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:54:06 - End Time 2025-03-25 14:54:06 [2025-03-25 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760237', 'tblTempUsageDetail_20' ) start [2025-03-25 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760237', 'tblTempUsageDetail_20' ) end [2025-03-25 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760237', 'tblTempVendorCDR_20' ) start [2025-03-25 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760237', 'tblTempVendorCDR_20' ) end [2025-03-25 14:54:22] Production.INFO: ProcessCDR(1,14760237,1,1,2) [2025-03-25 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760237', 'tblTempUsageDetail_20' ) start [2025-03-25 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760237', 'tblTempUsageDetail_20' ) end [2025-03-25 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:54:27] Production.INFO: ==24687== Releasing lock... [2025-03-25 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:54:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:55:05 [end_date_ymd] => 2025-03-25 14:55:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:55:05' and `end` < '2025-03-25 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-03-25 14:55:19] Production.INFO: count ==5528 [2025-03-25 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:55:05 - End Time 2025-03-25 14:55:05 [2025-03-25 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760242', 'tblTempUsageDetail_20' ) start [2025-03-25 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760242', 'tblTempUsageDetail_20' ) end [2025-03-25 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760242', 'tblTempVendorCDR_20' ) start [2025-03-25 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760242', 'tblTempVendorCDR_20' ) end [2025-03-25 14:55:22] Production.INFO: ProcessCDR(1,14760242,1,1,2) [2025-03-25 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760242', 'tblTempUsageDetail_20' ) start [2025-03-25 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760242', 'tblTempUsageDetail_20' ) end [2025-03-25 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:55:27] Production.INFO: ==24760== Releasing lock... [2025-03-25 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:55:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:56:06 [end_date_ymd] => 2025-03-25 14:56:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:56:06' and `end` < '2025-03-25 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-03-25 14:56:19] Production.INFO: count ==5515 [2025-03-25 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-25 11:56:06 - End Time 2025-03-25 14:56:06 [2025-03-25 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760247', 'tblTempUsageDetail_20' ) start [2025-03-25 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760247', 'tblTempUsageDetail_20' ) end [2025-03-25 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760247', 'tblTempVendorCDR_20' ) start [2025-03-25 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760247', 'tblTempVendorCDR_20' ) end [2025-03-25 14:56:22] Production.INFO: ProcessCDR(1,14760247,1,1,2) [2025-03-25 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760247', 'tblTempUsageDetail_20' ) start [2025-03-25 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760247', 'tblTempUsageDetail_20' ) end [2025-03-25 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:56:27] Production.INFO: ==24834== Releasing lock... [2025-03-25 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:56:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:57:05 [end_date_ymd] => 2025-03-25 14:57:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 11:57:05' and `end` < '2025-03-25 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-03-25 14:57:19] Production.INFO: count ==5516 [2025-03-25 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:57:05 - End Time 2025-03-25 14:57:05 [2025-03-25 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760252', 'tblTempUsageDetail_20' ) start [2025-03-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760252', 'tblTempUsageDetail_20' ) end [2025-03-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760252', 'tblTempVendorCDR_20' ) start [2025-03-25 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760252', 'tblTempVendorCDR_20' ) end [2025-03-25 14:57:21] Production.INFO: ProcessCDR(1,14760252,1,1,2) [2025-03-25 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760252', 'tblTempUsageDetail_20' ) start [2025-03-25 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760252', 'tblTempUsageDetail_20' ) end [2025-03-25 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:57:27] Production.INFO: ==24909== Releasing lock... [2025-03-25 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:57:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:58:05 [end_date_ymd] => 2025-03-25 14:58:05 [RateCDR] => 1 ) [2025-03-25 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:58:05' and `end` < '2025-03-25 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:58:19] Production.INFO: count ==5534 [2025-03-25 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:58:05 - End Time 2025-03-25 14:58:05 [2025-03-25 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760257', 'tblTempUsageDetail_20' ) start [2025-03-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760257', 'tblTempUsageDetail_20' ) end [2025-03-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760257', 'tblTempVendorCDR_20' ) start [2025-03-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760257', 'tblTempVendorCDR_20' ) end [2025-03-25 14:58:22] Production.INFO: ProcessCDR(1,14760257,1,1,2) [2025-03-25 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760257', 'tblTempUsageDetail_20' ) start [2025-03-25 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760257', 'tblTempUsageDetail_20' ) end [2025-03-25 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:58:27] Production.INFO: ==25019== Releasing lock... [2025-03-25 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:58:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 11:59:05 [end_date_ymd] => 2025-03-25 14:59:05 [RateCDR] => 1 ) [2025-03-25 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 11:59:05' and `end` < '2025-03-25 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 14:59:19] Production.INFO: count ==5558 [2025-03-25 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-25 11:59:05 - End Time 2025-03-25 14:59:05 [2025-03-25 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760262', 'tblTempUsageDetail_20' ) start [2025-03-25 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760262', 'tblTempUsageDetail_20' ) end [2025-03-25 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760262', 'tblTempVendorCDR_20' ) start [2025-03-25 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760262', 'tblTempVendorCDR_20' ) end [2025-03-25 14:59:21] Production.INFO: ProcessCDR(1,14760262,1,1,2) [2025-03-25 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760262', 'tblTempUsageDetail_20' ) start [2025-03-25 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760262', 'tblTempUsageDetail_20' ) end [2025-03-25 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 14:59:27] Production.INFO: ==25092== Releasing lock... [2025-03-25 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 14:59:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:00:07 [end_date_ymd] => 2025-03-25 15:00:07 [RateCDR] => 1 ) [2025-03-25 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:00:07' and `end` < '2025-03-25 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:00:20] Production.INFO: count ==5545 [2025-03-25 15:00:23] Production.ERROR: pbx CDR StartTime 2025-03-25 12:00:07 - End Time 2025-03-25 15:00:07 [2025-03-25 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760267', 'tblTempUsageDetail_20' ) start [2025-03-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760267', 'tblTempUsageDetail_20' ) end [2025-03-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760267', 'tblTempVendorCDR_20' ) start [2025-03-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760267', 'tblTempVendorCDR_20' ) end [2025-03-25 15:00:23] Production.INFO: ProcessCDR(1,14760267,1,1,2) [2025-03-25 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760267', 'tblTempUsageDetail_20' ) start [2025-03-25 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760267', 'tblTempUsageDetail_20' ) end [2025-03-25 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:00:29] Production.INFO: ==25172== Releasing lock... [2025-03-25 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:00:29] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:01:06 [end_date_ymd] => 2025-03-25 15:01:06 [RateCDR] => 1 ) [2025-03-25 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:01:06' and `end` < '2025-03-25 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:01:19] Production.INFO: count ==5562 [2025-03-25 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:01:06 - End Time 2025-03-25 15:01:06 [2025-03-25 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760273', 'tblTempUsageDetail_20' ) start [2025-03-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760273', 'tblTempUsageDetail_20' ) end [2025-03-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760273', 'tblTempVendorCDR_20' ) start [2025-03-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760273', 'tblTempVendorCDR_20' ) end [2025-03-25 15:01:22] Production.INFO: ProcessCDR(1,14760273,1,1,2) [2025-03-25 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760273', 'tblTempUsageDetail_20' ) start [2025-03-25 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760273', 'tblTempUsageDetail_20' ) end [2025-03-25 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:01:27] Production.INFO: ==25264== Releasing lock... [2025-03-25 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:01:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:02:05 [end_date_ymd] => 2025-03-25 15:02:05 [RateCDR] => 1 ) [2025-03-25 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:02:05' and `end` < '2025-03-25 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:02:19] Production.INFO: count ==5582 [2025-03-25 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:02:05 - End Time 2025-03-25 15:02:05 [2025-03-25 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760276', 'tblTempUsageDetail_20' ) start [2025-03-25 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760276', 'tblTempUsageDetail_20' ) end [2025-03-25 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760276', 'tblTempVendorCDR_20' ) start [2025-03-25 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760276', 'tblTempVendorCDR_20' ) end [2025-03-25 15:02:22] Production.INFO: ProcessCDR(1,14760276,1,1,2) [2025-03-25 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760276', 'tblTempUsageDetail_20' ) start [2025-03-25 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760276', 'tblTempUsageDetail_20' ) end [2025-03-25 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:02:28] Production.INFO: ==25420== Releasing lock... [2025-03-25 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:02:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:03:05 [end_date_ymd] => 2025-03-25 15:03:05 [RateCDR] => 1 ) [2025-03-25 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:03:05' and `end` < '2025-03-25 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:03:19] Production.INFO: count ==5562 [2025-03-25 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:03:05 - End Time 2025-03-25 15:03:05 [2025-03-25 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760283', 'tblTempUsageDetail_20' ) start [2025-03-25 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760283', 'tblTempUsageDetail_20' ) end [2025-03-25 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760283', 'tblTempVendorCDR_20' ) start [2025-03-25 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760283', 'tblTempVendorCDR_20' ) end [2025-03-25 15:03:22] Production.INFO: ProcessCDR(1,14760283,1,1,2) [2025-03-25 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760283', 'tblTempUsageDetail_20' ) start [2025-03-25 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760283', 'tblTempUsageDetail_20' ) end [2025-03-25 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:03:28] Production.INFO: ==25492== Releasing lock... [2025-03-25 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:03:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:04:05 [end_date_ymd] => 2025-03-25 15:04:05 [RateCDR] => 1 ) [2025-03-25 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:04:05' and `end` < '2025-03-25 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:04:19] Production.INFO: count ==5603 [2025-03-25 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:04:05 - End Time 2025-03-25 15:04:05 [2025-03-25 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760288', 'tblTempUsageDetail_20' ) start [2025-03-25 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760288', 'tblTempUsageDetail_20' ) end [2025-03-25 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760288', 'tblTempVendorCDR_20' ) start [2025-03-25 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760288', 'tblTempVendorCDR_20' ) end [2025-03-25 15:04:22] Production.INFO: ProcessCDR(1,14760288,1,1,2) [2025-03-25 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760288', 'tblTempUsageDetail_20' ) start [2025-03-25 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760288', 'tblTempUsageDetail_20' ) end [2025-03-25 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:04:28] Production.INFO: ==25565== Releasing lock... [2025-03-25 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:04:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:05:05 [end_date_ymd] => 2025-03-25 15:05:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:05:05' and `end` < '2025-03-25 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-03-25 15:05:19] Production.INFO: count ==5626 [2025-03-25 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:05:05 - End Time 2025-03-25 15:05:05 [2025-03-25 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760293', 'tblTempUsageDetail_20' ) start [2025-03-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760293', 'tblTempUsageDetail_20' ) end [2025-03-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760293', 'tblTempVendorCDR_20' ) start [2025-03-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760293', 'tblTempVendorCDR_20' ) end [2025-03-25 15:05:22] Production.INFO: ProcessCDR(1,14760293,1,1,2) [2025-03-25 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760293', 'tblTempUsageDetail_20' ) start [2025-03-25 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760293', 'tblTempUsageDetail_20' ) end [2025-03-25 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:05:28] Production.INFO: ==25715== Releasing lock... [2025-03-25 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:05:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:06:06 [end_date_ymd] => 2025-03-25 15:06:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:06:06' and `end` < '2025-03-25 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-03-25 15:06:19] Production.INFO: count ==5634 [2025-03-25 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:06:06 - End Time 2025-03-25 15:06:06 [2025-03-25 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760298', 'tblTempUsageDetail_20' ) start [2025-03-25 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760298', 'tblTempUsageDetail_20' ) end [2025-03-25 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760298', 'tblTempVendorCDR_20' ) start [2025-03-25 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760298', 'tblTempVendorCDR_20' ) end [2025-03-25 15:06:22] Production.INFO: ProcessCDR(1,14760298,1,1,2) [2025-03-25 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760298', 'tblTempUsageDetail_20' ) start [2025-03-25 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760298', 'tblTempUsageDetail_20' ) end [2025-03-25 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:06:28] Production.INFO: ==25787== Releasing lock... [2025-03-25 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:06:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:07:05 [end_date_ymd] => 2025-03-25 15:07:05 [RateCDR] => 1 ) [2025-03-25 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:07:05' and `end` < '2025-03-25 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:07:18] Production.INFO: count ==5638 [2025-03-25 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:07:05 - End Time 2025-03-25 15:07:05 [2025-03-25 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760303', 'tblTempUsageDetail_20' ) start [2025-03-25 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760303', 'tblTempUsageDetail_20' ) end [2025-03-25 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760303', 'tblTempVendorCDR_20' ) start [2025-03-25 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760303', 'tblTempVendorCDR_20' ) end [2025-03-25 15:07:21] Production.INFO: ProcessCDR(1,14760303,1,1,2) [2025-03-25 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760303', 'tblTempUsageDetail_20' ) start [2025-03-25 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760303', 'tblTempUsageDetail_20' ) end [2025-03-25 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:07:27] Production.INFO: ==25864== Releasing lock... [2025-03-25 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:07:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:08:06 [end_date_ymd] => 2025-03-25 15:08:06 [RateCDR] => 1 ) [2025-03-25 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:08:06' and `end` < '2025-03-25 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:08:20] Production.INFO: count ==5642 [2025-03-25 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:08:06 - End Time 2025-03-25 15:08:06 [2025-03-25 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760308', 'tblTempUsageDetail_20' ) start [2025-03-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760308', 'tblTempUsageDetail_20' ) end [2025-03-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760308', 'tblTempVendorCDR_20' ) start [2025-03-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760308', 'tblTempVendorCDR_20' ) end [2025-03-25 15:08:22] Production.INFO: ProcessCDR(1,14760308,1,1,2) [2025-03-25 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760308', 'tblTempUsageDetail_20' ) start [2025-03-25 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760308', 'tblTempUsageDetail_20' ) end [2025-03-25 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:08:29] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:08:29] Production.INFO: ==26023== Releasing lock... [2025-03-25 15:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:08:29] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:09:06 [end_date_ymd] => 2025-03-25 15:09:06 [RateCDR] => 1 ) [2025-03-25 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:09:06' and `end` < '2025-03-25 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:09:19] Production.INFO: count ==5637 [2025-03-25 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:09:06 - End Time 2025-03-25 15:09:06 [2025-03-25 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760313', 'tblTempUsageDetail_20' ) start [2025-03-25 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760313', 'tblTempUsageDetail_20' ) end [2025-03-25 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760313', 'tblTempVendorCDR_20' ) start [2025-03-25 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760313', 'tblTempVendorCDR_20' ) end [2025-03-25 15:09:22] Production.INFO: ProcessCDR(1,14760313,1,1,2) [2025-03-25 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760313', 'tblTempUsageDetail_20' ) start [2025-03-25 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760313', 'tblTempUsageDetail_20' ) end [2025-03-25 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:09:29] Production.INFO: ==26095== Releasing lock... [2025-03-25 15:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:09:29] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:10:07 [end_date_ymd] => 2025-03-25 15:10:07 [RateCDR] => 1 ) [2025-03-25 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:10:07' and `end` < '2025-03-25 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:10:21] Production.INFO: count ==5624 [2025-03-25 15:10:24] Production.ERROR: pbx CDR StartTime 2025-03-25 12:10:07 - End Time 2025-03-25 15:10:07 [2025-03-25 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760319', 'tblTempUsageDetail_20' ) start [2025-03-25 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760319', 'tblTempUsageDetail_20' ) end [2025-03-25 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760319', 'tblTempVendorCDR_20' ) start [2025-03-25 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760319', 'tblTempVendorCDR_20' ) end [2025-03-25 15:10:25] Production.INFO: ProcessCDR(1,14760319,1,1,2) [2025-03-25 15:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760319', 'tblTempUsageDetail_20' ) start [2025-03-25 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760319', 'tblTempUsageDetail_20' ) end [2025-03-25 15:10:30] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:10:30] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:10:30] Production.INFO: ==26185== Releasing lock... [2025-03-25 15:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:10:30] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:11:05 [end_date_ymd] => 2025-03-25 15:11:05 [RateCDR] => 1 ) [2025-03-25 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:11:05' and `end` < '2025-03-25 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:11:19] Production.INFO: count ==5639 [2025-03-25 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:11:05 - End Time 2025-03-25 15:11:05 [2025-03-25 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760324', 'tblTempUsageDetail_20' ) start [2025-03-25 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760324', 'tblTempUsageDetail_20' ) end [2025-03-25 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760324', 'tblTempVendorCDR_20' ) start [2025-03-25 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760324', 'tblTempVendorCDR_20' ) end [2025-03-25 15:11:22] Production.INFO: ProcessCDR(1,14760324,1,1,2) [2025-03-25 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760324', 'tblTempUsageDetail_20' ) start [2025-03-25 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760324', 'tblTempUsageDetail_20' ) end [2025-03-25 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:11:28] Production.INFO: ==26259== Releasing lock... [2025-03-25 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:11:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:12:06 [end_date_ymd] => 2025-03-25 15:12:06 [RateCDR] => 1 ) [2025-03-25 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:12:06' and `end` < '2025-03-25 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:12:20] Production.INFO: count ==5649 [2025-03-25 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:12:06 - End Time 2025-03-25 15:12:06 [2025-03-25 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760329', 'tblTempUsageDetail_20' ) start [2025-03-25 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760329', 'tblTempUsageDetail_20' ) end [2025-03-25 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760329', 'tblTempVendorCDR_20' ) start [2025-03-25 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760329', 'tblTempVendorCDR_20' ) end [2025-03-25 15:12:23] Production.INFO: ProcessCDR(1,14760329,1,1,2) [2025-03-25 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760329', 'tblTempUsageDetail_20' ) start [2025-03-25 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760329', 'tblTempUsageDetail_20' ) end [2025-03-25 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:12:28] Production.INFO: ==26409== Releasing lock... [2025-03-25 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:12:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:13:06 [end_date_ymd] => 2025-03-25 15:13:06 [RateCDR] => 1 ) [2025-03-25 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:13:06' and `end` < '2025-03-25 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:13:19] Production.INFO: count ==5647 [2025-03-25 15:13:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:13:06 - End Time 2025-03-25 15:13:06 [2025-03-25 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760334', 'tblTempUsageDetail_20' ) start [2025-03-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760334', 'tblTempUsageDetail_20' ) end [2025-03-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760334', 'tblTempVendorCDR_20' ) start [2025-03-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760334', 'tblTempVendorCDR_20' ) end [2025-03-25 15:13:22] Production.INFO: ProcessCDR(1,14760334,1,1,2) [2025-03-25 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760334', 'tblTempUsageDetail_20' ) start [2025-03-25 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760334', 'tblTempUsageDetail_20' ) end [2025-03-25 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:13:28] Production.INFO: ==26520== Releasing lock... [2025-03-25 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:13:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:14:05 [end_date_ymd] => 2025-03-25 15:14:05 [RateCDR] => 1 ) [2025-03-25 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:14:05' and `end` < '2025-03-25 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:14:19] Production.INFO: count ==5650 [2025-03-25 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:14:05 - End Time 2025-03-25 15:14:05 [2025-03-25 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760339', 'tblTempUsageDetail_20' ) start [2025-03-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760339', 'tblTempUsageDetail_20' ) end [2025-03-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760339', 'tblTempVendorCDR_20' ) start [2025-03-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760339', 'tblTempVendorCDR_20' ) end [2025-03-25 15:14:22] Production.INFO: ProcessCDR(1,14760339,1,1,2) [2025-03-25 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760339', 'tblTempUsageDetail_20' ) start [2025-03-25 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760339', 'tblTempUsageDetail_20' ) end [2025-03-25 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:14:27] Production.INFO: ==26593== Releasing lock... [2025-03-25 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:14:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:15:06 [end_date_ymd] => 2025-03-25 15:15:06 [RateCDR] => 1 ) [2025-03-25 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:15:06' and `end` < '2025-03-25 15: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-03-25 15:15:20] Production.INFO: count ==5643 [2025-03-25 15:15:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:15:06 - End Time 2025-03-25 15:15:06 [2025-03-25 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760344', 'tblTempUsageDetail_20' ) start [2025-03-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760344', 'tblTempUsageDetail_20' ) end [2025-03-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760344', 'tblTempVendorCDR_20' ) start [2025-03-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760344', 'tblTempVendorCDR_20' ) end [2025-03-25 15:15:22] Production.INFO: ProcessCDR(1,14760344,1,1,2) [2025-03-25 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760344', 'tblTempUsageDetail_20' ) start [2025-03-25 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760344', 'tblTempUsageDetail_20' ) end [2025-03-25 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:15:28] Production.INFO: ==26746== Releasing lock... [2025-03-25 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:15:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:16:05 [end_date_ymd] => 2025-03-25 15:16:05 [RateCDR] => 1 ) [2025-03-25 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:16:05' and `end` < '2025-03-25 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:16:19] Production.INFO: count ==5643 [2025-03-25 15:16:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:16:05 - End Time 2025-03-25 15:16:05 [2025-03-25 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760349', 'tblTempUsageDetail_20' ) start [2025-03-25 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760349', 'tblTempUsageDetail_20' ) end [2025-03-25 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760349', 'tblTempVendorCDR_20' ) start [2025-03-25 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760349', 'tblTempVendorCDR_20' ) end [2025-03-25 15:16:22] Production.INFO: ProcessCDR(1,14760349,1,1,2) [2025-03-25 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760349', 'tblTempUsageDetail_20' ) start [2025-03-25 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760349', 'tblTempUsageDetail_20' ) end [2025-03-25 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:16:28] Production.INFO: ==26819== Releasing lock... [2025-03-25 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:16:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:17:05 [end_date_ymd] => 2025-03-25 15:17:05 [RateCDR] => 1 ) [2025-03-25 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:17:05' and `end` < '2025-03-25 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:17:19] Production.INFO: count ==5648 [2025-03-25 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:17:05 - End Time 2025-03-25 15:17:05 [2025-03-25 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760354', 'tblTempUsageDetail_20' ) start [2025-03-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760354', 'tblTempUsageDetail_20' ) end [2025-03-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760354', 'tblTempVendorCDR_20' ) start [2025-03-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760354', 'tblTempVendorCDR_20' ) end [2025-03-25 15:17:21] Production.INFO: ProcessCDR(1,14760354,1,1,2) [2025-03-25 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760354', 'tblTempUsageDetail_20' ) start [2025-03-25 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760354', 'tblTempUsageDetail_20' ) end [2025-03-25 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:17:25] Production.INFO: ==26891== Releasing lock... [2025-03-25 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:17:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:18:06 [end_date_ymd] => 2025-03-25 15:18:06 [RateCDR] => 1 ) [2025-03-25 15:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:18:06' and `end` < '2025-03-25 15:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:18:20] Production.INFO: count ==5660 [2025-03-25 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:18:06 - End Time 2025-03-25 15:18:06 [2025-03-25 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760359', 'tblTempUsageDetail_20' ) start [2025-03-25 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760359', 'tblTempUsageDetail_20' ) end [2025-03-25 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760359', 'tblTempVendorCDR_20' ) start [2025-03-25 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760359', 'tblTempVendorCDR_20' ) end [2025-03-25 15:18:22] Production.INFO: ProcessCDR(1,14760359,1,1,2) [2025-03-25 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760359', 'tblTempUsageDetail_20' ) start [2025-03-25 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760359', 'tblTempUsageDetail_20' ) end [2025-03-25 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:18:28] Production.INFO: ==26963== Releasing lock... [2025-03-25 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:18:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:19:05 [end_date_ymd] => 2025-03-25 15:19:05 [RateCDR] => 1 ) [2025-03-25 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:19:05' and `end` < '2025-03-25 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:19:19] Production.INFO: count ==5724 [2025-03-25 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:19:05 - End Time 2025-03-25 15:19:05 [2025-03-25 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760364', 'tblTempUsageDetail_20' ) start [2025-03-25 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760364', 'tblTempUsageDetail_20' ) end [2025-03-25 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760364', 'tblTempVendorCDR_20' ) start [2025-03-25 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760364', 'tblTempVendorCDR_20' ) end [2025-03-25 15:19:22] Production.INFO: ProcessCDR(1,14760364,1,1,2) [2025-03-25 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760364', 'tblTempUsageDetail_20' ) start [2025-03-25 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760364', 'tblTempUsageDetail_20' ) end [2025-03-25 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:19:27] Production.INFO: ==27035== Releasing lock... [2025-03-25 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:19:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:20:05 [end_date_ymd] => 2025-03-25 15:20:05 [RateCDR] => 1 ) [2025-03-25 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:20:05' and `end` < '2025-03-25 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:20:19] Production.INFO: count ==5671 [2025-03-25 15:20:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:20:05 - End Time 2025-03-25 15:20:05 [2025-03-25 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760370', 'tblTempUsageDetail_20' ) start [2025-03-25 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760370', 'tblTempUsageDetail_20' ) end [2025-03-25 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760370', 'tblTempVendorCDR_20' ) start [2025-03-25 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760370', 'tblTempVendorCDR_20' ) end [2025-03-25 15:20:22] Production.INFO: ProcessCDR(1,14760370,1,1,2) [2025-03-25 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760370', 'tblTempUsageDetail_20' ) start [2025-03-25 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760370', 'tblTempUsageDetail_20' ) end [2025-03-25 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:20:27] Production.INFO: ==27110== Releasing lock... [2025-03-25 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:20:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:21:06 [end_date_ymd] => 2025-03-25 15:21:06 [RateCDR] => 1 ) [2025-03-25 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:21:06' and `end` < '2025-03-25 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:21:19] Production.INFO: count ==5631 [2025-03-25 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:21:06 - End Time 2025-03-25 15:21:06 [2025-03-25 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760375', 'tblTempUsageDetail_20' ) start [2025-03-25 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760375', 'tblTempUsageDetail_20' ) end [2025-03-25 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760375', 'tblTempVendorCDR_20' ) start [2025-03-25 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760375', 'tblTempVendorCDR_20' ) end [2025-03-25 15:21:22] Production.INFO: ProcessCDR(1,14760375,1,1,2) [2025-03-25 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760375', 'tblTempUsageDetail_20' ) start [2025-03-25 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760375', 'tblTempUsageDetail_20' ) end [2025-03-25 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:21:27] Production.INFO: ==27192== Releasing lock... [2025-03-25 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:21:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:22:05 [end_date_ymd] => 2025-03-25 15:22:05 [RateCDR] => 1 ) [2025-03-25 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:22:05' and `end` < '2025-03-25 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:22:18] Production.INFO: count ==5612 [2025-03-25 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:22:05 - End Time 2025-03-25 15:22:05 [2025-03-25 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760380', 'tblTempUsageDetail_20' ) start [2025-03-25 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760380', 'tblTempUsageDetail_20' ) end [2025-03-25 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760380', 'tblTempVendorCDR_20' ) start [2025-03-25 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760380', 'tblTempVendorCDR_20' ) end [2025-03-25 15:22:21] Production.INFO: ProcessCDR(1,14760380,1,1,2) [2025-03-25 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760380', 'tblTempUsageDetail_20' ) start [2025-03-25 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760380', 'tblTempUsageDetail_20' ) end [2025-03-25 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:22:26] Production.INFO: ==27264== Releasing lock... [2025-03-25 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:22:26] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:23:05 [end_date_ymd] => 2025-03-25 15:23:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:23:05' and `end` < '2025-03-25 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-03-25 15:23:19] Production.INFO: count ==5612 [2025-03-25 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:23:05 - End Time 2025-03-25 15:23:05 [2025-03-25 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760385', 'tblTempUsageDetail_20' ) start [2025-03-25 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760385', 'tblTempUsageDetail_20' ) end [2025-03-25 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760385', 'tblTempVendorCDR_20' ) start [2025-03-25 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760385', 'tblTempVendorCDR_20' ) end [2025-03-25 15:23:22] Production.INFO: ProcessCDR(1,14760385,1,1,2) [2025-03-25 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760385', 'tblTempUsageDetail_20' ) start [2025-03-25 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760385', 'tblTempUsageDetail_20' ) end [2025-03-25 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:23:27] Production.INFO: ==27337== Releasing lock... [2025-03-25 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:23:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:24:06 [end_date_ymd] => 2025-03-25 15:24:06 [RateCDR] => 1 ) [2025-03-25 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:24:06' and `end` < '2025-03-25 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:24:20] Production.INFO: count ==5601 [2025-03-25 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:24:06 - End Time 2025-03-25 15:24:06 [2025-03-25 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760390', 'tblTempUsageDetail_20' ) start [2025-03-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760390', 'tblTempUsageDetail_20' ) end [2025-03-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760390', 'tblTempVendorCDR_20' ) start [2025-03-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760390', 'tblTempVendorCDR_20' ) end [2025-03-25 15:24:22] Production.INFO: ProcessCDR(1,14760390,1,1,2) [2025-03-25 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760390', 'tblTempUsageDetail_20' ) start [2025-03-25 15:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760390', 'tblTempUsageDetail_20' ) end [2025-03-25 15:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:24:28] Production.INFO: ==27411== Releasing lock... [2025-03-25 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:24:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:25:05 [end_date_ymd] => 2025-03-25 15:25:05 [RateCDR] => 1 ) [2025-03-25 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:25:05' and `end` < '2025-03-25 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:25:20] Production.INFO: count ==5607 [2025-03-25 15:25:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:25:05 - End Time 2025-03-25 15:25:05 [2025-03-25 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760395', 'tblTempUsageDetail_20' ) start [2025-03-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760395', 'tblTempUsageDetail_20' ) end [2025-03-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760395', 'tblTempVendorCDR_20' ) start [2025-03-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760395', 'tblTempVendorCDR_20' ) end [2025-03-25 15:25:23] Production.INFO: ProcessCDR(1,14760395,1,1,2) [2025-03-25 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760395', 'tblTempUsageDetail_20' ) start [2025-03-25 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760395', 'tblTempUsageDetail_20' ) end [2025-03-25 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:25:28] Production.INFO: ==27484== Releasing lock... [2025-03-25 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:25:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:26:06 [end_date_ymd] => 2025-03-25 15:26:06 [RateCDR] => 1 ) [2025-03-25 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:26:06' and `end` < '2025-03-25 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:26:19] Production.INFO: count ==5590 [2025-03-25 15:26:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:26:06 - End Time 2025-03-25 15:26:06 [2025-03-25 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760400', 'tblTempUsageDetail_20' ) start [2025-03-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760400', 'tblTempUsageDetail_20' ) end [2025-03-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760400', 'tblTempVendorCDR_20' ) start [2025-03-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760400', 'tblTempVendorCDR_20' ) end [2025-03-25 15:26:22] Production.INFO: ProcessCDR(1,14760400,1,1,2) [2025-03-25 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760400', 'tblTempUsageDetail_20' ) start [2025-03-25 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760400', 'tblTempUsageDetail_20' ) end [2025-03-25 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:26:27] Production.INFO: ==27555== Releasing lock... [2025-03-25 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:26:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:27:05 [end_date_ymd] => 2025-03-25 15:27:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:27:05' and `end` < '2025-03-25 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-03-25 15:27:18] Production.INFO: count ==5588 [2025-03-25 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:27:05 - End Time 2025-03-25 15:27:05 [2025-03-25 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760405', 'tblTempUsageDetail_20' ) start [2025-03-25 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760405', 'tblTempUsageDetail_20' ) end [2025-03-25 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760405', 'tblTempVendorCDR_20' ) start [2025-03-25 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760405', 'tblTempVendorCDR_20' ) end [2025-03-25 15:27:21] Production.INFO: ProcessCDR(1,14760405,1,1,2) [2025-03-25 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760405', 'tblTempUsageDetail_20' ) start [2025-03-25 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760405', 'tblTempUsageDetail_20' ) end [2025-03-25 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:27:26] Production.INFO: ==27629== Releasing lock... [2025-03-25 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:27:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:28:05 [end_date_ymd] => 2025-03-25 15:28:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:28:05' and `end` < '2025-03-25 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:28:19] Production.INFO: count ==5598 [2025-03-25 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:28:05 - End Time 2025-03-25 15:28:05 [2025-03-25 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760410', 'tblTempUsageDetail_20' ) start [2025-03-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760410', 'tblTempUsageDetail_20' ) end [2025-03-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760410', 'tblTempVendorCDR_20' ) start [2025-03-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760410', 'tblTempVendorCDR_20' ) end [2025-03-25 15:28:22] Production.INFO: ProcessCDR(1,14760410,1,1,2) [2025-03-25 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760410', 'tblTempUsageDetail_20' ) start [2025-03-25 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760410', 'tblTempUsageDetail_20' ) end [2025-03-25 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:28:27] Production.INFO: ==27704== Releasing lock... [2025-03-25 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:28:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:29:05 [end_date_ymd] => 2025-03-25 15:29:05 [RateCDR] => 1 ) [2025-03-25 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:29:05' and `end` < '2025-03-25 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:29:18] Production.INFO: count ==5603 [2025-03-25 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:29:05 - End Time 2025-03-25 15:29:05 [2025-03-25 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760415', 'tblTempUsageDetail_20' ) start [2025-03-25 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760415', 'tblTempUsageDetail_20' ) end [2025-03-25 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760415', 'tblTempVendorCDR_20' ) start [2025-03-25 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760415', 'tblTempVendorCDR_20' ) end [2025-03-25 15:29:21] Production.INFO: ProcessCDR(1,14760415,1,1,2) [2025-03-25 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760415', 'tblTempUsageDetail_20' ) start [2025-03-25 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760415', 'tblTempUsageDetail_20' ) end [2025-03-25 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:29:26] Production.INFO: ==27819== Releasing lock... [2025-03-25 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:29:26] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:30:06 [end_date_ymd] => 2025-03-25 15:30:06 [RateCDR] => 1 ) [2025-03-25 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:30:06' and `end` < '2025-03-25 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:30:20] Production.INFO: count ==5615 [2025-03-25 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:30:06 - End Time 2025-03-25 15:30:06 [2025-03-25 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760421', 'tblTempUsageDetail_20' ) start [2025-03-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760421', 'tblTempUsageDetail_20' ) end [2025-03-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760421', 'tblTempVendorCDR_20' ) start [2025-03-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760421', 'tblTempVendorCDR_20' ) end [2025-03-25 15:30:23] Production.INFO: ProcessCDR(1,14760421,1,1,2) [2025-03-25 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760421', 'tblTempUsageDetail_20' ) start [2025-03-25 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760421', 'tblTempUsageDetail_20' ) end [2025-03-25 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:30:28] Production.INFO: ==27893== Releasing lock... [2025-03-25 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:30:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:31:04 [end_date_ymd] => 2025-03-25 15:31:04 [RateCDR] => 1 ) [2025-03-25 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:31:04' and `end` < '2025-03-25 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:31:18] Production.INFO: count ==5607 [2025-03-25 15:31:20] Production.ERROR: pbx CDR StartTime 2025-03-25 12:31:04 - End Time 2025-03-25 15:31:04 [2025-03-25 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760426', 'tblTempUsageDetail_20' ) start [2025-03-25 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760426', 'tblTempUsageDetail_20' ) end [2025-03-25 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760426', 'tblTempVendorCDR_20' ) start [2025-03-25 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760426', 'tblTempVendorCDR_20' ) end [2025-03-25 15:31:21] Production.INFO: ProcessCDR(1,14760426,1,1,2) [2025-03-25 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760426', 'tblTempUsageDetail_20' ) start [2025-03-25 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760426', 'tblTempUsageDetail_20' ) end [2025-03-25 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:31:26] Production.INFO: ==27968== Releasing lock... [2025-03-25 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:31:26] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:32:06 [end_date_ymd] => 2025-03-25 15:32:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:32:06' and `end` < '2025-03-25 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-03-25 15:32:20] Production.INFO: count ==5626 [2025-03-25 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:32:06 - End Time 2025-03-25 15:32:06 [2025-03-25 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760431', 'tblTempUsageDetail_20' ) start [2025-03-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760431', 'tblTempUsageDetail_20' ) end [2025-03-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760431', 'tblTempVendorCDR_20' ) start [2025-03-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760431', 'tblTempVendorCDR_20' ) end [2025-03-25 15:32:22] Production.INFO: ProcessCDR(1,14760431,1,1,2) [2025-03-25 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760431', 'tblTempUsageDetail_20' ) start [2025-03-25 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760431', 'tblTempUsageDetail_20' ) end [2025-03-25 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:32:28] Production.INFO: ==28043== Releasing lock... [2025-03-25 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:32:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:33:05 [end_date_ymd] => 2025-03-25 15:33:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:33:05' and `end` < '2025-03-25 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-03-25 15:33:18] Production.INFO: count ==5668 [2025-03-25 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:33:05 - End Time 2025-03-25 15:33:05 [2025-03-25 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760436', 'tblTempUsageDetail_20' ) start [2025-03-25 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760436', 'tblTempUsageDetail_20' ) end [2025-03-25 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760436', 'tblTempVendorCDR_20' ) start [2025-03-25 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760436', 'tblTempVendorCDR_20' ) end [2025-03-25 15:33:21] Production.INFO: ProcessCDR(1,14760436,1,1,2) [2025-03-25 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760436', 'tblTempUsageDetail_20' ) start [2025-03-25 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760436', 'tblTempUsageDetail_20' ) end [2025-03-25 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:33:27] Production.INFO: ==28112== Releasing lock... [2025-03-25 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:33:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:34:05 [end_date_ymd] => 2025-03-25 15:34:05 [RateCDR] => 1 ) [2025-03-25 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:34:05' and `end` < '2025-03-25 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:34:19] Production.INFO: count ==5655 [2025-03-25 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:34:05 - End Time 2025-03-25 15:34:05 [2025-03-25 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760441', 'tblTempUsageDetail_20' ) start [2025-03-25 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760441', 'tblTempUsageDetail_20' ) end [2025-03-25 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760441', 'tblTempVendorCDR_20' ) start [2025-03-25 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760441', 'tblTempVendorCDR_20' ) end [2025-03-25 15:34:21] Production.INFO: ProcessCDR(1,14760441,1,1,2) [2025-03-25 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760441', 'tblTempUsageDetail_20' ) start [2025-03-25 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760441', 'tblTempUsageDetail_20' ) end [2025-03-25 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:34:26] Production.INFO: ==28189== Releasing lock... [2025-03-25 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:34:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:35:05 [end_date_ymd] => 2025-03-25 15:35:05 [RateCDR] => 1 ) [2025-03-25 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:35:05' and `end` < '2025-03-25 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:35:19] Production.INFO: count ==5642 [2025-03-25 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:35:05 - End Time 2025-03-25 15:35:05 [2025-03-25 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760446', 'tblTempUsageDetail_20' ) start [2025-03-25 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760446', 'tblTempUsageDetail_20' ) end [2025-03-25 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760446', 'tblTempVendorCDR_20' ) start [2025-03-25 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760446', 'tblTempVendorCDR_20' ) end [2025-03-25 15:35:22] Production.INFO: ProcessCDR(1,14760446,1,1,2) [2025-03-25 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760446', 'tblTempUsageDetail_20' ) start [2025-03-25 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760446', 'tblTempUsageDetail_20' ) end [2025-03-25 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:35:27] Production.INFO: ==28272== Releasing lock... [2025-03-25 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:35:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:36:05 [end_date_ymd] => 2025-03-25 15:36:05 [RateCDR] => 1 ) [2025-03-25 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:36:05' and `end` < '2025-03-25 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:36:19] Production.INFO: count ==5641 [2025-03-25 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:36:05 - End Time 2025-03-25 15:36:05 [2025-03-25 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760451', 'tblTempUsageDetail_20' ) start [2025-03-25 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760451', 'tblTempUsageDetail_20' ) end [2025-03-25 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760451', 'tblTempVendorCDR_20' ) start [2025-03-25 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760451', 'tblTempVendorCDR_20' ) end [2025-03-25 15:36:21] Production.INFO: ProcessCDR(1,14760451,1,1,2) [2025-03-25 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760451', 'tblTempUsageDetail_20' ) start [2025-03-25 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760451', 'tblTempUsageDetail_20' ) end [2025-03-25 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:36:26] Production.INFO: ==28345== Releasing lock... [2025-03-25 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:36:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:37:06 [end_date_ymd] => 2025-03-25 15:37:06 [RateCDR] => 1 ) [2025-03-25 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:37:06' and `end` < '2025-03-25 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:37:20] Production.INFO: count ==5647 [2025-03-25 15:37:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:37:06 - End Time 2025-03-25 15:37:06 [2025-03-25 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760456', 'tblTempUsageDetail_20' ) start [2025-03-25 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760456', 'tblTempUsageDetail_20' ) end [2025-03-25 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760456', 'tblTempVendorCDR_20' ) start [2025-03-25 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760456', 'tblTempVendorCDR_20' ) end [2025-03-25 15:37:22] Production.INFO: ProcessCDR(1,14760456,1,1,2) [2025-03-25 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760456', 'tblTempUsageDetail_20' ) start [2025-03-25 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760456', 'tblTempUsageDetail_20' ) end [2025-03-25 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:37:28] Production.INFO: ==28417== Releasing lock... [2025-03-25 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:37:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:38:05 [end_date_ymd] => 2025-03-25 15:38:05 [RateCDR] => 1 ) [2025-03-25 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:38:05' and `end` < '2025-03-25 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:38:18] Production.INFO: count ==5650 [2025-03-25 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:38:05 - End Time 2025-03-25 15:38:05 [2025-03-25 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760461', 'tblTempUsageDetail_20' ) start [2025-03-25 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760461', 'tblTempUsageDetail_20' ) end [2025-03-25 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760461', 'tblTempVendorCDR_20' ) start [2025-03-25 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760461', 'tblTempVendorCDR_20' ) end [2025-03-25 15:38:21] Production.INFO: ProcessCDR(1,14760461,1,1,2) [2025-03-25 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760461', 'tblTempUsageDetail_20' ) start [2025-03-25 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760461', 'tblTempUsageDetail_20' ) end [2025-03-25 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:38:26] Production.INFO: ==28490== Releasing lock... [2025-03-25 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:38:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:39:05 [end_date_ymd] => 2025-03-25 15:39:05 [RateCDR] => 1 ) [2025-03-25 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:39:05' and `end` < '2025-03-25 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:39:19] Production.INFO: count ==5654 [2025-03-25 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:39:05 - End Time 2025-03-25 15:39:05 [2025-03-25 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760466', 'tblTempUsageDetail_20' ) start [2025-03-25 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760466', 'tblTempUsageDetail_20' ) end [2025-03-25 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760466', 'tblTempVendorCDR_20' ) start [2025-03-25 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760466', 'tblTempVendorCDR_20' ) end [2025-03-25 15:39:21] Production.INFO: ProcessCDR(1,14760466,1,1,2) [2025-03-25 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760466', 'tblTempUsageDetail_20' ) start [2025-03-25 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760466', 'tblTempUsageDetail_20' ) end [2025-03-25 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:39:26] Production.INFO: ==28560== Releasing lock... [2025-03-25 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:39:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:40:06 [end_date_ymd] => 2025-03-25 15:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 12:40:06' and `end` < '2025-03-25 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-03-25 15:40:20] Production.INFO: count ==5626 [2025-03-25 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:40:06 - End Time 2025-03-25 15:40:06 [2025-03-25 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760472', 'tblTempUsageDetail_20' ) start [2025-03-25 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760472', 'tblTempUsageDetail_20' ) end [2025-03-25 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760472', 'tblTempVendorCDR_20' ) start [2025-03-25 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760472', 'tblTempVendorCDR_20' ) end [2025-03-25 15:40:22] Production.INFO: ProcessCDR(1,14760472,1,1,2) [2025-03-25 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760472', 'tblTempUsageDetail_20' ) start [2025-03-25 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760472', 'tblTempUsageDetail_20' ) end [2025-03-25 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:40:27] Production.INFO: ==28640== Releasing lock... [2025-03-25 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:40:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:41:06 [end_date_ymd] => 2025-03-25 15:41:06 [RateCDR] => 1 ) [2025-03-25 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:41:06' and `end` < '2025-03-25 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:41:19] Production.INFO: count ==5626 [2025-03-25 15:41:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:41:06 - End Time 2025-03-25 15:41:06 [2025-03-25 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760477', 'tblTempUsageDetail_20' ) start [2025-03-25 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760477', 'tblTempUsageDetail_20' ) end [2025-03-25 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760477', 'tblTempVendorCDR_20' ) start [2025-03-25 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760477', 'tblTempVendorCDR_20' ) end [2025-03-25 15:41:22] Production.INFO: ProcessCDR(1,14760477,1,1,2) [2025-03-25 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760477', 'tblTempUsageDetail_20' ) start [2025-03-25 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760477', 'tblTempUsageDetail_20' ) end [2025-03-25 15:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:41:25] Production.INFO: ==28717== Releasing lock... [2025-03-25 15:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:41:25] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:42:06 [end_date_ymd] => 2025-03-25 15:42:06 [RateCDR] => 1 ) [2025-03-25 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:42:06' and `end` < '2025-03-25 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:42:19] Production.INFO: count ==5586 [2025-03-25 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:42:06 - End Time 2025-03-25 15:42:06 [2025-03-25 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760482', 'tblTempUsageDetail_20' ) start [2025-03-25 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760482', 'tblTempUsageDetail_20' ) end [2025-03-25 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760482', 'tblTempVendorCDR_20' ) start [2025-03-25 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760482', 'tblTempVendorCDR_20' ) end [2025-03-25 15:42:22] Production.INFO: ProcessCDR(1,14760482,1,1,2) [2025-03-25 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760482', 'tblTempUsageDetail_20' ) start [2025-03-25 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760482', 'tblTempUsageDetail_20' ) end [2025-03-25 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:42:27] Production.INFO: ==28797== Releasing lock... [2025-03-25 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:42:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:43:05 [end_date_ymd] => 2025-03-25 15:43:05 [RateCDR] => 1 ) [2025-03-25 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:43:05' and `end` < '2025-03-25 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:43:19] Production.INFO: count ==5590 [2025-03-25 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:43:05 - End Time 2025-03-25 15:43:05 [2025-03-25 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760487', 'tblTempUsageDetail_20' ) start [2025-03-25 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760487', 'tblTempUsageDetail_20' ) end [2025-03-25 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760487', 'tblTempVendorCDR_20' ) start [2025-03-25 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760487', 'tblTempVendorCDR_20' ) end [2025-03-25 15:43:21] Production.INFO: ProcessCDR(1,14760487,1,1,2) [2025-03-25 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760487', 'tblTempUsageDetail_20' ) start [2025-03-25 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760487', 'tblTempUsageDetail_20' ) end [2025-03-25 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:43:26] Production.INFO: ==28880== Releasing lock... [2025-03-25 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:43:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:44:06 [end_date_ymd] => 2025-03-25 15:44:06 [RateCDR] => 1 ) [2025-03-25 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:44:06' and `end` < '2025-03-25 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:44:20] Production.INFO: count ==5582 [2025-03-25 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:44:06 - End Time 2025-03-25 15:44:06 [2025-03-25 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760492', 'tblTempUsageDetail_20' ) start [2025-03-25 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760492', 'tblTempUsageDetail_20' ) end [2025-03-25 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760492', 'tblTempVendorCDR_20' ) start [2025-03-25 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760492', 'tblTempVendorCDR_20' ) end [2025-03-25 15:44:23] Production.INFO: ProcessCDR(1,14760492,1,1,2) [2025-03-25 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760492', 'tblTempUsageDetail_20' ) start [2025-03-25 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760492', 'tblTempUsageDetail_20' ) end [2025-03-25 15:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:44:28] Production.INFO: ==28991== Releasing lock... [2025-03-25 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:44:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:45:05 [end_date_ymd] => 2025-03-25 15:45:05 [RateCDR] => 1 ) [2025-03-25 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:45:05' and `end` < '2025-03-25 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:45:19] Production.INFO: count ==5589 [2025-03-25 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:45:05 - End Time 2025-03-25 15:45:05 [2025-03-25 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760497', 'tblTempUsageDetail_20' ) start [2025-03-25 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760497', 'tblTempUsageDetail_20' ) end [2025-03-25 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760497', 'tblTempVendorCDR_20' ) start [2025-03-25 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760497', 'tblTempVendorCDR_20' ) end [2025-03-25 15:45:21] Production.INFO: ProcessCDR(1,14760497,1,1,2) [2025-03-25 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760497', 'tblTempUsageDetail_20' ) start [2025-03-25 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760497', 'tblTempUsageDetail_20' ) end [2025-03-25 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:45:26] Production.INFO: ==29069== Releasing lock... [2025-03-25 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:45:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:46:06 [end_date_ymd] => 2025-03-25 15:46:06 [RateCDR] => 1 ) [2025-03-25 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:46:06' and `end` < '2025-03-25 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:46:20] Production.INFO: count ==5589 [2025-03-25 15:46:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:46:06 - End Time 2025-03-25 15:46:06 [2025-03-25 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760502', 'tblTempUsageDetail_20' ) start [2025-03-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760502', 'tblTempUsageDetail_20' ) end [2025-03-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760502', 'tblTempVendorCDR_20' ) start [2025-03-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760502', 'tblTempVendorCDR_20' ) end [2025-03-25 15:46:22] Production.INFO: ProcessCDR(1,14760502,1,1,2) [2025-03-25 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760502', 'tblTempUsageDetail_20' ) start [2025-03-25 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760502', 'tblTempUsageDetail_20' ) end [2025-03-25 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:46:28] Production.INFO: ==29152== Releasing lock... [2025-03-25 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:46:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:47:05 [end_date_ymd] => 2025-03-25 15:47:05 [RateCDR] => 1 ) [2025-03-25 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:47:05' and `end` < '2025-03-25 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:47:19] Production.INFO: count ==5606 [2025-03-25 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:47:05 - End Time 2025-03-25 15:47:05 [2025-03-25 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760507', 'tblTempUsageDetail_20' ) start [2025-03-25 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760507', 'tblTempUsageDetail_20' ) end [2025-03-25 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760507', 'tblTempVendorCDR_20' ) start [2025-03-25 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760507', 'tblTempVendorCDR_20' ) end [2025-03-25 15:47:22] Production.INFO: ProcessCDR(1,14760507,1,1,2) [2025-03-25 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760507', 'tblTempUsageDetail_20' ) start [2025-03-25 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760507', 'tblTempUsageDetail_20' ) end [2025-03-25 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:47:27] Production.INFO: ==29231== Releasing lock... [2025-03-25 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:47:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:48:05 [end_date_ymd] => 2025-03-25 15:48:05 [RateCDR] => 1 ) [2025-03-25 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:48:05' and `end` < '2025-03-25 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:48:19] Production.INFO: count ==5584 [2025-03-25 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:48:05 - End Time 2025-03-25 15:48:05 [2025-03-25 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760512', 'tblTempUsageDetail_20' ) start [2025-03-25 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760512', 'tblTempUsageDetail_20' ) end [2025-03-25 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760512', 'tblTempVendorCDR_20' ) start [2025-03-25 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760512', 'tblTempVendorCDR_20' ) end [2025-03-25 15:48:21] Production.INFO: ProcessCDR(1,14760512,1,1,2) [2025-03-25 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760512', 'tblTempUsageDetail_20' ) start [2025-03-25 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760512', 'tblTempUsageDetail_20' ) end [2025-03-25 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:48:27] Production.INFO: ==29315== Releasing lock... [2025-03-25 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:48:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:49:05 [end_date_ymd] => 2025-03-25 15:49:05 [RateCDR] => 1 ) [2025-03-25 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:49:05' and `end` < '2025-03-25 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:49:19] Production.INFO: count ==5587 [2025-03-25 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:49:05 - End Time 2025-03-25 15:49:05 [2025-03-25 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760517', 'tblTempUsageDetail_20' ) start [2025-03-25 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760517', 'tblTempUsageDetail_20' ) end [2025-03-25 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760517', 'tblTempVendorCDR_20' ) start [2025-03-25 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760517', 'tblTempVendorCDR_20' ) end [2025-03-25 15:49:21] Production.INFO: ProcessCDR(1,14760517,1,1,2) [2025-03-25 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760517', 'tblTempUsageDetail_20' ) start [2025-03-25 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760517', 'tblTempUsageDetail_20' ) end [2025-03-25 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:49:27] Production.INFO: ==29393== Releasing lock... [2025-03-25 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:49:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:50:07 [end_date_ymd] => 2025-03-25 15:50:07 [RateCDR] => 1 ) [2025-03-25 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:50:07' and `end` < '2025-03-25 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:50:20] Production.INFO: count ==5599 [2025-03-25 15:50:23] Production.ERROR: pbx CDR StartTime 2025-03-25 12:50:07 - End Time 2025-03-25 15:50:07 [2025-03-25 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760523', 'tblTempUsageDetail_20' ) start [2025-03-25 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760523', 'tblTempUsageDetail_20' ) end [2025-03-25 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760523', 'tblTempVendorCDR_20' ) start [2025-03-25 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760523', 'tblTempVendorCDR_20' ) end [2025-03-25 15:50:23] Production.INFO: ProcessCDR(1,14760523,1,1,2) [2025-03-25 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760523', 'tblTempUsageDetail_20' ) start [2025-03-25 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760523', 'tblTempUsageDetail_20' ) end [2025-03-25 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:50:28] Production.INFO: ==29480== Releasing lock... [2025-03-25 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:50:28] Production.INFO: 70 MB #Memory Used# [2025-03-25 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:51:05 [end_date_ymd] => 2025-03-25 15:51:05 [RateCDR] => 1 ) [2025-03-25 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:51:05' and `end` < '2025-03-25 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:51:19] Production.INFO: count ==5643 [2025-03-25 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:51:05 - End Time 2025-03-25 15:51:05 [2025-03-25 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760528', 'tblTempUsageDetail_20' ) start [2025-03-25 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760528', 'tblTempUsageDetail_20' ) end [2025-03-25 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760528', 'tblTempVendorCDR_20' ) start [2025-03-25 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760528', 'tblTempVendorCDR_20' ) end [2025-03-25 15:51:22] Production.INFO: ProcessCDR(1,14760528,1,1,2) [2025-03-25 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760528', 'tblTempUsageDetail_20' ) start [2025-03-25 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760528', 'tblTempUsageDetail_20' ) end [2025-03-25 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:51:27] Production.INFO: ==29567== Releasing lock... [2025-03-25 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:51:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:52:06 [end_date_ymd] => 2025-03-25 15:52:06 [RateCDR] => 1 ) [2025-03-25 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:52:06' and `end` < '2025-03-25 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:52:19] Production.INFO: count ==5686 [2025-03-25 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:52:06 - End Time 2025-03-25 15:52:06 [2025-03-25 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760533', 'tblTempUsageDetail_20' ) start [2025-03-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760533', 'tblTempUsageDetail_20' ) end [2025-03-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760533', 'tblTempVendorCDR_20' ) start [2025-03-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760533', 'tblTempVendorCDR_20' ) end [2025-03-25 15:52:22] Production.INFO: ProcessCDR(1,14760533,1,1,2) [2025-03-25 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760533', 'tblTempUsageDetail_20' ) start [2025-03-25 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760533', 'tblTempUsageDetail_20' ) end [2025-03-25 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:52:27] Production.INFO: ==29662== Releasing lock... [2025-03-25 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:52:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:53:05 [end_date_ymd] => 2025-03-25 15:53:05 [RateCDR] => 1 ) [2025-03-25 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:53:05' and `end` < '2025-03-25 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:53:19] Production.INFO: count ==5686 [2025-03-25 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:53:05 - End Time 2025-03-25 15:53:05 [2025-03-25 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760538', 'tblTempUsageDetail_20' ) start [2025-03-25 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760538', 'tblTempUsageDetail_20' ) end [2025-03-25 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760538', 'tblTempVendorCDR_20' ) start [2025-03-25 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760538', 'tblTempVendorCDR_20' ) end [2025-03-25 15:53:21] Production.INFO: ProcessCDR(1,14760538,1,1,2) [2025-03-25 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760538', 'tblTempUsageDetail_20' ) start [2025-03-25 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760538', 'tblTempUsageDetail_20' ) end [2025-03-25 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:53:26] Production.INFO: ==29753== Releasing lock... [2025-03-25 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:53:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:54:05 [end_date_ymd] => 2025-03-25 15:54:05 [RateCDR] => 1 ) [2025-03-25 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:54:05' and `end` < '2025-03-25 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:54:19] Production.INFO: count ==5702 [2025-03-25 15:54:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:54:05 - End Time 2025-03-25 15:54:05 [2025-03-25 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760543', 'tblTempUsageDetail_20' ) start [2025-03-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760543', 'tblTempUsageDetail_20' ) end [2025-03-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760543', 'tblTempVendorCDR_20' ) start [2025-03-25 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760543', 'tblTempVendorCDR_20' ) end [2025-03-25 15:54:21] Production.INFO: ProcessCDR(1,14760543,1,1,2) [2025-03-25 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760543', 'tblTempUsageDetail_20' ) start [2025-03-25 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760543', 'tblTempUsageDetail_20' ) end [2025-03-25 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:54:26] Production.INFO: ==29841== Releasing lock... [2025-03-25 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:54:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 15:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:55:04 [end_date_ymd] => 2025-03-25 15:55:04 [RateCDR] => 1 ) [2025-03-25 15:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:55:04' and `end` < '2025-03-25 15:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:55:18] Production.INFO: count ==5706 [2025-03-25 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:55:04 - End Time 2025-03-25 15:55:04 [2025-03-25 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760548', 'tblTempUsageDetail_20' ) start [2025-03-25 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760548', 'tblTempUsageDetail_20' ) end [2025-03-25 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760548', 'tblTempVendorCDR_20' ) start [2025-03-25 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760548', 'tblTempVendorCDR_20' ) end [2025-03-25 15:55:21] Production.INFO: ProcessCDR(1,14760548,1,1,2) [2025-03-25 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760548', 'tblTempUsageDetail_20' ) start [2025-03-25 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760548', 'tblTempUsageDetail_20' ) end [2025-03-25 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:55:26] Production.INFO: ==29931== Releasing lock... [2025-03-25 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:55:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:56:05 [end_date_ymd] => 2025-03-25 15:56:05 [RateCDR] => 1 ) [2025-03-25 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:56:05' and `end` < '2025-03-25 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:56:19] Production.INFO: count ==5709 [2025-03-25 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:56:05 - End Time 2025-03-25 15:56:05 [2025-03-25 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760553', 'tblTempUsageDetail_20' ) start [2025-03-25 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760553', 'tblTempUsageDetail_20' ) end [2025-03-25 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760553', 'tblTempVendorCDR_20' ) start [2025-03-25 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760553', 'tblTempVendorCDR_20' ) end [2025-03-25 15:56:22] Production.INFO: ProcessCDR(1,14760553,1,1,2) [2025-03-25 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760553', 'tblTempUsageDetail_20' ) start [2025-03-25 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760553', 'tblTempUsageDetail_20' ) end [2025-03-25 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:56:26] Production.INFO: ==30023== Releasing lock... [2025-03-25 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:56:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:57:06 [end_date_ymd] => 2025-03-25 15:57:06 [RateCDR] => 1 ) [2025-03-25 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:57:06' and `end` < '2025-03-25 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:57:20] Production.INFO: count ==5712 [2025-03-25 15:57:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:57:06 - End Time 2025-03-25 15:57:06 [2025-03-25 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760558', 'tblTempUsageDetail_20' ) start [2025-03-25 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760558', 'tblTempUsageDetail_20' ) end [2025-03-25 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760558', 'tblTempVendorCDR_20' ) start [2025-03-25 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760558', 'tblTempVendorCDR_20' ) end [2025-03-25 15:57:22] Production.INFO: ProcessCDR(1,14760558,1,1,2) [2025-03-25 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760558', 'tblTempUsageDetail_20' ) start [2025-03-25 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760558', 'tblTempUsageDetail_20' ) end [2025-03-25 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:57:28] Production.INFO: ==30112== Releasing lock... [2025-03-25 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:57:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:58:05 [end_date_ymd] => 2025-03-25 15:58:05 [RateCDR] => 1 ) [2025-03-25 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:58:05' and `end` < '2025-03-25 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:58:19] Production.INFO: count ==5713 [2025-03-25 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-25 12:58:05 - End Time 2025-03-25 15:58:05 [2025-03-25 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760563', 'tblTempUsageDetail_20' ) start [2025-03-25 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760563', 'tblTempUsageDetail_20' ) end [2025-03-25 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760563', 'tblTempVendorCDR_20' ) start [2025-03-25 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760563', 'tblTempVendorCDR_20' ) end [2025-03-25 15:58:22] Production.INFO: ProcessCDR(1,14760563,1,1,2) [2025-03-25 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760563', 'tblTempUsageDetail_20' ) start [2025-03-25 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760563', 'tblTempUsageDetail_20' ) end [2025-03-25 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:58:27] Production.INFO: ==30201== Releasing lock... [2025-03-25 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:58:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 12:59:06 [end_date_ymd] => 2025-03-25 15:59:06 [RateCDR] => 1 ) [2025-03-25 15:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 12:59:06' and `end` < '2025-03-25 15:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 15:59:20] Production.INFO: count ==5713 [2025-03-25 15:59:22] Production.ERROR: pbx CDR StartTime 2025-03-25 12:59:06 - End Time 2025-03-25 15:59:06 [2025-03-25 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760568', 'tblTempUsageDetail_20' ) start [2025-03-25 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760568', 'tblTempUsageDetail_20' ) end [2025-03-25 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760568', 'tblTempVendorCDR_20' ) start [2025-03-25 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760568', 'tblTempVendorCDR_20' ) end [2025-03-25 15:59:22] Production.INFO: ProcessCDR(1,14760568,1,1,2) [2025-03-25 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760568', 'tblTempUsageDetail_20' ) start [2025-03-25 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760568', 'tblTempUsageDetail_20' ) end [2025-03-25 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 15:59:28] Production.INFO: ==30343== Releasing lock... [2025-03-25 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 15:59:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:00:06 [end_date_ymd] => 2025-03-25 16:00:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:00:06' and `end` < '2025-03-25 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-03-25 16:00:20] Production.INFO: count ==5699 [2025-03-25 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:00:06 - End Time 2025-03-25 16:00:06 [2025-03-25 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760574', 'tblTempUsageDetail_20' ) start [2025-03-25 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760574', 'tblTempUsageDetail_20' ) end [2025-03-25 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760574', 'tblTempVendorCDR_20' ) start [2025-03-25 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760574', 'tblTempVendorCDR_20' ) end [2025-03-25 16:00:23] Production.INFO: ProcessCDR(1,14760574,1,1,2) [2025-03-25 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760574', 'tblTempUsageDetail_20' ) start [2025-03-25 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760574', 'tblTempUsageDetail_20' ) end [2025-03-25 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:00:28] Production.INFO: ==30436== Releasing lock... [2025-03-25 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:00:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:01:06 [end_date_ymd] => 2025-03-25 16:01:06 [RateCDR] => 1 ) [2025-03-25 16:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:01:06' and `end` < '2025-03-25 16:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:01:20] Production.INFO: count ==5702 [2025-03-25 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:01:06 - End Time 2025-03-25 16:01:06 [2025-03-25 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760579', 'tblTempUsageDetail_20' ) start [2025-03-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760579', 'tblTempUsageDetail_20' ) end [2025-03-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760579', 'tblTempVendorCDR_20' ) start [2025-03-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760579', 'tblTempVendorCDR_20' ) end [2025-03-25 16:01:23] Production.INFO: ProcessCDR(1,14760579,1,1,2) [2025-03-25 16:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760579', 'tblTempUsageDetail_20' ) start [2025-03-25 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760579', 'tblTempUsageDetail_20' ) end [2025-03-25 16:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:01:28] Production.INFO: ==30537== Releasing lock... [2025-03-25 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:01:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:02:05 [end_date_ymd] => 2025-03-25 16:02:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:02:05' and `end` < '2025-03-25 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-03-25 16:02:19] Production.INFO: count ==5701 [2025-03-25 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:02:05 - End Time 2025-03-25 16:02:05 [2025-03-25 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760584', 'tblTempUsageDetail_20' ) start [2025-03-25 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760584', 'tblTempUsageDetail_20' ) end [2025-03-25 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760584', 'tblTempVendorCDR_20' ) start [2025-03-25 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760584', 'tblTempVendorCDR_20' ) end [2025-03-25 16:02:22] Production.INFO: ProcessCDR(1,14760584,1,1,2) [2025-03-25 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760584', 'tblTempUsageDetail_20' ) start [2025-03-25 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760584', 'tblTempUsageDetail_20' ) end [2025-03-25 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:02:28] Production.INFO: ==30628== Releasing lock... [2025-03-25 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:02:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:03:05 [end_date_ymd] => 2025-03-25 16:03:05 [RateCDR] => 1 ) [2025-03-25 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:03:05' and `end` < '2025-03-25 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:03:19] Production.INFO: count ==5705 [2025-03-25 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:03:05 - End Time 2025-03-25 16:03:05 [2025-03-25 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760589', 'tblTempUsageDetail_20' ) start [2025-03-25 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760589', 'tblTempUsageDetail_20' ) end [2025-03-25 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760589', 'tblTempVendorCDR_20' ) start [2025-03-25 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760589', 'tblTempVendorCDR_20' ) end [2025-03-25 16:03:22] Production.INFO: ProcessCDR(1,14760589,1,1,2) [2025-03-25 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760589', 'tblTempUsageDetail_20' ) start [2025-03-25 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760589', 'tblTempUsageDetail_20' ) end [2025-03-25 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:03:28] Production.INFO: ==30724== Releasing lock... [2025-03-25 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:03:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:04:05 [end_date_ymd] => 2025-03-25 16:04:05 [RateCDR] => 1 ) [2025-03-25 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:04:05' and `end` < '2025-03-25 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:04:19] Production.INFO: count ==5697 [2025-03-25 16:04:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:04:05 - End Time 2025-03-25 16:04:05 [2025-03-25 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760594', 'tblTempUsageDetail_20' ) start [2025-03-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760594', 'tblTempUsageDetail_20' ) end [2025-03-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760594', 'tblTempVendorCDR_20' ) start [2025-03-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760594', 'tblTempVendorCDR_20' ) end [2025-03-25 16:04:22] Production.INFO: ProcessCDR(1,14760594,1,1,2) [2025-03-25 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760594', 'tblTempUsageDetail_20' ) start [2025-03-25 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760594', 'tblTempUsageDetail_20' ) end [2025-03-25 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:04:27] Production.INFO: ==30811== Releasing lock... [2025-03-25 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:04:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-25 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:05:05 [end_date_ymd] => 2025-03-25 16:05:05 [RateCDR] => 1 ) [2025-03-25 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:05:05' and `end` < '2025-03-25 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:05:19] Production.INFO: count ==5668 [2025-03-25 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:05:05 - End Time 2025-03-25 16:05:05 [2025-03-25 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760599', 'tblTempUsageDetail_20' ) start [2025-03-25 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760599', 'tblTempUsageDetail_20' ) end [2025-03-25 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760599', 'tblTempVendorCDR_20' ) start [2025-03-25 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760599', 'tblTempVendorCDR_20' ) end [2025-03-25 16:05:22] Production.INFO: ProcessCDR(1,14760599,1,1,2) [2025-03-25 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760599', 'tblTempUsageDetail_20' ) start [2025-03-25 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760599', 'tblTempUsageDetail_20' ) end [2025-03-25 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:05:27] Production.INFO: ==30891== Releasing lock... [2025-03-25 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:05:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-25 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:06:05 [end_date_ymd] => 2025-03-25 16:06:05 [RateCDR] => 1 ) [2025-03-25 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:06:05' and `end` < '2025-03-25 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:06:19] Production.INFO: count ==5631 [2025-03-25 16:06:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:06:05 - End Time 2025-03-25 16:06:05 [2025-03-25 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760604', 'tblTempUsageDetail_20' ) start [2025-03-25 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760604', 'tblTempUsageDetail_20' ) end [2025-03-25 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760604', 'tblTempVendorCDR_20' ) start [2025-03-25 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760604', 'tblTempVendorCDR_20' ) end [2025-03-25 16:06:21] Production.INFO: ProcessCDR(1,14760604,1,1,2) [2025-03-25 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760604', 'tblTempUsageDetail_20' ) start [2025-03-25 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760604', 'tblTempUsageDetail_20' ) end [2025-03-25 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:06:26] Production.INFO: ==30982== Releasing lock... [2025-03-25 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:06:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-25 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:07:06 [end_date_ymd] => 2025-03-25 16:07:06 [RateCDR] => 1 ) [2025-03-25 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:07:06' and `end` < '2025-03-25 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:07:20] Production.INFO: count ==5611 [2025-03-25 16:07:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:07:06 - End Time 2025-03-25 16:07:06 [2025-03-25 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760609', 'tblTempUsageDetail_20' ) start [2025-03-25 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760609', 'tblTempUsageDetail_20' ) end [2025-03-25 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760609', 'tblTempVendorCDR_20' ) start [2025-03-25 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760609', 'tblTempVendorCDR_20' ) end [2025-03-25 16:07:22] Production.INFO: ProcessCDR(1,14760609,1,1,2) [2025-03-25 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760609', 'tblTempUsageDetail_20' ) start [2025-03-25 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760609', 'tblTempUsageDetail_20' ) end [2025-03-25 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:07:27] Production.INFO: ==31066== Releasing lock... [2025-03-25 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:07:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:08:05 [end_date_ymd] => 2025-03-25 16:08:05 [RateCDR] => 1 ) [2025-03-25 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:08:05' and `end` < '2025-03-25 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:08:19] Production.INFO: count ==5587 [2025-03-25 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:08:05 - End Time 2025-03-25 16:08:05 [2025-03-25 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760614', 'tblTempUsageDetail_20' ) start [2025-03-25 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760614', 'tblTempUsageDetail_20' ) end [2025-03-25 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760614', 'tblTempVendorCDR_20' ) start [2025-03-25 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760614', 'tblTempVendorCDR_20' ) end [2025-03-25 16:08:21] Production.INFO: ProcessCDR(1,14760614,1,1,2) [2025-03-25 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760614', 'tblTempUsageDetail_20' ) start [2025-03-25 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760614', 'tblTempUsageDetail_20' ) end [2025-03-25 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:08:26] Production.INFO: ==31159== Releasing lock... [2025-03-25 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:08:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:09:06 [end_date_ymd] => 2025-03-25 16:09:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:09:06' and `end` < '2025-03-25 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-03-25 16:09:20] Production.INFO: count ==5569 [2025-03-25 16:09:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:09:06 - End Time 2025-03-25 16:09:06 [2025-03-25 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760619', 'tblTempUsageDetail_20' ) start [2025-03-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760619', 'tblTempUsageDetail_20' ) end [2025-03-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760619', 'tblTempVendorCDR_20' ) start [2025-03-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760619', 'tblTempVendorCDR_20' ) end [2025-03-25 16:09:22] Production.INFO: ProcessCDR(1,14760619,1,1,2) [2025-03-25 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760619', 'tblTempUsageDetail_20' ) start [2025-03-25 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760619', 'tblTempUsageDetail_20' ) end [2025-03-25 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:09:27] Production.INFO: ==31254== Releasing lock... [2025-03-25 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:09:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:10:06 [end_date_ymd] => 2025-03-25 16:10:06 [RateCDR] => 1 ) [2025-03-25 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:10:06' and `end` < '2025-03-25 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:10:20] Production.INFO: count ==5575 [2025-03-25 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:10:06 - End Time 2025-03-25 16:10:06 [2025-03-25 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760625', 'tblTempUsageDetail_20' ) start [2025-03-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760625', 'tblTempUsageDetail_20' ) end [2025-03-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760625', 'tblTempVendorCDR_20' ) start [2025-03-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760625', 'tblTempVendorCDR_20' ) end [2025-03-25 16:10:23] Production.INFO: ProcessCDR(1,14760625,1,1,2) [2025-03-25 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760625', 'tblTempUsageDetail_20' ) start [2025-03-25 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760625', 'tblTempUsageDetail_20' ) end [2025-03-25 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:10:28] Production.INFO: ==31360== Releasing lock... [2025-03-25 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:10:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:11:06 [end_date_ymd] => 2025-03-25 16:11:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:11:06' and `end` < '2025-03-25 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-03-25 16:11:19] Production.INFO: count ==5595 [2025-03-25 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:11:06 - End Time 2025-03-25 16:11:06 [2025-03-25 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760630', 'tblTempUsageDetail_20' ) start [2025-03-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760630', 'tblTempUsageDetail_20' ) end [2025-03-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760630', 'tblTempVendorCDR_20' ) start [2025-03-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760630', 'tblTempVendorCDR_20' ) end [2025-03-25 16:11:22] Production.INFO: ProcessCDR(1,14760630,1,1,2) [2025-03-25 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760630', 'tblTempUsageDetail_20' ) start [2025-03-25 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760630', 'tblTempUsageDetail_20' ) end [2025-03-25 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:11:27] Production.INFO: ==31459== Releasing lock... [2025-03-25 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:11:27] Production.INFO: 70 MB #Memory Used# [2025-03-25 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:12:05 [end_date_ymd] => 2025-03-25 16:12:05 [RateCDR] => 1 ) [2025-03-25 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:12:05' and `end` < '2025-03-25 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:12:18] Production.INFO: count ==5594 [2025-03-25 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:12:05 - End Time 2025-03-25 16:12:05 [2025-03-25 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760635', 'tblTempUsageDetail_20' ) start [2025-03-25 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760635', 'tblTempUsageDetail_20' ) end [2025-03-25 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760635', 'tblTempVendorCDR_20' ) start [2025-03-25 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760635', 'tblTempVendorCDR_20' ) end [2025-03-25 16:12:21] Production.INFO: ProcessCDR(1,14760635,1,1,2) [2025-03-25 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760635', 'tblTempUsageDetail_20' ) start [2025-03-25 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760635', 'tblTempUsageDetail_20' ) end [2025-03-25 16:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:12:25] Production.INFO: ==31548== Releasing lock... [2025-03-25 16:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:12:25] Production.INFO: 70 MB #Memory Used# [2025-03-25 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:13:05 [end_date_ymd] => 2025-03-25 16:13:05 [RateCDR] => 1 ) [2025-03-25 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:13:05' and `end` < '2025-03-25 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:13:19] Production.INFO: count ==5573 [2025-03-25 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:13:05 - End Time 2025-03-25 16:13:05 [2025-03-25 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760640', 'tblTempUsageDetail_20' ) start [2025-03-25 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760640', 'tblTempUsageDetail_20' ) end [2025-03-25 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760640', 'tblTempVendorCDR_20' ) start [2025-03-25 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760640', 'tblTempVendorCDR_20' ) end [2025-03-25 16:13:21] Production.INFO: ProcessCDR(1,14760640,1,1,2) [2025-03-25 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760640', 'tblTempUsageDetail_20' ) start [2025-03-25 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760640', 'tblTempUsageDetail_20' ) end [2025-03-25 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:13:27] Production.INFO: ==31638== Releasing lock... [2025-03-25 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:13:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:14:05 [end_date_ymd] => 2025-03-25 16:14:05 [RateCDR] => 1 ) [2025-03-25 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:14:05' and `end` < '2025-03-25 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:14:19] Production.INFO: count ==5574 [2025-03-25 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:14:05 - End Time 2025-03-25 16:14:05 [2025-03-25 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760645', 'tblTempUsageDetail_20' ) start [2025-03-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760645', 'tblTempUsageDetail_20' ) end [2025-03-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760645', 'tblTempVendorCDR_20' ) start [2025-03-25 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760645', 'tblTempVendorCDR_20' ) end [2025-03-25 16:14:21] Production.INFO: ProcessCDR(1,14760645,1,1,2) [2025-03-25 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760645', 'tblTempUsageDetail_20' ) start [2025-03-25 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760645', 'tblTempUsageDetail_20' ) end [2025-03-25 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:14:26] Production.INFO: ==31725== Releasing lock... [2025-03-25 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:14:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:15:06 [end_date_ymd] => 2025-03-25 16:15:06 [RateCDR] => 1 ) [2025-03-25 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:15:06' and `end` < '2025-03-25 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:15:19] Production.INFO: count ==5557 [2025-03-25 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:15:06 - End Time 2025-03-25 16:15:06 [2025-03-25 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760650', 'tblTempUsageDetail_20' ) start [2025-03-25 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760650', 'tblTempUsageDetail_20' ) end [2025-03-25 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760650', 'tblTempVendorCDR_20' ) start [2025-03-25 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760650', 'tblTempVendorCDR_20' ) end [2025-03-25 16:15:22] Production.INFO: ProcessCDR(1,14760650,1,1,2) [2025-03-25 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760650', 'tblTempUsageDetail_20' ) start [2025-03-25 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760650', 'tblTempUsageDetail_20' ) end [2025-03-25 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:15:26] Production.INFO: ==31852== Releasing lock... [2025-03-25 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:15:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:16:05 [end_date_ymd] => 2025-03-25 16:16:05 [RateCDR] => 1 ) [2025-03-25 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:16:05' and `end` < '2025-03-25 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:16:18] Production.INFO: count ==5546 [2025-03-25 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:16:05 - End Time 2025-03-25 16:16:05 [2025-03-25 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760655', 'tblTempUsageDetail_20' ) start [2025-03-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760655', 'tblTempUsageDetail_20' ) end [2025-03-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760655', 'tblTempVendorCDR_20' ) start [2025-03-25 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760655', 'tblTempVendorCDR_20' ) end [2025-03-25 16:16:21] Production.INFO: ProcessCDR(1,14760655,1,1,2) [2025-03-25 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760655', 'tblTempUsageDetail_20' ) start [2025-03-25 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760655', 'tblTempUsageDetail_20' ) end [2025-03-25 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:16:26] Production.INFO: ==31943== Releasing lock... [2025-03-25 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:16:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:17:05 [end_date_ymd] => 2025-03-25 16:17:05 [RateCDR] => 1 ) [2025-03-25 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:17:05' and `end` < '2025-03-25 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:17:19] Production.INFO: count ==5532 [2025-03-25 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:17:05 - End Time 2025-03-25 16:17:05 [2025-03-25 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760660', 'tblTempUsageDetail_20' ) start [2025-03-25 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760660', 'tblTempUsageDetail_20' ) end [2025-03-25 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760660', 'tblTempVendorCDR_20' ) start [2025-03-25 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760660', 'tblTempVendorCDR_20' ) end [2025-03-25 16:17:21] Production.INFO: ProcessCDR(1,14760660,1,1,2) [2025-03-25 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760660', 'tblTempUsageDetail_20' ) start [2025-03-25 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760660', 'tblTempUsageDetail_20' ) end [2025-03-25 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:17:26] Production.INFO: ==32034== Releasing lock... [2025-03-25 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:17:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:18:05 [end_date_ymd] => 2025-03-25 16:18:05 [RateCDR] => 1 ) [2025-03-25 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:18:05' and `end` < '2025-03-25 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:18:19] Production.INFO: count ==5540 [2025-03-25 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:18:05 - End Time 2025-03-25 16:18:05 [2025-03-25 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760665', 'tblTempUsageDetail_20' ) start [2025-03-25 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760665', 'tblTempUsageDetail_20' ) end [2025-03-25 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760665', 'tblTempVendorCDR_20' ) start [2025-03-25 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760665', 'tblTempVendorCDR_20' ) end [2025-03-25 16:18:21] Production.INFO: ProcessCDR(1,14760665,1,1,2) [2025-03-25 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760665', 'tblTempUsageDetail_20' ) start [2025-03-25 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760665', 'tblTempUsageDetail_20' ) end [2025-03-25 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:18:27] Production.INFO: ==32116== Releasing lock... [2025-03-25 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:18:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:19:05 [end_date_ymd] => 2025-03-25 16:19:05 [RateCDR] => 1 ) [2025-03-25 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:19:05' and `end` < '2025-03-25 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:19:19] Production.INFO: count ==5556 [2025-03-25 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:19:05 - End Time 2025-03-25 16:19:05 [2025-03-25 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760670', 'tblTempUsageDetail_20' ) start [2025-03-25 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760670', 'tblTempUsageDetail_20' ) end [2025-03-25 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760670', 'tblTempVendorCDR_20' ) start [2025-03-25 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760670', 'tblTempVendorCDR_20' ) end [2025-03-25 16:19:22] Production.INFO: ProcessCDR(1,14760670,1,1,2) [2025-03-25 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760670', 'tblTempUsageDetail_20' ) start [2025-03-25 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760670', 'tblTempUsageDetail_20' ) end [2025-03-25 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:19:27] Production.INFO: ==32210== Releasing lock... [2025-03-25 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:19:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:20:05 [end_date_ymd] => 2025-03-25 16:20:05 [RateCDR] => 1 ) [2025-03-25 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:20:05' and `end` < '2025-03-25 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:20:19] Production.INFO: count ==5561 [2025-03-25 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:20:05 - End Time 2025-03-25 16:20:05 [2025-03-25 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760676', 'tblTempUsageDetail_20' ) start [2025-03-25 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760676', 'tblTempUsageDetail_20' ) end [2025-03-25 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760676', 'tblTempVendorCDR_20' ) start [2025-03-25 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760676', 'tblTempVendorCDR_20' ) end [2025-03-25 16:20:21] Production.INFO: ProcessCDR(1,14760676,1,1,2) [2025-03-25 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760676', 'tblTempUsageDetail_20' ) start [2025-03-25 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760676', 'tblTempUsageDetail_20' ) end [2025-03-25 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:20:26] Production.INFO: ==32291== Releasing lock... [2025-03-25 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:20:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:21:05 [end_date_ymd] => 2025-03-25 16:21:05 [RateCDR] => 1 ) [2025-03-25 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:21:05' and `end` < '2025-03-25 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:21:19] Production.INFO: count ==5582 [2025-03-25 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:21:05 - End Time 2025-03-25 16:21:05 [2025-03-25 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760681', 'tblTempUsageDetail_20' ) start [2025-03-25 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760681', 'tblTempUsageDetail_20' ) end [2025-03-25 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760681', 'tblTempVendorCDR_20' ) start [2025-03-25 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760681', 'tblTempVendorCDR_20' ) end [2025-03-25 16:21:21] Production.INFO: ProcessCDR(1,14760681,1,1,2) [2025-03-25 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760681', 'tblTempUsageDetail_20' ) start [2025-03-25 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760681', 'tblTempUsageDetail_20' ) end [2025-03-25 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:21:27] Production.INFO: ==32376== Releasing lock... [2025-03-25 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:21:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:22:05 [end_date_ymd] => 2025-03-25 16:22:05 [RateCDR] => 1 ) [2025-03-25 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:22:05' and `end` < '2025-03-25 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:22:19] Production.INFO: count ==5569 [2025-03-25 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:22:05 - End Time 2025-03-25 16:22:05 [2025-03-25 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760686', 'tblTempUsageDetail_20' ) start [2025-03-25 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760686', 'tblTempUsageDetail_20' ) end [2025-03-25 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760686', 'tblTempVendorCDR_20' ) start [2025-03-25 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760686', 'tblTempVendorCDR_20' ) end [2025-03-25 16:22:21] Production.INFO: ProcessCDR(1,14760686,1,1,2) [2025-03-25 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760686', 'tblTempUsageDetail_20' ) start [2025-03-25 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760686', 'tblTempUsageDetail_20' ) end [2025-03-25 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:22:26] Production.INFO: ==32466== Releasing lock... [2025-03-25 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:22:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:23:05 [end_date_ymd] => 2025-03-25 16:23:05 [RateCDR] => 1 ) [2025-03-25 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:23:05' and `end` < '2025-03-25 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:23:19] Production.INFO: count ==5535 [2025-03-25 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:23:05 - End Time 2025-03-25 16:23:05 [2025-03-25 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760691', 'tblTempUsageDetail_20' ) start [2025-03-25 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760691', 'tblTempUsageDetail_20' ) end [2025-03-25 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760691', 'tblTempVendorCDR_20' ) start [2025-03-25 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760691', 'tblTempVendorCDR_20' ) end [2025-03-25 16:23:21] Production.INFO: ProcessCDR(1,14760691,1,1,2) [2025-03-25 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760691', 'tblTempUsageDetail_20' ) start [2025-03-25 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760691', 'tblTempUsageDetail_20' ) end [2025-03-25 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:23:26] Production.INFO: ==32554== Releasing lock... [2025-03-25 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:23:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:24:06 [end_date_ymd] => 2025-03-25 16:24:06 [RateCDR] => 1 ) [2025-03-25 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:24:06' and `end` < '2025-03-25 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:24:19] Production.INFO: count ==5512 [2025-03-25 16:24:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:24:06 - End Time 2025-03-25 16:24:06 [2025-03-25 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760696', 'tblTempUsageDetail_20' ) start [2025-03-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760696', 'tblTempUsageDetail_20' ) end [2025-03-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760696', 'tblTempVendorCDR_20' ) start [2025-03-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760696', 'tblTempVendorCDR_20' ) end [2025-03-25 16:24:22] Production.INFO: ProcessCDR(1,14760696,1,1,2) [2025-03-25 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760696', 'tblTempUsageDetail_20' ) start [2025-03-25 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760696', 'tblTempUsageDetail_20' ) end [2025-03-25 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:24:26] Production.INFO: ==32635== Releasing lock... [2025-03-25 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:24:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:25:05 [end_date_ymd] => 2025-03-25 16:25:05 [RateCDR] => 1 ) [2025-03-25 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:25:05' and `end` < '2025-03-25 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:25:19] Production.INFO: count ==5481 [2025-03-25 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:25:05 - End Time 2025-03-25 16:25:05 [2025-03-25 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760701', 'tblTempUsageDetail_20' ) start [2025-03-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760701', 'tblTempUsageDetail_20' ) end [2025-03-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760701', 'tblTempVendorCDR_20' ) start [2025-03-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760701', 'tblTempVendorCDR_20' ) end [2025-03-25 16:25:21] Production.INFO: ProcessCDR(1,14760701,1,1,2) [2025-03-25 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760701', 'tblTempUsageDetail_20' ) start [2025-03-25 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760701', 'tblTempUsageDetail_20' ) end [2025-03-25 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:25:27] Production.INFO: ==32714== Releasing lock... [2025-03-25 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:25:27] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:26:05 [end_date_ymd] => 2025-03-25 16:26:05 [RateCDR] => 1 ) [2025-03-25 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:26:05' and `end` < '2025-03-25 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:26:18] Production.INFO: count ==5463 [2025-03-25 16:26:20] Production.ERROR: pbx CDR StartTime 2025-03-25 13:26:05 - End Time 2025-03-25 16:26:05 [2025-03-25 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760706', 'tblTempUsageDetail_20' ) start [2025-03-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760706', 'tblTempUsageDetail_20' ) end [2025-03-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760706', 'tblTempVendorCDR_20' ) start [2025-03-25 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760706', 'tblTempVendorCDR_20' ) end [2025-03-25 16:26:21] Production.INFO: ProcessCDR(1,14760706,1,1,2) [2025-03-25 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760706', 'tblTempUsageDetail_20' ) start [2025-03-25 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760706', 'tblTempUsageDetail_20' ) end [2025-03-25 16:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:26:24] Production.INFO: ==352== Releasing lock... [2025-03-25 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:26:24] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:27:05 [end_date_ymd] => 2025-03-25 16:27:05 [RateCDR] => 1 ) [2025-03-25 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:27:05' and `end` < '2025-03-25 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:27:19] Production.INFO: count ==5445 [2025-03-25 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:27:05 - End Time 2025-03-25 16:27:05 [2025-03-25 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760711', 'tblTempUsageDetail_20' ) start [2025-03-25 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760711', 'tblTempUsageDetail_20' ) end [2025-03-25 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760711', 'tblTempVendorCDR_20' ) start [2025-03-25 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760711', 'tblTempVendorCDR_20' ) end [2025-03-25 16:27:21] Production.INFO: ProcessCDR(1,14760711,1,1,2) [2025-03-25 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760711', 'tblTempUsageDetail_20' ) start [2025-03-25 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760711', 'tblTempUsageDetail_20' ) end [2025-03-25 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:27:26] Production.INFO: ==430== Releasing lock... [2025-03-25 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:27:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:28:06 [end_date_ymd] => 2025-03-25 16:28:06 [RateCDR] => 1 ) [2025-03-25 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:28:06' and `end` < '2025-03-25 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:28:20] Production.INFO: count ==5473 [2025-03-25 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:28:06 - End Time 2025-03-25 16:28:06 [2025-03-25 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760716', 'tblTempUsageDetail_20' ) start [2025-03-25 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760716', 'tblTempUsageDetail_20' ) end [2025-03-25 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760716', 'tblTempVendorCDR_20' ) start [2025-03-25 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760716', 'tblTempVendorCDR_20' ) end [2025-03-25 16:28:22] Production.INFO: ProcessCDR(1,14760716,1,1,2) [2025-03-25 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760716', 'tblTempUsageDetail_20' ) start [2025-03-25 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760716', 'tblTempUsageDetail_20' ) end [2025-03-25 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:28:27] Production.INFO: ==513== Releasing lock... [2025-03-25 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:28:27] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:29:05 [end_date_ymd] => 2025-03-25 16:29:05 [RateCDR] => 1 ) [2025-03-25 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:29:05' and `end` < '2025-03-25 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:29:19] Production.INFO: count ==5487 [2025-03-25 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:29:05 - End Time 2025-03-25 16:29:05 [2025-03-25 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760720', 'tblTempUsageDetail_20' ) start [2025-03-25 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760720', 'tblTempUsageDetail_20' ) end [2025-03-25 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760720', 'tblTempVendorCDR_20' ) start [2025-03-25 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760720', 'tblTempVendorCDR_20' ) end [2025-03-25 16:29:22] Production.INFO: ProcessCDR(1,14760720,1,1,2) [2025-03-25 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760720', 'tblTempUsageDetail_20' ) start [2025-03-25 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760720', 'tblTempUsageDetail_20' ) end [2025-03-25 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:29:27] Production.INFO: ==597== Releasing lock... [2025-03-25 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:29:27] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:30:06 [end_date_ymd] => 2025-03-25 16:30:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:30:06' and `end` < '2025-03-25 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-03-25 16:30:20] Production.INFO: count ==5506 [2025-03-25 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:30:06 - End Time 2025-03-25 16:30:06 [2025-03-25 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760726', 'tblTempUsageDetail_20' ) start [2025-03-25 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760726', 'tblTempUsageDetail_20' ) end [2025-03-25 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760726', 'tblTempVendorCDR_20' ) start [2025-03-25 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760726', 'tblTempVendorCDR_20' ) end [2025-03-25 16:30:22] Production.INFO: ProcessCDR(1,14760726,1,1,2) [2025-03-25 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760726', 'tblTempUsageDetail_20' ) start [2025-03-25 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760726', 'tblTempUsageDetail_20' ) end [2025-03-25 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:30:27] Production.INFO: ==748== Releasing lock... [2025-03-25 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:30:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:31:05 [end_date_ymd] => 2025-03-25 16:31:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:31:05' and `end` < '2025-03-25 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-03-25 16:31:19] Production.INFO: count ==5551 [2025-03-25 16:31:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:31:05 - End Time 2025-03-25 16:31:05 [2025-03-25 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760732', 'tblTempUsageDetail_20' ) start [2025-03-25 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760732', 'tblTempUsageDetail_20' ) end [2025-03-25 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760732', 'tblTempVendorCDR_20' ) start [2025-03-25 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760732', 'tblTempVendorCDR_20' ) end [2025-03-25 16:31:21] Production.INFO: ProcessCDR(1,14760732,1,1,2) [2025-03-25 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760732', 'tblTempUsageDetail_20' ) start [2025-03-25 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760732', 'tblTempUsageDetail_20' ) end [2025-03-25 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:31:26] Production.INFO: ==831== Releasing lock... [2025-03-25 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:31:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:32:06 [end_date_ymd] => 2025-03-25 16:32:06 [RateCDR] => 1 ) [2025-03-25 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:32:06' and `end` < '2025-03-25 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:32:19] Production.INFO: count ==5560 [2025-03-25 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:32:06 - End Time 2025-03-25 16:32:06 [2025-03-25 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760737', 'tblTempUsageDetail_20' ) start [2025-03-25 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760737', 'tblTempUsageDetail_20' ) end [2025-03-25 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760737', 'tblTempVendorCDR_20' ) start [2025-03-25 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760737', 'tblTempVendorCDR_20' ) end [2025-03-25 16:32:22] Production.INFO: ProcessCDR(1,14760737,1,1,2) [2025-03-25 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760737', 'tblTempUsageDetail_20' ) start [2025-03-25 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760737', 'tblTempUsageDetail_20' ) end [2025-03-25 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:32:25] Production.INFO: ==907== Releasing lock... [2025-03-25 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:32:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:33:05 [end_date_ymd] => 2025-03-25 16:33:05 [RateCDR] => 1 ) [2025-03-25 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:33:05' and `end` < '2025-03-25 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:33:19] Production.INFO: count ==5538 [2025-03-25 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:33:05 - End Time 2025-03-25 16:33:05 [2025-03-25 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760742', 'tblTempUsageDetail_20' ) start [2025-03-25 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760742', 'tblTempUsageDetail_20' ) end [2025-03-25 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760742', 'tblTempVendorCDR_20' ) start [2025-03-25 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760742', 'tblTempVendorCDR_20' ) end [2025-03-25 16:33:21] Production.INFO: ProcessCDR(1,14760742,1,1,2) [2025-03-25 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760742', 'tblTempUsageDetail_20' ) start [2025-03-25 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760742', 'tblTempUsageDetail_20' ) end [2025-03-25 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:33:27] Production.INFO: ==987== Releasing lock... [2025-03-25 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:33:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:34:05 [end_date_ymd] => 2025-03-25 16:34:05 [RateCDR] => 1 ) [2025-03-25 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:34:05' and `end` < '2025-03-25 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:34:19] Production.INFO: count ==5572 [2025-03-25 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:34:05 - End Time 2025-03-25 16:34:05 [2025-03-25 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760747', 'tblTempUsageDetail_20' ) start [2025-03-25 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760747', 'tblTempUsageDetail_20' ) end [2025-03-25 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760747', 'tblTempVendorCDR_20' ) start [2025-03-25 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760747', 'tblTempVendorCDR_20' ) end [2025-03-25 16:34:21] Production.INFO: ProcessCDR(1,14760747,1,1,2) [2025-03-25 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760747', 'tblTempUsageDetail_20' ) start [2025-03-25 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760747', 'tblTempUsageDetail_20' ) end [2025-03-25 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:34:25] Production.INFO: ==1068== Releasing lock... [2025-03-25 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:34:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:35:05 [end_date_ymd] => 2025-03-25 16:35:05 [RateCDR] => 1 ) [2025-03-25 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:35:05' and `end` < '2025-03-25 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:35:19] Production.INFO: count ==5553 [2025-03-25 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:35:05 - End Time 2025-03-25 16:35:05 [2025-03-25 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760752', 'tblTempUsageDetail_20' ) start [2025-03-25 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760752', 'tblTempUsageDetail_20' ) end [2025-03-25 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760752', 'tblTempVendorCDR_20' ) start [2025-03-25 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760752', 'tblTempVendorCDR_20' ) end [2025-03-25 16:35:21] Production.INFO: ProcessCDR(1,14760752,1,1,2) [2025-03-25 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760752', 'tblTempUsageDetail_20' ) start [2025-03-25 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760752', 'tblTempUsageDetail_20' ) end [2025-03-25 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:35:26] Production.INFO: ==1155== Releasing lock... [2025-03-25 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:35:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:36:06 [end_date_ymd] => 2025-03-25 16:36:06 [RateCDR] => 1 ) [2025-03-25 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:36:06' and `end` < '2025-03-25 16: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-03-25 16:36:20] Production.INFO: count ==5559 [2025-03-25 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:36:06 - End Time 2025-03-25 16:36:06 [2025-03-25 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760757', 'tblTempUsageDetail_20' ) start [2025-03-25 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760757', 'tblTempUsageDetail_20' ) end [2025-03-25 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760757', 'tblTempVendorCDR_20' ) start [2025-03-25 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760757', 'tblTempVendorCDR_20' ) end [2025-03-25 16:36:22] Production.INFO: ProcessCDR(1,14760757,1,1,2) [2025-03-25 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760757', 'tblTempUsageDetail_20' ) start [2025-03-25 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760757', 'tblTempUsageDetail_20' ) end [2025-03-25 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:36:28] Production.INFO: ==1245== Releasing lock... [2025-03-25 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:36:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:37:05 [end_date_ymd] => 2025-03-25 16:37:05 [RateCDR] => 1 ) [2025-03-25 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:37:05' and `end` < '2025-03-25 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:37:18] Production.INFO: count ==5545 [2025-03-25 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:37:05 - End Time 2025-03-25 16:37:05 [2025-03-25 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760762', 'tblTempUsageDetail_20' ) start [2025-03-25 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760762', 'tblTempUsageDetail_20' ) end [2025-03-25 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760762', 'tblTempVendorCDR_20' ) start [2025-03-25 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760762', 'tblTempVendorCDR_20' ) end [2025-03-25 16:37:21] Production.INFO: ProcessCDR(1,14760762,1,1,2) [2025-03-25 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760762', 'tblTempUsageDetail_20' ) start [2025-03-25 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760762', 'tblTempUsageDetail_20' ) end [2025-03-25 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:37:26] Production.INFO: ==1328== Releasing lock... [2025-03-25 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:37:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:38:05 [end_date_ymd] => 2025-03-25 16:38:05 [RateCDR] => 1 ) [2025-03-25 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:38:05' and `end` < '2025-03-25 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:38:21] Production.INFO: count ==5556 [2025-03-25 16:38:23] Production.ERROR: pbx CDR StartTime 2025-03-25 13:38:05 - End Time 2025-03-25 16:38:05 [2025-03-25 16:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760767', 'tblTempUsageDetail_20' ) start [2025-03-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760767', 'tblTempUsageDetail_20' ) end [2025-03-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760767', 'tblTempVendorCDR_20' ) start [2025-03-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760767', 'tblTempVendorCDR_20' ) end [2025-03-25 16:38:23] Production.INFO: ProcessCDR(1,14760767,1,1,2) [2025-03-25 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760767', 'tblTempUsageDetail_20' ) start [2025-03-25 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760767', 'tblTempUsageDetail_20' ) end [2025-03-25 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:38:28] Production.INFO: ==1413== Releasing lock... [2025-03-25 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:38:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:39:04 [end_date_ymd] => 2025-03-25 16:39:04 [RateCDR] => 1 ) [2025-03-25 16:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:39:04' and `end` < '2025-03-25 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:39:18] Production.INFO: count ==5555 [2025-03-25 16:39:20] Production.ERROR: pbx CDR StartTime 2025-03-25 13:39:04 - End Time 2025-03-25 16:39:04 [2025-03-25 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760772', 'tblTempUsageDetail_20' ) start [2025-03-25 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760772', 'tblTempUsageDetail_20' ) end [2025-03-25 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760772', 'tblTempVendorCDR_20' ) start [2025-03-25 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760772', 'tblTempVendorCDR_20' ) end [2025-03-25 16:39:21] Production.INFO: ProcessCDR(1,14760772,1,1,2) [2025-03-25 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760772', 'tblTempUsageDetail_20' ) start [2025-03-25 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760772', 'tblTempUsageDetail_20' ) end [2025-03-25 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:39:26] Production.INFO: ==1492== Releasing lock... [2025-03-25 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:39:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:40:06 [end_date_ymd] => 2025-03-25 16:40:06 [RateCDR] => 1 ) [2025-03-25 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:40:06' and `end` < '2025-03-25 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:40:20] Production.INFO: count ==5569 [2025-03-25 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:40:06 - End Time 2025-03-25 16:40:06 [2025-03-25 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760778', 'tblTempUsageDetail_20' ) start [2025-03-25 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760778', 'tblTempUsageDetail_20' ) end [2025-03-25 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760778', 'tblTempVendorCDR_20' ) start [2025-03-25 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760778', 'tblTempVendorCDR_20' ) end [2025-03-25 16:40:22] Production.INFO: ProcessCDR(1,14760778,1,1,2) [2025-03-25 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760778', 'tblTempUsageDetail_20' ) start [2025-03-25 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760778', 'tblTempUsageDetail_20' ) end [2025-03-25 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:40:27] Production.INFO: ==1611== Releasing lock... [2025-03-25 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:40:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:41:05 [end_date_ymd] => 2025-03-25 16:41:05 [RateCDR] => 1 ) [2025-03-25 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:41:05' and `end` < '2025-03-25 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:41:19] Production.INFO: count ==5570 [2025-03-25 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:41:05 - End Time 2025-03-25 16:41:05 [2025-03-25 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760783', 'tblTempUsageDetail_20' ) start [2025-03-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760783', 'tblTempUsageDetail_20' ) end [2025-03-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760783', 'tblTempVendorCDR_20' ) start [2025-03-25 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760783', 'tblTempVendorCDR_20' ) end [2025-03-25 16:41:21] Production.INFO: ProcessCDR(1,14760783,1,1,2) [2025-03-25 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760783', 'tblTempUsageDetail_20' ) start [2025-03-25 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760783', 'tblTempUsageDetail_20' ) end [2025-03-25 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:41:26] Production.INFO: ==1695== Releasing lock... [2025-03-25 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:41:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:42:05 [end_date_ymd] => 2025-03-25 16:42:05 [RateCDR] => 1 ) [2025-03-25 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:42:05' and `end` < '2025-03-25 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:42:19] Production.INFO: count ==5570 [2025-03-25 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:42:05 - End Time 2025-03-25 16:42:05 [2025-03-25 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760788', 'tblTempUsageDetail_20' ) start [2025-03-25 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760788', 'tblTempUsageDetail_20' ) end [2025-03-25 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760788', 'tblTempVendorCDR_20' ) start [2025-03-25 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760788', 'tblTempVendorCDR_20' ) end [2025-03-25 16:42:21] Production.INFO: ProcessCDR(1,14760788,1,1,2) [2025-03-25 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760788', 'tblTempUsageDetail_20' ) start [2025-03-25 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760788', 'tblTempUsageDetail_20' ) end [2025-03-25 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:42:27] Production.INFO: ==1773== Releasing lock... [2025-03-25 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:42:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:43:06 [end_date_ymd] => 2025-03-25 16:43:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:43:06' and `end` < '2025-03-25 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-03-25 16:43:19] Production.INFO: count ==5577 [2025-03-25 16:43:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:43:06 - End Time 2025-03-25 16:43:06 [2025-03-25 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760793', 'tblTempUsageDetail_20' ) start [2025-03-25 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760793', 'tblTempUsageDetail_20' ) end [2025-03-25 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760793', 'tblTempVendorCDR_20' ) start [2025-03-25 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760793', 'tblTempVendorCDR_20' ) end [2025-03-25 16:43:22] Production.INFO: ProcessCDR(1,14760793,1,1,2) [2025-03-25 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760793', 'tblTempUsageDetail_20' ) start [2025-03-25 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760793', 'tblTempUsageDetail_20' ) end [2025-03-25 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:43:27] Production.INFO: ==1852== Releasing lock... [2025-03-25 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:43:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:44:06 [end_date_ymd] => 2025-03-25 16:44:06 [RateCDR] => 1 ) [2025-03-25 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:44:06' and `end` < '2025-03-25 16: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-03-25 16:44:19] Production.INFO: count ==5563 [2025-03-25 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:44:06 - End Time 2025-03-25 16:44:06 [2025-03-25 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760798', 'tblTempUsageDetail_20' ) start [2025-03-25 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760798', 'tblTempUsageDetail_20' ) end [2025-03-25 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760798', 'tblTempVendorCDR_20' ) start [2025-03-25 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760798', 'tblTempVendorCDR_20' ) end [2025-03-25 16:44:22] Production.INFO: ProcessCDR(1,14760798,1,1,2) [2025-03-25 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760798', 'tblTempUsageDetail_20' ) start [2025-03-25 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760798', 'tblTempUsageDetail_20' ) end [2025-03-25 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:44:27] Production.INFO: ==1924== Releasing lock... [2025-03-25 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:44:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:45:06 [end_date_ymd] => 2025-03-25 16:45:06 [RateCDR] => 1 ) [2025-03-25 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:45:06' and `end` < '2025-03-25 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:45:19] Production.INFO: count ==5567 [2025-03-25 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:45:06 - End Time 2025-03-25 16:45:06 [2025-03-25 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760803', 'tblTempUsageDetail_20' ) start [2025-03-25 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760803', 'tblTempUsageDetail_20' ) end [2025-03-25 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760803', 'tblTempVendorCDR_20' ) start [2025-03-25 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760803', 'tblTempVendorCDR_20' ) end [2025-03-25 16:45:21] Production.INFO: ProcessCDR(1,14760803,1,1,2) [2025-03-25 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760803', 'tblTempUsageDetail_20' ) start [2025-03-25 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760803', 'tblTempUsageDetail_20' ) end [2025-03-25 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:45:27] Production.INFO: ==2002== Releasing lock... [2025-03-25 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:45:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-25 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:46:05 [end_date_ymd] => 2025-03-25 16:46:05 [RateCDR] => 1 ) [2025-03-25 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:46:05' and `end` < '2025-03-25 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:46:19] Production.INFO: count ==5540 [2025-03-25 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:46:05 - End Time 2025-03-25 16:46:05 [2025-03-25 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760808', 'tblTempUsageDetail_20' ) start [2025-03-25 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760808', 'tblTempUsageDetail_20' ) end [2025-03-25 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760808', 'tblTempVendorCDR_20' ) start [2025-03-25 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760808', 'tblTempVendorCDR_20' ) end [2025-03-25 16:46:21] Production.INFO: ProcessCDR(1,14760808,1,1,2) [2025-03-25 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760808', 'tblTempUsageDetail_20' ) start [2025-03-25 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760808', 'tblTempUsageDetail_20' ) end [2025-03-25 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:46:26] Production.INFO: ==2117== Releasing lock... [2025-03-25 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:46:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:47:05 [end_date_ymd] => 2025-03-25 16:47:05 [RateCDR] => 1 ) [2025-03-25 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:47:05' and `end` < '2025-03-25 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:47:19] Production.INFO: count ==5543 [2025-03-25 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:47:05 - End Time 2025-03-25 16:47:05 [2025-03-25 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760813', 'tblTempUsageDetail_20' ) start [2025-03-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760813', 'tblTempUsageDetail_20' ) end [2025-03-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760813', 'tblTempVendorCDR_20' ) start [2025-03-25 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760813', 'tblTempVendorCDR_20' ) end [2025-03-25 16:47:21] Production.INFO: ProcessCDR(1,14760813,1,1,2) [2025-03-25 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760813', 'tblTempUsageDetail_20' ) start [2025-03-25 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760813', 'tblTempUsageDetail_20' ) end [2025-03-25 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:47:26] Production.INFO: ==2191== Releasing lock... [2025-03-25 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:47:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:48:04 [end_date_ymd] => 2025-03-25 16:48:04 [RateCDR] => 1 ) [2025-03-25 16:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:48:04' and `end` < '2025-03-25 16:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:48:18] Production.INFO: count ==5549 [2025-03-25 16:48:20] Production.ERROR: pbx CDR StartTime 2025-03-25 13:48:04 - End Time 2025-03-25 16:48:04 [2025-03-25 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760818', 'tblTempUsageDetail_20' ) start [2025-03-25 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760818', 'tblTempUsageDetail_20' ) end [2025-03-25 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760818', 'tblTempVendorCDR_20' ) start [2025-03-25 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760818', 'tblTempVendorCDR_20' ) end [2025-03-25 16:48:21] Production.INFO: ProcessCDR(1,14760818,1,1,2) [2025-03-25 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760818', 'tblTempUsageDetail_20' ) start [2025-03-25 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760818', 'tblTempUsageDetail_20' ) end [2025-03-25 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:48:26] Production.INFO: ==2270== Releasing lock... [2025-03-25 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:48:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:49:05 [end_date_ymd] => 2025-03-25 16:49:05 [RateCDR] => 1 ) [2025-03-25 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:49:05' and `end` < '2025-03-25 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:49:19] Production.INFO: count ==5522 [2025-03-25 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:49:05 - End Time 2025-03-25 16:49:05 [2025-03-25 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760823', 'tblTempUsageDetail_20' ) start [2025-03-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760823', 'tblTempUsageDetail_20' ) end [2025-03-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760823', 'tblTempVendorCDR_20' ) start [2025-03-25 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760823', 'tblTempVendorCDR_20' ) end [2025-03-25 16:49:21] Production.INFO: ProcessCDR(1,14760823,1,1,2) [2025-03-25 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760823', 'tblTempUsageDetail_20' ) start [2025-03-25 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760823', 'tblTempUsageDetail_20' ) end [2025-03-25 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:49:26] Production.INFO: ==2354== Releasing lock... [2025-03-25 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:49:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:50:06 [end_date_ymd] => 2025-03-25 16:50:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:50:06' and `end` < '2025-03-25 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-03-25 16:50:19] Production.INFO: count ==5527 [2025-03-25 16:50:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:50:06 - End Time 2025-03-25 16:50:06 [2025-03-25 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760829', 'tblTempUsageDetail_20' ) start [2025-03-25 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760829', 'tblTempUsageDetail_20' ) end [2025-03-25 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760829', 'tblTempVendorCDR_20' ) start [2025-03-25 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760829', 'tblTempVendorCDR_20' ) end [2025-03-25 16:50:22] Production.INFO: ProcessCDR(1,14760829,1,1,2) [2025-03-25 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760829', 'tblTempUsageDetail_20' ) start [2025-03-25 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760829', 'tblTempUsageDetail_20' ) end [2025-03-25 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:50:27] Production.INFO: ==2436== Releasing lock... [2025-03-25 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:50:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:51:05 [end_date_ymd] => 2025-03-25 16:51:05 [RateCDR] => 1 ) [2025-03-25 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:51:05' and `end` < '2025-03-25 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:51:19] Production.INFO: count ==5535 [2025-03-25 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:51:05 - End Time 2025-03-25 16:51:05 [2025-03-25 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760834', 'tblTempUsageDetail_20' ) start [2025-03-25 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760834', 'tblTempUsageDetail_20' ) end [2025-03-25 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760834', 'tblTempVendorCDR_20' ) start [2025-03-25 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760834', 'tblTempVendorCDR_20' ) end [2025-03-25 16:51:21] Production.INFO: ProcessCDR(1,14760834,1,1,2) [2025-03-25 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760834', 'tblTempUsageDetail_20' ) start [2025-03-25 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760834', 'tblTempUsageDetail_20' ) end [2025-03-25 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:51:26] Production.INFO: ==2512== Releasing lock... [2025-03-25 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:51:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:52:05 [end_date_ymd] => 2025-03-25 16:52:05 [RateCDR] => 1 ) [2025-03-25 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:52:05' and `end` < '2025-03-25 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:52:19] Production.INFO: count ==5533 [2025-03-25 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:52:05 - End Time 2025-03-25 16:52:05 [2025-03-25 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760839', 'tblTempUsageDetail_20' ) start [2025-03-25 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760839', 'tblTempUsageDetail_20' ) end [2025-03-25 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760839', 'tblTempVendorCDR_20' ) start [2025-03-25 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760839', 'tblTempVendorCDR_20' ) end [2025-03-25 16:52:21] Production.INFO: ProcessCDR(1,14760839,1,1,2) [2025-03-25 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760839', 'tblTempUsageDetail_20' ) start [2025-03-25 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760839', 'tblTempUsageDetail_20' ) end [2025-03-25 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:52:25] Production.INFO: ==2590== Releasing lock... [2025-03-25 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:52:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-25 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:53:05 [end_date_ymd] => 2025-03-25 16:53:05 [RateCDR] => 1 ) [2025-03-25 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:53:05' and `end` < '2025-03-25 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:53:19] Production.INFO: count ==5521 [2025-03-25 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:53:05 - End Time 2025-03-25 16:53:05 [2025-03-25 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760844', 'tblTempUsageDetail_20' ) start [2025-03-25 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760844', 'tblTempUsageDetail_20' ) end [2025-03-25 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760844', 'tblTempVendorCDR_20' ) start [2025-03-25 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760844', 'tblTempVendorCDR_20' ) end [2025-03-25 16:53:21] Production.INFO: ProcessCDR(1,14760844,1,1,2) [2025-03-25 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760844', 'tblTempUsageDetail_20' ) start [2025-03-25 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760844', 'tblTempUsageDetail_20' ) end [2025-03-25 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:53:26] Production.INFO: ==2665== Releasing lock... [2025-03-25 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:53:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:54:05 [end_date_ymd] => 2025-03-25 16:54:05 [RateCDR] => 1 ) [2025-03-25 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:54:05' and `end` < '2025-03-25 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:54:19] Production.INFO: count ==5525 [2025-03-25 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:54:05 - End Time 2025-03-25 16:54:05 [2025-03-25 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760849', 'tblTempUsageDetail_20' ) start [2025-03-25 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760849', 'tblTempUsageDetail_20' ) end [2025-03-25 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760849', 'tblTempVendorCDR_20' ) start [2025-03-25 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760849', 'tblTempVendorCDR_20' ) end [2025-03-25 16:54:22] Production.INFO: ProcessCDR(1,14760849,1,1,2) [2025-03-25 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760849', 'tblTempUsageDetail_20' ) start [2025-03-25 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760849', 'tblTempUsageDetail_20' ) end [2025-03-25 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:54:27] Production.INFO: ==2737== Releasing lock... [2025-03-25 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:54:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:55:05 [end_date_ymd] => 2025-03-25 16:55:05 [RateCDR] => 1 ) [2025-03-25 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:55:05' and `end` < '2025-03-25 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:55:19] Production.INFO: count ==5510 [2025-03-25 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:55:05 - End Time 2025-03-25 16:55:05 [2025-03-25 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760854', 'tblTempUsageDetail_20' ) start [2025-03-25 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760854', 'tblTempUsageDetail_20' ) end [2025-03-25 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760854', 'tblTempVendorCDR_20' ) start [2025-03-25 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760854', 'tblTempVendorCDR_20' ) end [2025-03-25 16:55:21] Production.INFO: ProcessCDR(1,14760854,1,1,2) [2025-03-25 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760854', 'tblTempUsageDetail_20' ) start [2025-03-25 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760854', 'tblTempUsageDetail_20' ) end [2025-03-25 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:55:26] Production.INFO: ==2811== Releasing lock... [2025-03-25 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:55:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-25 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:56:06 [end_date_ymd] => 2025-03-25 16:56:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 13:56:06' and `end` < '2025-03-25 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-03-25 16:56:20] Production.INFO: count ==5488 [2025-03-25 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-25 13:56:06 - End Time 2025-03-25 16:56:06 [2025-03-25 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760859', 'tblTempUsageDetail_20' ) start [2025-03-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760859', 'tblTempUsageDetail_20' ) end [2025-03-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760859', 'tblTempVendorCDR_20' ) start [2025-03-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760859', 'tblTempVendorCDR_20' ) end [2025-03-25 16:56:22] Production.INFO: ProcessCDR(1,14760859,1,1,2) [2025-03-25 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760859', 'tblTempUsageDetail_20' ) start [2025-03-25 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760859', 'tblTempUsageDetail_20' ) end [2025-03-25 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:56:26] Production.INFO: ==2883== Releasing lock... [2025-03-25 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:56:26] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:57:05 [end_date_ymd] => 2025-03-25 16:57:05 [RateCDR] => 1 ) [2025-03-25 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:57:05' and `end` < '2025-03-25 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:57:19] Production.INFO: count ==5480 [2025-03-25 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:57:05 - End Time 2025-03-25 16:57:05 [2025-03-25 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760864', 'tblTempUsageDetail_20' ) start [2025-03-25 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760864', 'tblTempUsageDetail_20' ) end [2025-03-25 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760864', 'tblTempVendorCDR_20' ) start [2025-03-25 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760864', 'tblTempVendorCDR_20' ) end [2025-03-25 16:57:21] Production.INFO: ProcessCDR(1,14760864,1,1,2) [2025-03-25 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760864', 'tblTempUsageDetail_20' ) start [2025-03-25 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760864', 'tblTempUsageDetail_20' ) end [2025-03-25 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:57:26] Production.INFO: ==2964== Releasing lock... [2025-03-25 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:57:26] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:58:05 [end_date_ymd] => 2025-03-25 16:58:05 [RateCDR] => 1 ) [2025-03-25 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:58:05' and `end` < '2025-03-25 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:58:19] Production.INFO: count ==5465 [2025-03-25 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-25 13:58:05 - End Time 2025-03-25 16:58:05 [2025-03-25 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760869', 'tblTempUsageDetail_20' ) start [2025-03-25 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760869', 'tblTempUsageDetail_20' ) end [2025-03-25 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760869', 'tblTempVendorCDR_20' ) start [2025-03-25 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760869', 'tblTempVendorCDR_20' ) end [2025-03-25 16:58:21] Production.INFO: ProcessCDR(1,14760869,1,1,2) [2025-03-25 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760869', 'tblTempUsageDetail_20' ) start [2025-03-25 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760869', 'tblTempUsageDetail_20' ) end [2025-03-25 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:58:27] Production.INFO: ==3044== Releasing lock... [2025-03-25 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:58:27] Production.INFO: 69 MB #Memory Used# [2025-03-25 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 13:59:05 [end_date_ymd] => 2025-03-25 16:59:05 [RateCDR] => 1 ) [2025-03-25 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 13:59:05' and `end` < '2025-03-25 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 16:59:18] Production.INFO: count ==5468 [2025-03-25 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-25 13:59:05 - End Time 2025-03-25 16:59:05 [2025-03-25 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760874', 'tblTempUsageDetail_20' ) start [2025-03-25 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760874', 'tblTempUsageDetail_20' ) end [2025-03-25 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760874', 'tblTempVendorCDR_20' ) start [2025-03-25 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760874', 'tblTempVendorCDR_20' ) end [2025-03-25 16:59:21] Production.INFO: ProcessCDR(1,14760874,1,1,2) [2025-03-25 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760874', 'tblTempUsageDetail_20' ) start [2025-03-25 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760874', 'tblTempUsageDetail_20' ) end [2025-03-25 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 16:59:26] Production.INFO: ==3115== Releasing lock... [2025-03-25 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 16:59:26] Production.INFO: 69 MB #Memory Used# [2025-03-25 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:00:06 [end_date_ymd] => 2025-03-25 17:00:06 [RateCDR] => 1 ) [2025-03-25 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:00:06' and `end` < '2025-03-25 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:00:20] Production.INFO: count ==5451 [2025-03-25 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:00:06 - End Time 2025-03-25 17:00:06 [2025-03-25 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760880', 'tblTempUsageDetail_20' ) start [2025-03-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760880', 'tblTempUsageDetail_20' ) end [2025-03-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760880', 'tblTempVendorCDR_20' ) start [2025-03-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760880', 'tblTempVendorCDR_20' ) end [2025-03-25 17:00:23] Production.INFO: ProcessCDR(1,14760880,1,1,2) [2025-03-25 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760880', 'tblTempUsageDetail_20' ) start [2025-03-25 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760880', 'tblTempUsageDetail_20' ) end [2025-03-25 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:00:28] Production.INFO: ==3190== Releasing lock... [2025-03-25 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:00:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:01:05 [end_date_ymd] => 2025-03-25 17:01:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:01:05' and `end` < '2025-03-25 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-03-25 17:01:19] Production.INFO: count ==5465 [2025-03-25 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:01:05 - End Time 2025-03-25 17:01:05 [2025-03-25 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760885', 'tblTempUsageDetail_20' ) start [2025-03-25 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760885', 'tblTempUsageDetail_20' ) end [2025-03-25 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760885', 'tblTempVendorCDR_20' ) start [2025-03-25 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760885', 'tblTempVendorCDR_20' ) end [2025-03-25 17:01:21] Production.INFO: ProcessCDR(1,14760885,1,1,2) [2025-03-25 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760885', 'tblTempUsageDetail_20' ) start [2025-03-25 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760885', 'tblTempUsageDetail_20' ) end [2025-03-25 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:01:26] Production.INFO: ==3322== Releasing lock... [2025-03-25 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:01:26] Production.INFO: 69 MB #Memory Used# [2025-03-25 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:02:06 [end_date_ymd] => 2025-03-25 17:02:06 [RateCDR] => 1 ) [2025-03-25 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:02:06' and `end` < '2025-03-25 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:02:20] Production.INFO: count ==5460 [2025-03-25 17:02:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:02:06 - End Time 2025-03-25 17:02:06 [2025-03-25 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760890', 'tblTempUsageDetail_20' ) start [2025-03-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760890', 'tblTempUsageDetail_20' ) end [2025-03-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760890', 'tblTempVendorCDR_20' ) start [2025-03-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760890', 'tblTempVendorCDR_20' ) end [2025-03-25 17:02:22] Production.INFO: ProcessCDR(1,14760890,1,1,2) [2025-03-25 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760890', 'tblTempUsageDetail_20' ) start [2025-03-25 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760890', 'tblTempUsageDetail_20' ) end [2025-03-25 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:02:28] Production.INFO: ==3400== Releasing lock... [2025-03-25 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:02:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:03:05 [end_date_ymd] => 2025-03-25 17:03:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:03:05' and `end` < '2025-03-25 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-03-25 17:03:19] Production.INFO: count ==5459 [2025-03-25 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:03:05 - End Time 2025-03-25 17:03:05 [2025-03-25 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760895', 'tblTempUsageDetail_20' ) start [2025-03-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760895', 'tblTempUsageDetail_20' ) end [2025-03-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760895', 'tblTempVendorCDR_20' ) start [2025-03-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760895', 'tblTempVendorCDR_20' ) end [2025-03-25 17:03:21] Production.INFO: ProcessCDR(1,14760895,1,1,2) [2025-03-25 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760895', 'tblTempUsageDetail_20' ) start [2025-03-25 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760895', 'tblTempUsageDetail_20' ) end [2025-03-25 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:03:26] Production.INFO: ==3473== Releasing lock... [2025-03-25 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:03:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:04:06 [end_date_ymd] => 2025-03-25 17:04:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:04:06' and `end` < '2025-03-25 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-03-25 17:04:19] Production.INFO: count ==5454 [2025-03-25 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:04:06 - End Time 2025-03-25 17:04:06 [2025-03-25 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760900', 'tblTempUsageDetail_20' ) start [2025-03-25 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760900', 'tblTempUsageDetail_20' ) end [2025-03-25 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760900', 'tblTempVendorCDR_20' ) start [2025-03-25 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760900', 'tblTempVendorCDR_20' ) end [2025-03-25 17:04:22] Production.INFO: ProcessCDR(1,14760900,1,1,2) [2025-03-25 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760900', 'tblTempUsageDetail_20' ) start [2025-03-25 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760900', 'tblTempUsageDetail_20' ) end [2025-03-25 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:04:27] Production.INFO: ==3547== Releasing lock... [2025-03-25 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:04:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:05:05 [end_date_ymd] => 2025-03-25 17:05:05 [RateCDR] => 1 ) [2025-03-25 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:05:05' and `end` < '2025-03-25 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:05:19] Production.INFO: count ==5454 [2025-03-25 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:05:05 - End Time 2025-03-25 17:05:05 [2025-03-25 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760905', 'tblTempUsageDetail_20' ) start [2025-03-25 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760905', 'tblTempUsageDetail_20' ) end [2025-03-25 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760905', 'tblTempVendorCDR_20' ) start [2025-03-25 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760905', 'tblTempVendorCDR_20' ) end [2025-03-25 17:05:22] Production.INFO: ProcessCDR(1,14760905,1,1,2) [2025-03-25 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760905', 'tblTempUsageDetail_20' ) start [2025-03-25 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760905', 'tblTempUsageDetail_20' ) end [2025-03-25 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:05:27] Production.INFO: ==3617== Releasing lock... [2025-03-25 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:05:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:06:05 [end_date_ymd] => 2025-03-25 17:06:05 [RateCDR] => 1 ) [2025-03-25 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:06:05' and `end` < '2025-03-25 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:06:19] Production.INFO: count ==5444 [2025-03-25 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:06:05 - End Time 2025-03-25 17:06:05 [2025-03-25 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760910', 'tblTempUsageDetail_20' ) start [2025-03-25 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760910', 'tblTempUsageDetail_20' ) end [2025-03-25 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760910', 'tblTempVendorCDR_20' ) start [2025-03-25 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760910', 'tblTempVendorCDR_20' ) end [2025-03-25 17:06:21] Production.INFO: ProcessCDR(1,14760910,1,1,2) [2025-03-25 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760910', 'tblTempUsageDetail_20' ) start [2025-03-25 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760910', 'tblTempUsageDetail_20' ) end [2025-03-25 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:06:26] Production.INFO: ==3692== Releasing lock... [2025-03-25 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:06:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:07:05 [end_date_ymd] => 2025-03-25 17:07:05 [RateCDR] => 1 ) [2025-03-25 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:07:05' and `end` < '2025-03-25 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:07:18] Production.INFO: count ==5429 [2025-03-25 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:07:05 - End Time 2025-03-25 17:07:05 [2025-03-25 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760915', 'tblTempUsageDetail_20' ) start [2025-03-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760915', 'tblTempUsageDetail_20' ) end [2025-03-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760915', 'tblTempVendorCDR_20' ) start [2025-03-25 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760915', 'tblTempVendorCDR_20' ) end [2025-03-25 17:07:21] Production.INFO: ProcessCDR(1,14760915,1,1,2) [2025-03-25 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760915', 'tblTempUsageDetail_20' ) start [2025-03-25 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760915', 'tblTempUsageDetail_20' ) end [2025-03-25 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:07:26] Production.INFO: ==3766== Releasing lock... [2025-03-25 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:07:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:08:05 [end_date_ymd] => 2025-03-25 17:08:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:08:05' and `end` < '2025-03-25 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-03-25 17:08:19] Production.INFO: count ==5424 [2025-03-25 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:08:05 - End Time 2025-03-25 17:08:05 [2025-03-25 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760920', 'tblTempUsageDetail_20' ) start [2025-03-25 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760920', 'tblTempUsageDetail_20' ) end [2025-03-25 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760920', 'tblTempVendorCDR_20' ) start [2025-03-25 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760920', 'tblTempVendorCDR_20' ) end [2025-03-25 17:08:21] Production.INFO: ProcessCDR(1,14760920,1,1,2) [2025-03-25 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760920', 'tblTempUsageDetail_20' ) start [2025-03-25 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760920', 'tblTempUsageDetail_20' ) end [2025-03-25 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:08:24] Production.INFO: ==3839== Releasing lock... [2025-03-25 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:08:24] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:09:05 [end_date_ymd] => 2025-03-25 17:09:05 [RateCDR] => 1 ) [2025-03-25 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:09:05' and `end` < '2025-03-25 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:09:19] Production.INFO: count ==5414 [2025-03-25 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:09:05 - End Time 2025-03-25 17:09:05 [2025-03-25 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760925', 'tblTempUsageDetail_20' ) start [2025-03-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760925', 'tblTempUsageDetail_20' ) end [2025-03-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760925', 'tblTempVendorCDR_20' ) start [2025-03-25 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760925', 'tblTempVendorCDR_20' ) end [2025-03-25 17:09:21] Production.INFO: ProcessCDR(1,14760925,1,1,2) [2025-03-25 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760925', 'tblTempUsageDetail_20' ) start [2025-03-25 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760925', 'tblTempUsageDetail_20' ) end [2025-03-25 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:09:26] Production.INFO: ==3909== Releasing lock... [2025-03-25 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:09:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:10:06 [end_date_ymd] => 2025-03-25 17:10:06 [RateCDR] => 1 ) [2025-03-25 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:10:06' and `end` < '2025-03-25 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:10:20] Production.INFO: count ==5392 [2025-03-25 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:10:06 - End Time 2025-03-25 17:10:06 [2025-03-25 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760931', 'tblTempUsageDetail_20' ) start [2025-03-25 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760931', 'tblTempUsageDetail_20' ) end [2025-03-25 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760931', 'tblTempVendorCDR_20' ) start [2025-03-25 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760931', 'tblTempVendorCDR_20' ) end [2025-03-25 17:10:22] Production.INFO: ProcessCDR(1,14760931,1,1,2) [2025-03-25 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760931', 'tblTempUsageDetail_20' ) start [2025-03-25 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760931', 'tblTempUsageDetail_20' ) end [2025-03-25 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:10:27] Production.INFO: ==3985== Releasing lock... [2025-03-25 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:10:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:11:05 [end_date_ymd] => 2025-03-25 17:11:05 [RateCDR] => 1 ) [2025-03-25 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:11:05' and `end` < '2025-03-25 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:11:18] Production.INFO: count ==5445 [2025-03-25 17:11:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:11:05 - End Time 2025-03-25 17:11:05 [2025-03-25 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760936', 'tblTempUsageDetail_20' ) start [2025-03-25 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760936', 'tblTempUsageDetail_20' ) end [2025-03-25 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760936', 'tblTempVendorCDR_20' ) start [2025-03-25 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760936', 'tblTempVendorCDR_20' ) end [2025-03-25 17:11:21] Production.INFO: ProcessCDR(1,14760936,1,1,2) [2025-03-25 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760936', 'tblTempUsageDetail_20' ) start [2025-03-25 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760936', 'tblTempUsageDetail_20' ) end [2025-03-25 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:11:26] Production.INFO: ==4062== Releasing lock... [2025-03-25 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:11:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:12:05 [end_date_ymd] => 2025-03-25 17:12:05 [RateCDR] => 1 ) [2025-03-25 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:12:05' and `end` < '2025-03-25 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:12:19] Production.INFO: count ==5445 [2025-03-25 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:12:05 - End Time 2025-03-25 17:12:05 [2025-03-25 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760941', 'tblTempUsageDetail_20' ) start [2025-03-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760941', 'tblTempUsageDetail_20' ) end [2025-03-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760941', 'tblTempVendorCDR_20' ) start [2025-03-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760941', 'tblTempVendorCDR_20' ) end [2025-03-25 17:12:21] Production.INFO: ProcessCDR(1,14760941,1,1,2) [2025-03-25 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760941', 'tblTempUsageDetail_20' ) start [2025-03-25 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760941', 'tblTempUsageDetail_20' ) end [2025-03-25 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:12:26] Production.INFO: ==4134== Releasing lock... [2025-03-25 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:12:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:13:04 [end_date_ymd] => 2025-03-25 17:13:04 [RateCDR] => 1 ) [2025-03-25 17: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-03-25 14:13:04' and `end` < '2025-03-25 17: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-03-25 17:13:18] Production.INFO: count ==5451 [2025-03-25 17:13:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:13:04 - End Time 2025-03-25 17:13:04 [2025-03-25 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760946', 'tblTempUsageDetail_20' ) start [2025-03-25 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760946', 'tblTempUsageDetail_20' ) end [2025-03-25 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760946', 'tblTempVendorCDR_20' ) start [2025-03-25 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760946', 'tblTempVendorCDR_20' ) end [2025-03-25 17:13:20] Production.INFO: ProcessCDR(1,14760946,1,1,2) [2025-03-25 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760946', 'tblTempUsageDetail_20' ) start [2025-03-25 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760946', 'tblTempUsageDetail_20' ) end [2025-03-25 17:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:13:23] Production.INFO: ==4205== Releasing lock... [2025-03-25 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:13:23] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:14:05 [end_date_ymd] => 2025-03-25 17:14:05 [RateCDR] => 1 ) [2025-03-25 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:14:05' and `end` < '2025-03-25 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:14:19] Production.INFO: count ==5439 [2025-03-25 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:14:05 - End Time 2025-03-25 17:14:05 [2025-03-25 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760951', 'tblTempUsageDetail_20' ) start [2025-03-25 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760951', 'tblTempUsageDetail_20' ) end [2025-03-25 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760951', 'tblTempVendorCDR_20' ) start [2025-03-25 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760951', 'tblTempVendorCDR_20' ) end [2025-03-25 17:14:21] Production.INFO: ProcessCDR(1,14760951,1,1,2) [2025-03-25 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760951', 'tblTempUsageDetail_20' ) start [2025-03-25 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760951', 'tblTempUsageDetail_20' ) end [2025-03-25 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:14:24] Production.INFO: ==4279== Releasing lock... [2025-03-25 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:14:24] Production.INFO: 68.75 MB #Memory Used# [2025-03-25 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:15:06 [end_date_ymd] => 2025-03-25 17:15:06 [RateCDR] => 1 ) [2025-03-25 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:15:06' and `end` < '2025-03-25 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:15:19] Production.INFO: count ==5414 [2025-03-25 17:15:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:15:06 - End Time 2025-03-25 17:15:06 [2025-03-25 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760956', 'tblTempUsageDetail_20' ) start [2025-03-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760956', 'tblTempUsageDetail_20' ) end [2025-03-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760956', 'tblTempVendorCDR_20' ) start [2025-03-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760956', 'tblTempVendorCDR_20' ) end [2025-03-25 17:15:22] Production.INFO: ProcessCDR(1,14760956,1,1,2) [2025-03-25 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760956', 'tblTempUsageDetail_20' ) start [2025-03-25 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760956', 'tblTempUsageDetail_20' ) end [2025-03-25 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:15:27] Production.INFO: ==4359== Releasing lock... [2025-03-25 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:15:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:16:05 [end_date_ymd] => 2025-03-25 17:16:05 [RateCDR] => 1 ) [2025-03-25 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:16:05' and `end` < '2025-03-25 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:16:19] Production.INFO: count ==5396 [2025-03-25 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:16:05 - End Time 2025-03-25 17:16:05 [2025-03-25 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760961', 'tblTempUsageDetail_20' ) start [2025-03-25 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760961', 'tblTempUsageDetail_20' ) end [2025-03-25 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760961', 'tblTempVendorCDR_20' ) start [2025-03-25 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760961', 'tblTempVendorCDR_20' ) end [2025-03-25 17:16:21] Production.INFO: ProcessCDR(1,14760961,1,1,2) [2025-03-25 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760961', 'tblTempUsageDetail_20' ) start [2025-03-25 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760961', 'tblTempUsageDetail_20' ) end [2025-03-25 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:16:27] Production.INFO: ==4434== Releasing lock... [2025-03-25 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:16:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:17:06 [end_date_ymd] => 2025-03-25 17:17:06 [RateCDR] => 1 ) [2025-03-25 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:17:06' and `end` < '2025-03-25 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:17:19] Production.INFO: count ==5397 [2025-03-25 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:17:06 - End Time 2025-03-25 17:17:06 [2025-03-25 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760966', 'tblTempUsageDetail_20' ) start [2025-03-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760966', 'tblTempUsageDetail_20' ) end [2025-03-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760966', 'tblTempVendorCDR_20' ) start [2025-03-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760966', 'tblTempVendorCDR_20' ) end [2025-03-25 17:17:21] Production.INFO: ProcessCDR(1,14760966,1,1,2) [2025-03-25 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760966', 'tblTempUsageDetail_20' ) start [2025-03-25 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760966', 'tblTempUsageDetail_20' ) end [2025-03-25 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:17:27] Production.INFO: ==4551== Releasing lock... [2025-03-25 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:17:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:18:05 [end_date_ymd] => 2025-03-25 17:18:05 [RateCDR] => 1 ) [2025-03-25 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:18:05' and `end` < '2025-03-25 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:18:19] Production.INFO: count ==5383 [2025-03-25 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:18:05 - End Time 2025-03-25 17:18:05 [2025-03-25 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760971', 'tblTempUsageDetail_20' ) start [2025-03-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760971', 'tblTempUsageDetail_20' ) end [2025-03-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760971', 'tblTempVendorCDR_20' ) start [2025-03-25 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760971', 'tblTempVendorCDR_20' ) end [2025-03-25 17:18:21] Production.INFO: ProcessCDR(1,14760971,1,1,2) [2025-03-25 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760971', 'tblTempUsageDetail_20' ) start [2025-03-25 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760971', 'tblTempUsageDetail_20' ) end [2025-03-25 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:18:26] Production.INFO: ==4639== Releasing lock... [2025-03-25 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:18:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:19:06 [end_date_ymd] => 2025-03-25 17:19:06 [RateCDR] => 1 ) [2025-03-25 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:19:06' and `end` < '2025-03-25 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:19:19] Production.INFO: count ==5400 [2025-03-25 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:19:06 - End Time 2025-03-25 17:19:06 [2025-03-25 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760976', 'tblTempUsageDetail_20' ) start [2025-03-25 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760976', 'tblTempUsageDetail_20' ) end [2025-03-25 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760976', 'tblTempVendorCDR_20' ) start [2025-03-25 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760976', 'tblTempVendorCDR_20' ) end [2025-03-25 17:19:22] Production.INFO: ProcessCDR(1,14760976,1,1,2) [2025-03-25 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760976', 'tblTempUsageDetail_20' ) start [2025-03-25 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760976', 'tblTempUsageDetail_20' ) end [2025-03-25 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:19:27] Production.INFO: ==4712== Releasing lock... [2025-03-25 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:19:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:20:06 [end_date_ymd] => 2025-03-25 17:20:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:20:06' and `end` < '2025-03-25 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-03-25 17:20:19] Production.INFO: count ==5397 [2025-03-25 17:20:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:20:06 - End Time 2025-03-25 17:20:06 [2025-03-25 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760982', 'tblTempUsageDetail_20' ) start [2025-03-25 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760982', 'tblTempUsageDetail_20' ) end [2025-03-25 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760982', 'tblTempVendorCDR_20' ) start [2025-03-25 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760982', 'tblTempVendorCDR_20' ) end [2025-03-25 17:20:22] Production.INFO: ProcessCDR(1,14760982,1,1,2) [2025-03-25 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760982', 'tblTempUsageDetail_20' ) start [2025-03-25 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760982', 'tblTempUsageDetail_20' ) end [2025-03-25 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:20:27] Production.INFO: ==4790== Releasing lock... [2025-03-25 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:20:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:21:05 [end_date_ymd] => 2025-03-25 17:21:05 [RateCDR] => 1 ) [2025-03-25 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:21:05' and `end` < '2025-03-25 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:21:19] Production.INFO: count ==5397 [2025-03-25 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:21:05 - End Time 2025-03-25 17:21:05 [2025-03-25 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760987', 'tblTempUsageDetail_20' ) start [2025-03-25 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760987', 'tblTempUsageDetail_20' ) end [2025-03-25 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760987', 'tblTempVendorCDR_20' ) start [2025-03-25 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760987', 'tblTempVendorCDR_20' ) end [2025-03-25 17:21:21] Production.INFO: ProcessCDR(1,14760987,1,1,2) [2025-03-25 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760987', 'tblTempUsageDetail_20' ) start [2025-03-25 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760987', 'tblTempUsageDetail_20' ) end [2025-03-25 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:21:27] Production.INFO: ==4867== Releasing lock... [2025-03-25 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:21:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:22:05 [end_date_ymd] => 2025-03-25 17:22:05 [RateCDR] => 1 ) [2025-03-25 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:22:05' and `end` < '2025-03-25 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:22:18] Production.INFO: count ==5406 [2025-03-25 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:22:05 - End Time 2025-03-25 17:22:05 [2025-03-25 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760992', 'tblTempUsageDetail_20' ) start [2025-03-25 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760992', 'tblTempUsageDetail_20' ) end [2025-03-25 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760992', 'tblTempVendorCDR_20' ) start [2025-03-25 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760992', 'tblTempVendorCDR_20' ) end [2025-03-25 17:22:20] Production.INFO: ProcessCDR(1,14760992,1,1,2) [2025-03-25 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760992', 'tblTempUsageDetail_20' ) start [2025-03-25 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760992', 'tblTempUsageDetail_20' ) end [2025-03-25 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:22:26] Production.INFO: ==4941== Releasing lock... [2025-03-25 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:22:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:23:05 [end_date_ymd] => 2025-03-25 17:23:05 [RateCDR] => 1 ) [2025-03-25 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:23:05' and `end` < '2025-03-25 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:23:19] Production.INFO: count ==5395 [2025-03-25 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:23:05 - End Time 2025-03-25 17:23:05 [2025-03-25 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760997', 'tblTempUsageDetail_20' ) start [2025-03-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14760997', 'tblTempUsageDetail_20' ) end [2025-03-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760997', 'tblTempVendorCDR_20' ) start [2025-03-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14760997', 'tblTempVendorCDR_20' ) end [2025-03-25 17:23:21] Production.INFO: ProcessCDR(1,14760997,1,1,2) [2025-03-25 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14760997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14760997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14760997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14760997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760997', 'tblTempUsageDetail_20' ) start [2025-03-25 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14760997', 'tblTempUsageDetail_20' ) end [2025-03-25 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:23:26] Production.INFO: ==5017== Releasing lock... [2025-03-25 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:23:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:24:05 [end_date_ymd] => 2025-03-25 17:24:05 [RateCDR] => 1 ) [2025-03-25 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:24:05' and `end` < '2025-03-25 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:24:18] Production.INFO: count ==5398 [2025-03-25 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:24:05 - End Time 2025-03-25 17:24:05 [2025-03-25 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761002', 'tblTempUsageDetail_20' ) start [2025-03-25 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761002', 'tblTempUsageDetail_20' ) end [2025-03-25 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761002', 'tblTempVendorCDR_20' ) start [2025-03-25 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761002', 'tblTempVendorCDR_20' ) end [2025-03-25 17:24:21] Production.INFO: ProcessCDR(1,14761002,1,1,2) [2025-03-25 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761002', 'tblTempUsageDetail_20' ) start [2025-03-25 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761002', 'tblTempUsageDetail_20' ) end [2025-03-25 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:24:25] Production.INFO: ==5091== Releasing lock... [2025-03-25 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:24:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-25 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:25:05 [end_date_ymd] => 2025-03-25 17:25:05 [RateCDR] => 1 ) [2025-03-25 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:25:05' and `end` < '2025-03-25 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:25:18] Production.INFO: count ==5371 [2025-03-25 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:25:05 - End Time 2025-03-25 17:25:05 [2025-03-25 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761007', 'tblTempUsageDetail_20' ) start [2025-03-25 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761007', 'tblTempUsageDetail_20' ) end [2025-03-25 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761007', 'tblTempVendorCDR_20' ) start [2025-03-25 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761007', 'tblTempVendorCDR_20' ) end [2025-03-25 17:25:21] Production.INFO: ProcessCDR(1,14761007,1,1,2) [2025-03-25 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761007', 'tblTempUsageDetail_20' ) start [2025-03-25 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761007', 'tblTempUsageDetail_20' ) end [2025-03-25 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:25:24] Production.INFO: ==5165== Releasing lock... [2025-03-25 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:25:24] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:26:06 [end_date_ymd] => 2025-03-25 17:26:06 [RateCDR] => 1 ) [2025-03-25 17:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:26:06' and `end` < '2025-03-25 17:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:26:19] Production.INFO: count ==5363 [2025-03-25 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:26:06 - End Time 2025-03-25 17:26:06 [2025-03-25 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761012', 'tblTempUsageDetail_20' ) start [2025-03-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761012', 'tblTempUsageDetail_20' ) end [2025-03-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761012', 'tblTempVendorCDR_20' ) start [2025-03-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761012', 'tblTempVendorCDR_20' ) end [2025-03-25 17:26:22] Production.INFO: ProcessCDR(1,14761012,1,1,2) [2025-03-25 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761012', 'tblTempUsageDetail_20' ) start [2025-03-25 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761012', 'tblTempUsageDetail_20' ) end [2025-03-25 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:26:26] Production.INFO: ==5242== Releasing lock... [2025-03-25 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:26:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:27:05 [end_date_ymd] => 2025-03-25 17:27:05 [RateCDR] => 1 ) [2025-03-25 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:27:05' and `end` < '2025-03-25 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:27:18] Production.INFO: count ==5368 [2025-03-25 17:27:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:27:05 - End Time 2025-03-25 17:27:05 [2025-03-25 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761017', 'tblTempUsageDetail_20' ) start [2025-03-25 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761017', 'tblTempUsageDetail_20' ) end [2025-03-25 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761017', 'tblTempVendorCDR_20' ) start [2025-03-25 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761017', 'tblTempVendorCDR_20' ) end [2025-03-25 17:27:21] Production.INFO: ProcessCDR(1,14761017,1,1,2) [2025-03-25 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761017', 'tblTempUsageDetail_20' ) start [2025-03-25 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761017', 'tblTempUsageDetail_20' ) end [2025-03-25 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:27:25] Production.INFO: ==5314== Releasing lock... [2025-03-25 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:27:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:28:05 [end_date_ymd] => 2025-03-25 17:28:05 [RateCDR] => 1 ) [2025-03-25 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:28:05' and `end` < '2025-03-25 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:28:19] Production.INFO: count ==5363 [2025-03-25 17:28:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:28:05 - End Time 2025-03-25 17:28:05 [2025-03-25 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761022', 'tblTempUsageDetail_20' ) start [2025-03-25 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761022', 'tblTempUsageDetail_20' ) end [2025-03-25 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761022', 'tblTempVendorCDR_20' ) start [2025-03-25 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761022', 'tblTempVendorCDR_20' ) end [2025-03-25 17:28:21] Production.INFO: ProcessCDR(1,14761022,1,1,2) [2025-03-25 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761022', 'tblTempUsageDetail_20' ) start [2025-03-25 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761022', 'tblTempUsageDetail_20' ) end [2025-03-25 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:28:26] Production.INFO: ==5393== Releasing lock... [2025-03-25 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:28:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:29:06 [end_date_ymd] => 2025-03-25 17:29:06 [RateCDR] => 1 ) [2025-03-25 17: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-03-25 14:29:06' and `end` < '2025-03-25 17: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-03-25 17:29:19] Production.INFO: count ==5346 [2025-03-25 17:29:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:29:06 - End Time 2025-03-25 17:29:06 [2025-03-25 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761027', 'tblTempUsageDetail_20' ) start [2025-03-25 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761027', 'tblTempUsageDetail_20' ) end [2025-03-25 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761027', 'tblTempVendorCDR_20' ) start [2025-03-25 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761027', 'tblTempVendorCDR_20' ) end [2025-03-25 17:29:21] Production.INFO: ProcessCDR(1,14761027,1,1,2) [2025-03-25 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761027', 'tblTempUsageDetail_20' ) start [2025-03-25 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761027', 'tblTempUsageDetail_20' ) end [2025-03-25 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:29:27] Production.INFO: ==5471== Releasing lock... [2025-03-25 17:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:29:27] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:30:06 [end_date_ymd] => 2025-03-25 17:30:06 [RateCDR] => 1 ) [2025-03-25 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:30:06' and `end` < '2025-03-25 17: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-03-25 17:30:20] Production.INFO: count ==5367 [2025-03-25 17:30:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:30:06 - End Time 2025-03-25 17:30:06 [2025-03-25 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761032', 'tblTempUsageDetail_20' ) start [2025-03-25 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761032', 'tblTempUsageDetail_20' ) end [2025-03-25 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761032', 'tblTempVendorCDR_20' ) start [2025-03-25 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761032', 'tblTempVendorCDR_20' ) end [2025-03-25 17:30:22] Production.INFO: ProcessCDR(1,14761032,1,1,2) [2025-03-25 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761032', 'tblTempUsageDetail_20' ) start [2025-03-25 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761032', 'tblTempUsageDetail_20' ) end [2025-03-25 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:30:27] Production.INFO: ==5553== Releasing lock... [2025-03-25 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:30:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:31:05 [end_date_ymd] => 2025-03-25 17:31:05 [RateCDR] => 1 ) [2025-03-25 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:31:05' and `end` < '2025-03-25 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:31:19] Production.INFO: count ==5367 [2025-03-25 17:31:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:31:05 - End Time 2025-03-25 17:31:05 [2025-03-25 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761038', 'tblTempUsageDetail_20' ) start [2025-03-25 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761038', 'tblTempUsageDetail_20' ) end [2025-03-25 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761038', 'tblTempVendorCDR_20' ) start [2025-03-25 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761038', 'tblTempVendorCDR_20' ) end [2025-03-25 17:31:21] Production.INFO: ProcessCDR(1,14761038,1,1,2) [2025-03-25 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761038', 'tblTempUsageDetail_20' ) start [2025-03-25 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761038', 'tblTempUsageDetail_20' ) end [2025-03-25 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:31:26] Production.INFO: ==5626== Releasing lock... [2025-03-25 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:31:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:32:06 [end_date_ymd] => 2025-03-25 17:32:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:32:06' and `end` < '2025-03-25 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-03-25 17:32:19] Production.INFO: count ==5388 [2025-03-25 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:32:06 - End Time 2025-03-25 17:32:06 [2025-03-25 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761043', 'tblTempUsageDetail_20' ) start [2025-03-25 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761043', 'tblTempUsageDetail_20' ) end [2025-03-25 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761043', 'tblTempVendorCDR_20' ) start [2025-03-25 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761043', 'tblTempVendorCDR_20' ) end [2025-03-25 17:32:21] Production.INFO: ProcessCDR(1,14761043,1,1,2) [2025-03-25 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761043', 'tblTempUsageDetail_20' ) start [2025-03-25 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761043', 'tblTempUsageDetail_20' ) end [2025-03-25 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:32:26] Production.INFO: ==5739== Releasing lock... [2025-03-25 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:32:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:33:05 [end_date_ymd] => 2025-03-25 17:33:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:33:05' and `end` < '2025-03-25 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-03-25 17:33:19] Production.INFO: count ==5395 [2025-03-25 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:33:05 - End Time 2025-03-25 17:33:05 [2025-03-25 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761048', 'tblTempUsageDetail_20' ) start [2025-03-25 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761048', 'tblTempUsageDetail_20' ) end [2025-03-25 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761048', 'tblTempVendorCDR_20' ) start [2025-03-25 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761048', 'tblTempVendorCDR_20' ) end [2025-03-25 17:33:21] Production.INFO: ProcessCDR(1,14761048,1,1,2) [2025-03-25 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761048', 'tblTempUsageDetail_20' ) start [2025-03-25 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761048', 'tblTempUsageDetail_20' ) end [2025-03-25 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:33:24] Production.INFO: ==5814== Releasing lock... [2025-03-25 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:33:24] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:34:06 [end_date_ymd] => 2025-03-25 17:34:06 [RateCDR] => 1 ) [2025-03-25 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:34:06' and `end` < '2025-03-25 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:34:19] Production.INFO: count ==5363 [2025-03-25 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:34:06 - End Time 2025-03-25 17:34:06 [2025-03-25 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761053', 'tblTempUsageDetail_20' ) start [2025-03-25 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761053', 'tblTempUsageDetail_20' ) end [2025-03-25 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761053', 'tblTempVendorCDR_20' ) start [2025-03-25 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761053', 'tblTempVendorCDR_20' ) end [2025-03-25 17:34:22] Production.INFO: ProcessCDR(1,14761053,1,1,2) [2025-03-25 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761053', 'tblTempUsageDetail_20' ) start [2025-03-25 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761053', 'tblTempUsageDetail_20' ) end [2025-03-25 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:34:27] Production.INFO: ==5888== Releasing lock... [2025-03-25 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:34:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:35:05 [end_date_ymd] => 2025-03-25 17:35:05 [RateCDR] => 1 ) [2025-03-25 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:35:05' and `end` < '2025-03-25 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:35:18] Production.INFO: count ==5336 [2025-03-25 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:35:05 - End Time 2025-03-25 17:35:05 [2025-03-25 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761058', 'tblTempUsageDetail_20' ) start [2025-03-25 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761058', 'tblTempUsageDetail_20' ) end [2025-03-25 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761058', 'tblTempVendorCDR_20' ) start [2025-03-25 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761058', 'tblTempVendorCDR_20' ) end [2025-03-25 17:35:21] Production.INFO: ProcessCDR(1,14761058,1,1,2) [2025-03-25 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761058', 'tblTempUsageDetail_20' ) start [2025-03-25 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761058', 'tblTempUsageDetail_20' ) end [2025-03-25 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:35:25] Production.INFO: ==5961== Releasing lock... [2025-03-25 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:35:25] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:36:06 [end_date_ymd] => 2025-03-25 17:36:06 [RateCDR] => 1 ) [2025-03-25 17:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:36:06' and `end` < '2025-03-25 17:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:36:19] Production.INFO: count ==5341 [2025-03-25 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:36:06 - End Time 2025-03-25 17:36:06 [2025-03-25 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761063', 'tblTempUsageDetail_20' ) start [2025-03-25 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761063', 'tblTempUsageDetail_20' ) end [2025-03-25 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761063', 'tblTempVendorCDR_20' ) start [2025-03-25 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761063', 'tblTempVendorCDR_20' ) end [2025-03-25 17:36:21] Production.INFO: ProcessCDR(1,14761063,1,1,2) [2025-03-25 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761063', 'tblTempUsageDetail_20' ) start [2025-03-25 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761063', 'tblTempUsageDetail_20' ) end [2025-03-25 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:36:26] Production.INFO: ==6042== Releasing lock... [2025-03-25 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:36:26] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:37:05 [end_date_ymd] => 2025-03-25 17:37:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:37:05' and `end` < '2025-03-25 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-03-25 17:37:18] Production.INFO: count ==5348 [2025-03-25 17:37:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:37:05 - End Time 2025-03-25 17:37:05 [2025-03-25 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761068', 'tblTempUsageDetail_20' ) start [2025-03-25 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761068', 'tblTempUsageDetail_20' ) end [2025-03-25 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761068', 'tblTempVendorCDR_20' ) start [2025-03-25 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761068', 'tblTempVendorCDR_20' ) end [2025-03-25 17:37:20] Production.INFO: ProcessCDR(1,14761068,1,1,2) [2025-03-25 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761068', 'tblTempUsageDetail_20' ) start [2025-03-25 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761068', 'tblTempUsageDetail_20' ) end [2025-03-25 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:37:25] Production.INFO: ==6124== Releasing lock... [2025-03-25 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:37:25] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:38:05 [end_date_ymd] => 2025-03-25 17:38:05 [RateCDR] => 1 ) [2025-03-25 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:38:05' and `end` < '2025-03-25 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:38:19] Production.INFO: count ==5353 [2025-03-25 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:38:05 - End Time 2025-03-25 17:38:05 [2025-03-25 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761073', 'tblTempUsageDetail_20' ) start [2025-03-25 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761073', 'tblTempUsageDetail_20' ) end [2025-03-25 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761073', 'tblTempVendorCDR_20' ) start [2025-03-25 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761073', 'tblTempVendorCDR_20' ) end [2025-03-25 17:38:21] Production.INFO: ProcessCDR(1,14761073,1,1,2) [2025-03-25 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761073', 'tblTempUsageDetail_20' ) start [2025-03-25 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761073', 'tblTempUsageDetail_20' ) end [2025-03-25 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:38:26] Production.INFO: ==6199== Releasing lock... [2025-03-25 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:38:26] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:39:05 [end_date_ymd] => 2025-03-25 17:39:05 [RateCDR] => 1 ) [2025-03-25 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:39:05' and `end` < '2025-03-25 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:39:18] Production.INFO: count ==5374 [2025-03-25 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:39:05 - End Time 2025-03-25 17:39:05 [2025-03-25 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761078', 'tblTempUsageDetail_20' ) start [2025-03-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761078', 'tblTempUsageDetail_20' ) end [2025-03-25 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761078', 'tblTempVendorCDR_20' ) start [2025-03-25 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761078', 'tblTempVendorCDR_20' ) end [2025-03-25 17:39:21] Production.INFO: ProcessCDR(1,14761078,1,1,2) [2025-03-25 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761078', 'tblTempUsageDetail_20' ) start [2025-03-25 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761078', 'tblTempUsageDetail_20' ) end [2025-03-25 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:39:26] Production.INFO: ==6280== Releasing lock... [2025-03-25 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:39:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-25 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:40:06 [end_date_ymd] => 2025-03-25 17:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:40:06' and `end` < '2025-03-25 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-03-25 17:40:20] Production.INFO: count ==5363 [2025-03-25 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:40:06 - End Time 2025-03-25 17:40:06 [2025-03-25 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761083', 'tblTempUsageDetail_20' ) start [2025-03-25 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761083', 'tblTempUsageDetail_20' ) end [2025-03-25 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761083', 'tblTempVendorCDR_20' ) start [2025-03-25 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761083', 'tblTempVendorCDR_20' ) end [2025-03-25 17:40:22] Production.INFO: ProcessCDR(1,14761083,1,1,2) [2025-03-25 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761083', 'tblTempUsageDetail_20' ) start [2025-03-25 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761083', 'tblTempUsageDetail_20' ) end [2025-03-25 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:40:27] Production.INFO: ==6362== Releasing lock... [2025-03-25 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:40:27] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:41:05 [end_date_ymd] => 2025-03-25 17:41:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:41:05' and `end` < '2025-03-25 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-03-25 17:41:19] Production.INFO: count ==5337 [2025-03-25 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:41:05 - End Time 2025-03-25 17:41:05 [2025-03-25 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761089', 'tblTempUsageDetail_20' ) start [2025-03-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761089', 'tblTempUsageDetail_20' ) end [2025-03-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761089', 'tblTempVendorCDR_20' ) start [2025-03-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761089', 'tblTempVendorCDR_20' ) end [2025-03-25 17:41:21] Production.INFO: ProcessCDR(1,14761089,1,1,2) [2025-03-25 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761089', 'tblTempUsageDetail_20' ) start [2025-03-25 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761089', 'tblTempUsageDetail_20' ) end [2025-03-25 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:41:26] Production.INFO: ==6442== Releasing lock... [2025-03-25 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:41:26] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:42:05 [end_date_ymd] => 2025-03-25 17:42:05 [RateCDR] => 1 ) [2025-03-25 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:42:05' and `end` < '2025-03-25 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:42:19] Production.INFO: count ==5349 [2025-03-25 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:42:05 - End Time 2025-03-25 17:42:05 [2025-03-25 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761094', 'tblTempUsageDetail_20' ) start [2025-03-25 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761094', 'tblTempUsageDetail_20' ) end [2025-03-25 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761094', 'tblTempVendorCDR_20' ) start [2025-03-25 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761094', 'tblTempVendorCDR_20' ) end [2025-03-25 17:42:21] Production.INFO: ProcessCDR(1,14761094,1,1,2) [2025-03-25 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761094', 'tblTempUsageDetail_20' ) start [2025-03-25 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761094', 'tblTempUsageDetail_20' ) end [2025-03-25 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:42:26] Production.INFO: ==6519== Releasing lock... [2025-03-25 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:42:26] Production.INFO: 68 MB #Memory Used# [2025-03-25 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:43:05 [end_date_ymd] => 2025-03-25 17:43:05 [RateCDR] => 1 ) [2025-03-25 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:43:05' and `end` < '2025-03-25 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:43:19] Production.INFO: count ==5328 [2025-03-25 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:43:05 - End Time 2025-03-25 17:43:05 [2025-03-25 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761099', 'tblTempUsageDetail_20' ) start [2025-03-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761099', 'tblTempUsageDetail_20' ) end [2025-03-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761099', 'tblTempVendorCDR_20' ) start [2025-03-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761099', 'tblTempVendorCDR_20' ) end [2025-03-25 17:43:21] Production.INFO: ProcessCDR(1,14761099,1,1,2) [2025-03-25 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761099', 'tblTempUsageDetail_20' ) start [2025-03-25 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761099', 'tblTempUsageDetail_20' ) end [2025-03-25 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:43:26] Production.INFO: ==6596== Releasing lock... [2025-03-25 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:43:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:44:05 [end_date_ymd] => 2025-03-25 17:44:05 [RateCDR] => 1 ) [2025-03-25 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:44:05' and `end` < '2025-03-25 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:44:19] Production.INFO: count ==5316 [2025-03-25 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:44:05 - End Time 2025-03-25 17:44:05 [2025-03-25 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761104', 'tblTempUsageDetail_20' ) start [2025-03-25 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761104', 'tblTempUsageDetail_20' ) end [2025-03-25 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761104', 'tblTempVendorCDR_20' ) start [2025-03-25 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761104', 'tblTempVendorCDR_20' ) end [2025-03-25 17:44:21] Production.INFO: ProcessCDR(1,14761104,1,1,2) [2025-03-25 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761104', 'tblTempUsageDetail_20' ) start [2025-03-25 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761104', 'tblTempUsageDetail_20' ) end [2025-03-25 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:44:26] Production.INFO: ==6668== Releasing lock... [2025-03-25 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:44:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:45:06 [end_date_ymd] => 2025-03-25 17:45:06 [RateCDR] => 1 ) [2025-03-25 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:45:06' and `end` < '2025-03-25 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:45:19] Production.INFO: count ==5306 [2025-03-25 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:45:06 - End Time 2025-03-25 17:45:06 [2025-03-25 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761109', 'tblTempUsageDetail_20' ) start [2025-03-25 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761109', 'tblTempUsageDetail_20' ) end [2025-03-25 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761109', 'tblTempVendorCDR_20' ) start [2025-03-25 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761109', 'tblTempVendorCDR_20' ) end [2025-03-25 17:45:21] Production.INFO: ProcessCDR(1,14761109,1,1,2) [2025-03-25 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761109', 'tblTempUsageDetail_20' ) start [2025-03-25 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761109', 'tblTempUsageDetail_20' ) end [2025-03-25 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:45:25] Production.INFO: ==6743== Releasing lock... [2025-03-25 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:45:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:46:05 [end_date_ymd] => 2025-03-25 17:46:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:46:05' and `end` < '2025-03-25 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-03-25 17:46:19] Production.INFO: count ==5310 [2025-03-25 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:46:05 - End Time 2025-03-25 17:46:05 [2025-03-25 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761114', 'tblTempUsageDetail_20' ) start [2025-03-25 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761114', 'tblTempUsageDetail_20' ) end [2025-03-25 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761114', 'tblTempVendorCDR_20' ) start [2025-03-25 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761114', 'tblTempVendorCDR_20' ) end [2025-03-25 17:46:21] Production.INFO: ProcessCDR(1,14761114,1,1,2) [2025-03-25 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761114', 'tblTempUsageDetail_20' ) start [2025-03-25 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761114', 'tblTempUsageDetail_20' ) end [2025-03-25 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:46:26] Production.INFO: ==6819== Releasing lock... [2025-03-25 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:46:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:47:06 [end_date_ymd] => 2025-03-25 17:47:06 [RateCDR] => 1 ) [2025-03-25 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:47:06' and `end` < '2025-03-25 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:47:19] Production.INFO: count ==5307 [2025-03-25 17:47:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:47:06 - End Time 2025-03-25 17:47:06 [2025-03-25 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761119', 'tblTempUsageDetail_20' ) start [2025-03-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761119', 'tblTempUsageDetail_20' ) end [2025-03-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761119', 'tblTempVendorCDR_20' ) start [2025-03-25 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761119', 'tblTempVendorCDR_20' ) end [2025-03-25 17:47:22] Production.INFO: ProcessCDR(1,14761119,1,1,2) [2025-03-25 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761119', 'tblTempUsageDetail_20' ) start [2025-03-25 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761119', 'tblTempUsageDetail_20' ) end [2025-03-25 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:47:27] Production.INFO: ==6933== Releasing lock... [2025-03-25 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:47:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:48:05 [end_date_ymd] => 2025-03-25 17:48:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 14:48:05' and `end` < '2025-03-25 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-03-25 17:48:18] Production.INFO: count ==5307 [2025-03-25 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:48:05 - End Time 2025-03-25 17:48:05 [2025-03-25 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761124', 'tblTempUsageDetail_20' ) start [2025-03-25 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761124', 'tblTempUsageDetail_20' ) end [2025-03-25 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761124', 'tblTempVendorCDR_20' ) start [2025-03-25 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761124', 'tblTempVendorCDR_20' ) end [2025-03-25 17:48:20] Production.INFO: ProcessCDR(1,14761124,1,1,2) [2025-03-25 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761124', 'tblTempUsageDetail_20' ) start [2025-03-25 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761124', 'tblTempUsageDetail_20' ) end [2025-03-25 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:48:26] Production.INFO: ==7006== Releasing lock... [2025-03-25 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:48:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-25 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:49:05 [end_date_ymd] => 2025-03-25 17:49:05 [RateCDR] => 1 ) [2025-03-25 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:49:05' and `end` < '2025-03-25 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:49:19] Production.INFO: count ==5291 [2025-03-25 17:49:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:49:05 - End Time 2025-03-25 17:49:05 [2025-03-25 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761129', 'tblTempUsageDetail_20' ) start [2025-03-25 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761129', 'tblTempUsageDetail_20' ) end [2025-03-25 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761129', 'tblTempVendorCDR_20' ) start [2025-03-25 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761129', 'tblTempVendorCDR_20' ) end [2025-03-25 17:49:21] Production.INFO: ProcessCDR(1,14761129,1,1,2) [2025-03-25 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761129', 'tblTempUsageDetail_20' ) start [2025-03-25 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761129', 'tblTempUsageDetail_20' ) end [2025-03-25 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:49:26] Production.INFO: ==7083== Releasing lock... [2025-03-25 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:49:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-25 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:50:06 [end_date_ymd] => 2025-03-25 17:50:06 [RateCDR] => 1 ) [2025-03-25 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:50:06' and `end` < '2025-03-25 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:50:20] Production.INFO: count ==5284 [2025-03-25 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-25 14:50:06 - End Time 2025-03-25 17:50:06 [2025-03-25 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761135', 'tblTempUsageDetail_20' ) start [2025-03-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761135', 'tblTempUsageDetail_20' ) end [2025-03-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761135', 'tblTempVendorCDR_20' ) start [2025-03-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761135', 'tblTempVendorCDR_20' ) end [2025-03-25 17:50:22] Production.INFO: ProcessCDR(1,14761135,1,1,2) [2025-03-25 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761135', 'tblTempUsageDetail_20' ) start [2025-03-25 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761135', 'tblTempUsageDetail_20' ) end [2025-03-25 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:50:27] Production.INFO: ==7157== Releasing lock... [2025-03-25 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:50:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-25 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:51:05 [end_date_ymd] => 2025-03-25 17:51:05 [RateCDR] => 1 ) [2025-03-25 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:51:05' and `end` < '2025-03-25 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:51:19] Production.INFO: count ==5287 [2025-03-25 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:51:05 - End Time 2025-03-25 17:51:05 [2025-03-25 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761140', 'tblTempUsageDetail_20' ) start [2025-03-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761140', 'tblTempUsageDetail_20' ) end [2025-03-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761140', 'tblTempVendorCDR_20' ) start [2025-03-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761140', 'tblTempVendorCDR_20' ) end [2025-03-25 17:51:21] Production.INFO: ProcessCDR(1,14761140,1,1,2) [2025-03-25 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761140', 'tblTempUsageDetail_20' ) start [2025-03-25 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761140', 'tblTempUsageDetail_20' ) end [2025-03-25 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:51:26] Production.INFO: ==7233== Releasing lock... [2025-03-25 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:51:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-25 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:52:06 [end_date_ymd] => 2025-03-25 17:52:06 [RateCDR] => 1 ) [2025-03-25 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:52:06' and `end` < '2025-03-25 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:52:19] Production.INFO: count ==5273 [2025-03-25 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:52:06 - End Time 2025-03-25 17:52:06 [2025-03-25 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761145', 'tblTempUsageDetail_20' ) start [2025-03-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761145', 'tblTempUsageDetail_20' ) end [2025-03-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761145', 'tblTempVendorCDR_20' ) start [2025-03-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761145', 'tblTempVendorCDR_20' ) end [2025-03-25 17:52:21] Production.INFO: ProcessCDR(1,14761145,1,1,2) [2025-03-25 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761145', 'tblTempUsageDetail_20' ) start [2025-03-25 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761145', 'tblTempUsageDetail_20' ) end [2025-03-25 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:52:27] Production.INFO: ==7311== Releasing lock... [2025-03-25 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:52:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-25 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:53:05 [end_date_ymd] => 2025-03-25 17:53:05 [RateCDR] => 1 ) [2025-03-25 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:53:05' and `end` < '2025-03-25 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:53:18] Production.INFO: count ==5220 [2025-03-25 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:53:05 - End Time 2025-03-25 17:53:05 [2025-03-25 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761150', 'tblTempUsageDetail_20' ) start [2025-03-25 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761150', 'tblTempUsageDetail_20' ) end [2025-03-25 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761150', 'tblTempVendorCDR_20' ) start [2025-03-25 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761150', 'tblTempVendorCDR_20' ) end [2025-03-25 17:53:21] Production.INFO: ProcessCDR(1,14761150,1,1,2) [2025-03-25 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761150', 'tblTempUsageDetail_20' ) start [2025-03-25 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761150', 'tblTempUsageDetail_20' ) end [2025-03-25 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:53:26] Production.INFO: ==7383== Releasing lock... [2025-03-25 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:53:26] Production.INFO: 67 MB #Memory Used# [2025-03-25 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:54:06 [end_date_ymd] => 2025-03-25 17:54:06 [RateCDR] => 1 ) [2025-03-25 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:54:06' and `end` < '2025-03-25 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:54:19] Production.INFO: count ==5243 [2025-03-25 17:54:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:54:06 - End Time 2025-03-25 17:54:06 [2025-03-25 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761155', 'tblTempUsageDetail_20' ) start [2025-03-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761155', 'tblTempUsageDetail_20' ) end [2025-03-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761155', 'tblTempVendorCDR_20' ) start [2025-03-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761155', 'tblTempVendorCDR_20' ) end [2025-03-25 17:54:21] Production.INFO: ProcessCDR(1,14761155,1,1,2) [2025-03-25 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761155', 'tblTempUsageDetail_20' ) start [2025-03-25 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761155', 'tblTempUsageDetail_20' ) end [2025-03-25 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:54:26] Production.INFO: ==7459== Releasing lock... [2025-03-25 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:54:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-25 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:55:05 [end_date_ymd] => 2025-03-25 17:55:05 [RateCDR] => 1 ) [2025-03-25 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:55:05' and `end` < '2025-03-25 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:55:18] Production.INFO: count ==5228 [2025-03-25 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:55:05 - End Time 2025-03-25 17:55:05 [2025-03-25 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761160', 'tblTempUsageDetail_20' ) start [2025-03-25 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761160', 'tblTempUsageDetail_20' ) end [2025-03-25 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761160', 'tblTempVendorCDR_20' ) start [2025-03-25 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761160', 'tblTempVendorCDR_20' ) end [2025-03-25 17:55:21] Production.INFO: ProcessCDR(1,14761160,1,1,2) [2025-03-25 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761160', 'tblTempUsageDetail_20' ) start [2025-03-25 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761160', 'tblTempUsageDetail_20' ) end [2025-03-25 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:55:24] Production.INFO: ==7532== Releasing lock... [2025-03-25 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:55:24] Production.INFO: 67 MB #Memory Used# [2025-03-25 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:56:06 [end_date_ymd] => 2025-03-25 17:56:06 [RateCDR] => 1 ) [2025-03-25 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:56:06' and `end` < '2025-03-25 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:56:19] Production.INFO: count ==5229 [2025-03-25 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:56:06 - End Time 2025-03-25 17:56:06 [2025-03-25 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761165', 'tblTempUsageDetail_20' ) start [2025-03-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761165', 'tblTempUsageDetail_20' ) end [2025-03-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761165', 'tblTempVendorCDR_20' ) start [2025-03-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761165', 'tblTempVendorCDR_20' ) end [2025-03-25 17:56:21] Production.INFO: ProcessCDR(1,14761165,1,1,2) [2025-03-25 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761165', 'tblTempUsageDetail_20' ) start [2025-03-25 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761165', 'tblTempUsageDetail_20' ) end [2025-03-25 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:56:25] Production.INFO: ==7613== Releasing lock... [2025-03-25 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:56:25] Production.INFO: 67 MB #Memory Used# [2025-03-25 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:57:05 [end_date_ymd] => 2025-03-25 17:57:05 [RateCDR] => 1 ) [2025-03-25 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:57:05' and `end` < '2025-03-25 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:57:18] Production.INFO: count ==5191 [2025-03-25 17:57:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:57:05 - End Time 2025-03-25 17:57:05 [2025-03-25 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761170', 'tblTempUsageDetail_20' ) start [2025-03-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761170', 'tblTempUsageDetail_20' ) end [2025-03-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761170', 'tblTempVendorCDR_20' ) start [2025-03-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761170', 'tblTempVendorCDR_20' ) end [2025-03-25 17:57:21] Production.INFO: ProcessCDR(1,14761170,1,1,2) [2025-03-25 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761170', 'tblTempUsageDetail_20' ) start [2025-03-25 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761170', 'tblTempUsageDetail_20' ) end [2025-03-25 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:57:26] Production.INFO: ==7690== Releasing lock... [2025-03-25 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:57:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-25 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:58:05 [end_date_ymd] => 2025-03-25 17:58:05 [RateCDR] => 1 ) [2025-03-25 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:58:05' and `end` < '2025-03-25 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:58:19] Production.INFO: count ==5197 [2025-03-25 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-25 14:58:05 - End Time 2025-03-25 17:58:05 [2025-03-25 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761175', 'tblTempUsageDetail_20' ) start [2025-03-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761175', 'tblTempUsageDetail_20' ) end [2025-03-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761175', 'tblTempVendorCDR_20' ) start [2025-03-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761175', 'tblTempVendorCDR_20' ) end [2025-03-25 17:58:21] Production.INFO: ProcessCDR(1,14761175,1,1,2) [2025-03-25 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761175', 'tblTempUsageDetail_20' ) start [2025-03-25 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761175', 'tblTempUsageDetail_20' ) end [2025-03-25 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:58:26] Production.INFO: ==7765== Releasing lock... [2025-03-25 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:58:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-25 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 14:59:05 [end_date_ymd] => 2025-03-25 17:59:05 [RateCDR] => 1 ) [2025-03-25 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 14:59:05' and `end` < '2025-03-25 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 17:59:18] Production.INFO: count ==5163 [2025-03-25 17:59:20] Production.ERROR: pbx CDR StartTime 2025-03-25 14:59:05 - End Time 2025-03-25 17:59:05 [2025-03-25 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761180', 'tblTempUsageDetail_20' ) start [2025-03-25 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761180', 'tblTempUsageDetail_20' ) end [2025-03-25 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761180', 'tblTempVendorCDR_20' ) start [2025-03-25 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761180', 'tblTempVendorCDR_20' ) end [2025-03-25 17:59:21] Production.INFO: ProcessCDR(1,14761180,1,1,2) [2025-03-25 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761180', 'tblTempUsageDetail_20' ) start [2025-03-25 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761180', 'tblTempUsageDetail_20' ) end [2025-03-25 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 17:59:24] Production.INFO: ==7837== Releasing lock... [2025-03-25 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 17:59:24] Production.INFO: 66.5 MB #Memory Used# [2025-03-25 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:00:06 [end_date_ymd] => 2025-03-25 18:00:06 [RateCDR] => 1 ) [2025-03-25 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:00:06' and `end` < '2025-03-25 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-03-25 18:00:20] Production.INFO: count ==5154 [2025-03-25 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-25 15:00:06 - End Time 2025-03-25 18:00:06 [2025-03-25 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761186', 'tblTempUsageDetail_20' ) start [2025-03-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761186', 'tblTempUsageDetail_20' ) end [2025-03-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761186', 'tblTempVendorCDR_20' ) start [2025-03-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761186', 'tblTempVendorCDR_20' ) end [2025-03-25 18:00:22] Production.INFO: ProcessCDR(1,14761186,1,1,2) [2025-03-25 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761186', 'tblTempUsageDetail_20' ) start [2025-03-25 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761186', 'tblTempUsageDetail_20' ) end [2025-03-25 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:00:26] Production.INFO: ==7913== Releasing lock... [2025-03-25 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:00:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-25 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:01:05 [end_date_ymd] => 2025-03-25 18:01:05 [RateCDR] => 1 ) [2025-03-25 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:01:05' and `end` < '2025-03-25 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:01:19] Production.INFO: count ==5080 [2025-03-25 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:01:05 - End Time 2025-03-25 18:01:05 [2025-03-25 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761191', 'tblTempUsageDetail_20' ) start [2025-03-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761191', 'tblTempUsageDetail_20' ) end [2025-03-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761191', 'tblTempVendorCDR_20' ) start [2025-03-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761191', 'tblTempVendorCDR_20' ) end [2025-03-25 18:01:21] Production.INFO: ProcessCDR(1,14761191,1,1,2) [2025-03-25 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761191', 'tblTempUsageDetail_20' ) start [2025-03-25 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761191', 'tblTempUsageDetail_20' ) end [2025-03-25 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:01:24] Production.INFO: ==8001== Releasing lock... [2025-03-25 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:01:24] Production.INFO: 66 MB #Memory Used# [2025-03-25 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:02:06 [end_date_ymd] => 2025-03-25 18:02:06 [RateCDR] => 1 ) [2025-03-25 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:02:06' and `end` < '2025-03-25 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:02:19] Production.INFO: count ==5072 [2025-03-25 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:02:06 - End Time 2025-03-25 18:02:06 [2025-03-25 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761196', 'tblTempUsageDetail_20' ) start [2025-03-25 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761196', 'tblTempUsageDetail_20' ) end [2025-03-25 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761196', 'tblTempVendorCDR_20' ) start [2025-03-25 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761196', 'tblTempVendorCDR_20' ) end [2025-03-25 18:02:22] Production.INFO: ProcessCDR(1,14761196,1,1,2) [2025-03-25 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761196', 'tblTempUsageDetail_20' ) start [2025-03-25 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761196', 'tblTempUsageDetail_20' ) end [2025-03-25 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:02:27] Production.INFO: ==8075== Releasing lock... [2025-03-25 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:02:27] Production.INFO: 66 MB #Memory Used# [2025-03-25 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:03:05 [end_date_ymd] => 2025-03-25 18:03:05 [RateCDR] => 1 ) [2025-03-25 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:03:05' and `end` < '2025-03-25 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:03:18] Production.INFO: count ==5061 [2025-03-25 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:03:05 - End Time 2025-03-25 18:03:05 [2025-03-25 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761201', 'tblTempUsageDetail_20' ) start [2025-03-25 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761201', 'tblTempUsageDetail_20' ) end [2025-03-25 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761201', 'tblTempVendorCDR_20' ) start [2025-03-25 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761201', 'tblTempVendorCDR_20' ) end [2025-03-25 18:03:21] Production.INFO: ProcessCDR(1,14761201,1,1,2) [2025-03-25 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761201', 'tblTempUsageDetail_20' ) start [2025-03-25 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761201', 'tblTempUsageDetail_20' ) end [2025-03-25 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:03:26] Production.INFO: ==8186== Releasing lock... [2025-03-25 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:03:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:04:06 [end_date_ymd] => 2025-03-25 18:04:06 [RateCDR] => 1 ) [2025-03-25 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:04:06' and `end` < '2025-03-25 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:04:19] Production.INFO: count ==5044 [2025-03-25 18:04:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:04:06 - End Time 2025-03-25 18:04:06 [2025-03-25 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761206', 'tblTempUsageDetail_20' ) start [2025-03-25 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761206', 'tblTempUsageDetail_20' ) end [2025-03-25 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761206', 'tblTempVendorCDR_20' ) start [2025-03-25 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761206', 'tblTempVendorCDR_20' ) end [2025-03-25 18:04:22] Production.INFO: ProcessCDR(1,14761206,1,1,2) [2025-03-25 18:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761206', 'tblTempUsageDetail_20' ) start [2025-03-25 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761206', 'tblTempUsageDetail_20' ) end [2025-03-25 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:04:27] Production.INFO: ==8261== Releasing lock... [2025-03-25 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:04:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:05:05 [end_date_ymd] => 2025-03-25 18:05:05 [RateCDR] => 1 ) [2025-03-25 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:05:05' and `end` < '2025-03-25 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:05:19] Production.INFO: count ==5028 [2025-03-25 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:05:05 - End Time 2025-03-25 18:05:05 [2025-03-25 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761211', 'tblTempUsageDetail_20' ) start [2025-03-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761211', 'tblTempUsageDetail_20' ) end [2025-03-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761211', 'tblTempVendorCDR_20' ) start [2025-03-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761211', 'tblTempVendorCDR_20' ) end [2025-03-25 18:05:21] Production.INFO: ProcessCDR(1,14761211,1,1,2) [2025-03-25 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761211', 'tblTempUsageDetail_20' ) start [2025-03-25 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761211', 'tblTempUsageDetail_20' ) end [2025-03-25 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:05:26] Production.INFO: ==8335== Releasing lock... [2025-03-25 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:05:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-25 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:06:06 [end_date_ymd] => 2025-03-25 18:06:06 [RateCDR] => 1 ) [2025-03-25 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:06:06' and `end` < '2025-03-25 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:06:19] Production.INFO: count ==5029 [2025-03-25 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:06:06 - End Time 2025-03-25 18:06:06 [2025-03-25 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761216', 'tblTempUsageDetail_20' ) start [2025-03-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761216', 'tblTempUsageDetail_20' ) end [2025-03-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761216', 'tblTempVendorCDR_20' ) start [2025-03-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761216', 'tblTempVendorCDR_20' ) end [2025-03-25 18:06:21] Production.INFO: ProcessCDR(1,14761216,1,1,2) [2025-03-25 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761216', 'tblTempUsageDetail_20' ) start [2025-03-25 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761216', 'tblTempUsageDetail_20' ) end [2025-03-25 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:06:24] Production.INFO: ==8408== Releasing lock... [2025-03-25 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:06:24] Production.INFO: 65.5 MB #Memory Used# [2025-03-25 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:07:05 [end_date_ymd] => 2025-03-25 18:07:05 [RateCDR] => 1 ) [2025-03-25 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:07:05' and `end` < '2025-03-25 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:07:19] Production.INFO: count ==5037 [2025-03-25 18:07:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:07:05 - End Time 2025-03-25 18:07:05 [2025-03-25 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761221', 'tblTempUsageDetail_20' ) start [2025-03-25 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761221', 'tblTempUsageDetail_20' ) end [2025-03-25 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761221', 'tblTempVendorCDR_20' ) start [2025-03-25 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761221', 'tblTempVendorCDR_20' ) end [2025-03-25 18:07:21] Production.INFO: ProcessCDR(1,14761221,1,1,2) [2025-03-25 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761221', 'tblTempUsageDetail_20' ) start [2025-03-25 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761221', 'tblTempUsageDetail_20' ) end [2025-03-25 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:07:24] Production.INFO: ==8480== Releasing lock... [2025-03-25 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:07:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:08:05 [end_date_ymd] => 2025-03-25 18:08:05 [RateCDR] => 1 ) [2025-03-25 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:08:05' and `end` < '2025-03-25 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:08:19] Production.INFO: count ==5056 [2025-03-25 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:08:05 - End Time 2025-03-25 18:08:05 [2025-03-25 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761226', 'tblTempUsageDetail_20' ) start [2025-03-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761226', 'tblTempUsageDetail_20' ) end [2025-03-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761226', 'tblTempVendorCDR_20' ) start [2025-03-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761226', 'tblTempVendorCDR_20' ) end [2025-03-25 18:08:21] Production.INFO: ProcessCDR(1,14761226,1,1,2) [2025-03-25 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761226', 'tblTempUsageDetail_20' ) start [2025-03-25 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761226', 'tblTempUsageDetail_20' ) end [2025-03-25 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:08:26] Production.INFO: ==8559== Releasing lock... [2025-03-25 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:08:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:09:05 [end_date_ymd] => 2025-03-25 18:09:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:09:05' and `end` < '2025-03-25 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-03-25 18:09:18] Production.INFO: count ==5044 [2025-03-25 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:09:05 - End Time 2025-03-25 18:09:05 [2025-03-25 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761231', 'tblTempUsageDetail_20' ) start [2025-03-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761231', 'tblTempUsageDetail_20' ) end [2025-03-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761231', 'tblTempVendorCDR_20' ) start [2025-03-25 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761231', 'tblTempVendorCDR_20' ) end [2025-03-25 18:09:20] Production.INFO: ProcessCDR(1,14761231,1,1,2) [2025-03-25 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761231', 'tblTempUsageDetail_20' ) start [2025-03-25 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761231', 'tblTempUsageDetail_20' ) end [2025-03-25 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:09:24] Production.INFO: ==8630== Releasing lock... [2025-03-25 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:09:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:10:07 [end_date_ymd] => 2025-03-25 18:10:07 [RateCDR] => 1 ) [2025-03-25 18:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:10:07' and `end` < '2025-03-25 18:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:10:20] Production.INFO: count ==5031 [2025-03-25 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-25 15:10:07 - End Time 2025-03-25 18:10:07 [2025-03-25 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761237', 'tblTempUsageDetail_20' ) start [2025-03-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761237', 'tblTempUsageDetail_20' ) end [2025-03-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761237', 'tblTempVendorCDR_20' ) start [2025-03-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761237', 'tblTempVendorCDR_20' ) end [2025-03-25 18:10:22] Production.INFO: ProcessCDR(1,14761237,1,1,2) [2025-03-25 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761237', 'tblTempUsageDetail_20' ) start [2025-03-25 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761237', 'tblTempUsageDetail_20' ) end [2025-03-25 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:10:27] Production.INFO: ==8705== Releasing lock... [2025-03-25 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:10:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-25 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:11:05 [end_date_ymd] => 2025-03-25 18:11:05 [RateCDR] => 1 ) [2025-03-25 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:11:05' and `end` < '2025-03-25 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:11:18] Production.INFO: count ==4956 [2025-03-25 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:11:05 - End Time 2025-03-25 18:11:05 [2025-03-25 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761242', 'tblTempUsageDetail_20' ) start [2025-03-25 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761242', 'tblTempUsageDetail_20' ) end [2025-03-25 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761242', 'tblTempVendorCDR_20' ) start [2025-03-25 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761242', 'tblTempVendorCDR_20' ) end [2025-03-25 18:11:20] Production.INFO: ProcessCDR(1,14761242,1,1,2) [2025-03-25 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761242', 'tblTempUsageDetail_20' ) start [2025-03-25 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761242', 'tblTempUsageDetail_20' ) end [2025-03-25 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:11:25] Production.INFO: ==8780== Releasing lock... [2025-03-25 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:11:25] Production.INFO: 65 MB #Memory Used# [2025-03-25 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:12:05 [end_date_ymd] => 2025-03-25 18:12:05 [RateCDR] => 1 ) [2025-03-25 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:12:05' and `end` < '2025-03-25 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:12:18] Production.INFO: count ==4943 [2025-03-25 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:12:05 - End Time 2025-03-25 18:12:05 [2025-03-25 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761247', 'tblTempUsageDetail_20' ) start [2025-03-25 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761247', 'tblTempUsageDetail_20' ) end [2025-03-25 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761247', 'tblTempVendorCDR_20' ) start [2025-03-25 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761247', 'tblTempVendorCDR_20' ) end [2025-03-25 18:12:20] Production.INFO: ProcessCDR(1,14761247,1,1,2) [2025-03-25 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761247', 'tblTempUsageDetail_20' ) start [2025-03-25 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761247', 'tblTempUsageDetail_20' ) end [2025-03-25 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:12:25] Production.INFO: ==8851== Releasing lock... [2025-03-25 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:12:25] Production.INFO: 65 MB #Memory Used# [2025-03-25 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:13:05 [end_date_ymd] => 2025-03-25 18:13:05 [RateCDR] => 1 ) [2025-03-25 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:13:05' and `end` < '2025-03-25 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:13:18] Production.INFO: count ==4933 [2025-03-25 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:13:05 - End Time 2025-03-25 18:13:05 [2025-03-25 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761252', 'tblTempUsageDetail_20' ) start [2025-03-25 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761252', 'tblTempUsageDetail_20' ) end [2025-03-25 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761252', 'tblTempVendorCDR_20' ) start [2025-03-25 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761252', 'tblTempVendorCDR_20' ) end [2025-03-25 18:13:20] Production.INFO: ProcessCDR(1,14761252,1,1,2) [2025-03-25 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761252', 'tblTempUsageDetail_20' ) start [2025-03-25 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761252', 'tblTempUsageDetail_20' ) end [2025-03-25 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:13:23] Production.INFO: ==8924== Releasing lock... [2025-03-25 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:13:23] Production.INFO: 65 MB #Memory Used# [2025-03-25 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:14:05 [end_date_ymd] => 2025-03-25 18:14:05 [RateCDR] => 1 ) [2025-03-25 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:14:05' and `end` < '2025-03-25 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:14:19] Production.INFO: count ==4879 [2025-03-25 18:14:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:14:05 - End Time 2025-03-25 18:14:05 [2025-03-25 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761257', 'tblTempUsageDetail_20' ) start [2025-03-25 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761257', 'tblTempUsageDetail_20' ) end [2025-03-25 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761257', 'tblTempVendorCDR_20' ) start [2025-03-25 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761257', 'tblTempVendorCDR_20' ) end [2025-03-25 18:14:21] Production.INFO: ProcessCDR(1,14761257,1,1,2) [2025-03-25 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761257', 'tblTempUsageDetail_20' ) start [2025-03-25 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761257', 'tblTempUsageDetail_20' ) end [2025-03-25 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:14:26] Production.INFO: ==8997== Releasing lock... [2025-03-25 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:14:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-25 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:15:05 [end_date_ymd] => 2025-03-25 18:15:05 [RateCDR] => 1 ) [2025-03-25 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:15:05' and `end` < '2025-03-25 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:15:18] Production.INFO: count ==4865 [2025-03-25 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:15:05 - End Time 2025-03-25 18:15:05 [2025-03-25 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761262', 'tblTempUsageDetail_20' ) start [2025-03-25 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761262', 'tblTempUsageDetail_20' ) end [2025-03-25 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761262', 'tblTempVendorCDR_20' ) start [2025-03-25 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761262', 'tblTempVendorCDR_20' ) end [2025-03-25 18:15:20] Production.INFO: ProcessCDR(1,14761262,1,1,2) [2025-03-25 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761262', 'tblTempUsageDetail_20' ) start [2025-03-25 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761262', 'tblTempUsageDetail_20' ) end [2025-03-25 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:15:25] Production.INFO: ==9078== Releasing lock... [2025-03-25 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:15:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-25 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:16:05 [end_date_ymd] => 2025-03-25 18:16:05 [RateCDR] => 1 ) [2025-03-25 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:16:05' and `end` < '2025-03-25 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:16:18] Production.INFO: count ==4833 [2025-03-25 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:16:05 - End Time 2025-03-25 18:16:05 [2025-03-25 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761267', 'tblTempUsageDetail_20' ) start [2025-03-25 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761267', 'tblTempUsageDetail_20' ) end [2025-03-25 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761267', 'tblTempVendorCDR_20' ) start [2025-03-25 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761267', 'tblTempVendorCDR_20' ) end [2025-03-25 18:16:20] Production.INFO: ProcessCDR(1,14761267,1,1,2) [2025-03-25 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761267', 'tblTempUsageDetail_20' ) start [2025-03-25 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761267', 'tblTempUsageDetail_20' ) end [2025-03-25 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:16:25] Production.INFO: ==9150== Releasing lock... [2025-03-25 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:16:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-25 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:17:06 [end_date_ymd] => 2025-03-25 18:17:06 [RateCDR] => 1 ) [2025-03-25 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:17:06' and `end` < '2025-03-25 18: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-03-25 18:17:19] Production.INFO: count ==4807 [2025-03-25 18:17:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:17:06 - End Time 2025-03-25 18:17:06 [2025-03-25 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761272', 'tblTempUsageDetail_20' ) start [2025-03-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761272', 'tblTempUsageDetail_20' ) end [2025-03-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761272', 'tblTempVendorCDR_20' ) start [2025-03-25 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761272', 'tblTempVendorCDR_20' ) end [2025-03-25 18:17:21] Production.INFO: ProcessCDR(1,14761272,1,1,2) [2025-03-25 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761272', 'tblTempUsageDetail_20' ) start [2025-03-25 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761272', 'tblTempUsageDetail_20' ) end [2025-03-25 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:17:26] Production.INFO: ==9223== Releasing lock... [2025-03-25 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:17:26] Production.INFO: 64 MB #Memory Used# [2025-03-25 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:18:05 [end_date_ymd] => 2025-03-25 18:18:05 [RateCDR] => 1 ) [2025-03-25 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:18:05' and `end` < '2025-03-25 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:18:18] Production.INFO: count ==4771 [2025-03-25 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:18:05 - End Time 2025-03-25 18:18:05 [2025-03-25 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761277', 'tblTempUsageDetail_20' ) start [2025-03-25 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761277', 'tblTempUsageDetail_20' ) end [2025-03-25 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761277', 'tblTempVendorCDR_20' ) start [2025-03-25 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761277', 'tblTempVendorCDR_20' ) end [2025-03-25 18:18:20] Production.INFO: ProcessCDR(1,14761277,1,1,2) [2025-03-25 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761277', 'tblTempUsageDetail_20' ) start [2025-03-25 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761277', 'tblTempUsageDetail_20' ) end [2025-03-25 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:18:25] Production.INFO: ==9336== Releasing lock... [2025-03-25 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:18:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-25 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:19:06 [end_date_ymd] => 2025-03-25 18:19:06 [RateCDR] => 1 ) [2025-03-25 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:19:06' and `end` < '2025-03-25 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:19:19] Production.INFO: count ==4771 [2025-03-25 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:19:06 - End Time 2025-03-25 18:19:06 [2025-03-25 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761282', 'tblTempUsageDetail_20' ) start [2025-03-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761282', 'tblTempUsageDetail_20' ) end [2025-03-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761282', 'tblTempVendorCDR_20' ) start [2025-03-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761282', 'tblTempVendorCDR_20' ) end [2025-03-25 18:19:21] Production.INFO: ProcessCDR(1,14761282,1,1,2) [2025-03-25 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761282', 'tblTempUsageDetail_20' ) start [2025-03-25 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761282', 'tblTempUsageDetail_20' ) end [2025-03-25 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:19:24] Production.INFO: ==9409== Releasing lock... [2025-03-25 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:19:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-25 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:20:06 [end_date_ymd] => 2025-03-25 18:20:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:20:06' and `end` < '2025-03-25 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-03-25 18:20:19] Production.INFO: count ==4766 [2025-03-25 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:20:06 - End Time 2025-03-25 18:20:06 [2025-03-25 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761288', 'tblTempUsageDetail_20' ) start [2025-03-25 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761288', 'tblTempUsageDetail_20' ) end [2025-03-25 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761288', 'tblTempVendorCDR_20' ) start [2025-03-25 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761288', 'tblTempVendorCDR_20' ) end [2025-03-25 18:20:21] Production.INFO: ProcessCDR(1,14761288,1,1,2) [2025-03-25 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761288', 'tblTempUsageDetail_20' ) start [2025-03-25 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761288', 'tblTempUsageDetail_20' ) end [2025-03-25 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:20:25] Production.INFO: ==9484== Releasing lock... [2025-03-25 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:20:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-25 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:21:06 [end_date_ymd] => 2025-03-25 18:21:06 [RateCDR] => 1 ) [2025-03-25 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:21:06' and `end` < '2025-03-25 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:21:19] Production.INFO: count ==4707 [2025-03-25 18:21:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:21:06 - End Time 2025-03-25 18:21:06 [2025-03-25 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761293', 'tblTempUsageDetail_20' ) start [2025-03-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761293', 'tblTempUsageDetail_20' ) end [2025-03-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761293', 'tblTempVendorCDR_20' ) start [2025-03-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761293', 'tblTempVendorCDR_20' ) end [2025-03-25 18:21:21] Production.INFO: ProcessCDR(1,14761293,1,1,2) [2025-03-25 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761293', 'tblTempUsageDetail_20' ) start [2025-03-25 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761293', 'tblTempUsageDetail_20' ) end [2025-03-25 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:21:24] Production.INFO: ==9572== Releasing lock... [2025-03-25 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:21:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-25 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:22:05 [end_date_ymd] => 2025-03-25 18:22:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:22:05' and `end` < '2025-03-25 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-03-25 18:22:18] Production.INFO: count ==4701 [2025-03-25 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:22:05 - End Time 2025-03-25 18:22:05 [2025-03-25 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761298', 'tblTempUsageDetail_20' ) start [2025-03-25 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761298', 'tblTempUsageDetail_20' ) end [2025-03-25 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761298', 'tblTempVendorCDR_20' ) start [2025-03-25 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761298', 'tblTempVendorCDR_20' ) end [2025-03-25 18:22:20] Production.INFO: ProcessCDR(1,14761298,1,1,2) [2025-03-25 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761298', 'tblTempUsageDetail_20' ) start [2025-03-25 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761298', 'tblTempUsageDetail_20' ) end [2025-03-25 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:22:25] Production.INFO: ==9659== Releasing lock... [2025-03-25 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:22:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-25 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:23:05 [end_date_ymd] => 2025-03-25 18:23:05 [RateCDR] => 1 ) [2025-03-25 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:23:05' and `end` < '2025-03-25 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:23:18] Production.INFO: count ==4683 [2025-03-25 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:23:05 - End Time 2025-03-25 18:23:05 [2025-03-25 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761303', 'tblTempUsageDetail_20' ) start [2025-03-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761303', 'tblTempUsageDetail_20' ) end [2025-03-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761303', 'tblTempVendorCDR_20' ) start [2025-03-25 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761303', 'tblTempVendorCDR_20' ) end [2025-03-25 18:23:20] Production.INFO: ProcessCDR(1,14761303,1,1,2) [2025-03-25 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761303', 'tblTempUsageDetail_20' ) start [2025-03-25 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761303', 'tblTempUsageDetail_20' ) end [2025-03-25 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:23:23] Production.INFO: ==9746== Releasing lock... [2025-03-25 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:23:23] Production.INFO: 63 MB #Memory Used# [2025-03-25 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:24:05 [end_date_ymd] => 2025-03-25 18:24:05 [RateCDR] => 1 ) [2025-03-25 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:24:05' and `end` < '2025-03-25 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:24:18] Production.INFO: count ==4662 [2025-03-25 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:24:05 - End Time 2025-03-25 18:24:05 [2025-03-25 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761308', 'tblTempUsageDetail_20' ) start [2025-03-25 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761308', 'tblTempUsageDetail_20' ) end [2025-03-25 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761308', 'tblTempVendorCDR_20' ) start [2025-03-25 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761308', 'tblTempVendorCDR_20' ) end [2025-03-25 18:24:20] Production.INFO: ProcessCDR(1,14761308,1,1,2) [2025-03-25 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761308', 'tblTempUsageDetail_20' ) start [2025-03-25 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761308', 'tblTempUsageDetail_20' ) end [2025-03-25 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:24:25] Production.INFO: ==9831== Releasing lock... [2025-03-25 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:24:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-25 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:25:05 [end_date_ymd] => 2025-03-25 18:25:05 [RateCDR] => 1 ) [2025-03-25 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:25:05' and `end` < '2025-03-25 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:25:18] Production.INFO: count ==4644 [2025-03-25 18:25:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:25:05 - End Time 2025-03-25 18:25:05 [2025-03-25 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761313', 'tblTempUsageDetail_20' ) start [2025-03-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761313', 'tblTempUsageDetail_20' ) end [2025-03-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761313', 'tblTempVendorCDR_20' ) start [2025-03-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761313', 'tblTempVendorCDR_20' ) end [2025-03-25 18:25:20] Production.INFO: ProcessCDR(1,14761313,1,1,2) [2025-03-25 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761313', 'tblTempUsageDetail_20' ) start [2025-03-25 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761313', 'tblTempUsageDetail_20' ) end [2025-03-25 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:25:24] Production.INFO: ==9917== Releasing lock... [2025-03-25 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:25:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-25 18:26:27] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:26:27 [end_date_ymd] => 2025-03-25 18:26:27 [RateCDR] => 1 ) [2025-03-25 18:26:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:26:27' and `end` < '2025-03-25 18:26:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:26:40] Production.INFO: count ==4660 [2025-03-25 18:27:34] Production.ERROR: pbx CDR StartTime 2025-03-25 15:26:27 - End Time 2025-03-25 18:26:27 [2025-03-25 18:27:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761318', 'tblTempUsageDetail_20' ) start [2025-03-25 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761318', 'tblTempUsageDetail_20' ) end [2025-03-25 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761318', 'tblTempVendorCDR_20' ) start [2025-03-25 18:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761318', 'tblTempVendorCDR_20' ) end [2025-03-25 18:27:40] Production.INFO: ProcessCDR(1,14761318,1,1,2) [2025-03-25 18:27:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:27:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:27:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761318', 'tblTempUsageDetail_20' ) start [2025-03-25 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761318', 'tblTempUsageDetail_20' ) end [2025-03-25 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:28:24] Production.INFO: ==10006== Releasing lock... [2025-03-25 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:28:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-25 18:29:17] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:29:17 [end_date_ymd] => 2025-03-25 18:29:17 [RateCDR] => 1 ) [2025-03-25 18:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:29:17' and `end` < '2025-03-25 18:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:29:30] Production.INFO: count ==4619 [2025-03-25 18:30:07] Production.ERROR: pbx CDR StartTime 2025-03-25 15:29:17 - End Time 2025-03-25 18:29:17 [2025-03-25 18:30:07] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:30:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761329', 'tblTempUsageDetail_20' ) start [2025-03-25 18:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761329', 'tblTempUsageDetail_20' ) end [2025-03-25 18:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761329', 'tblTempVendorCDR_20' ) start [2025-03-25 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761329', 'tblTempVendorCDR_20' ) end [2025-03-25 18:30:18] Production.INFO: ProcessCDR(1,14761329,1,1,2) [2025-03-25 18:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:30:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:30:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761329', 'tblTempUsageDetail_20' ) start [2025-03-25 18:30:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761329', 'tblTempUsageDetail_20' ) end [2025-03-25 18:30:50] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:30:50] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:30:50] Production.INFO: ==10249== Releasing lock... [2025-03-25 18:30:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:30:50] Production.INFO: 62.5 MB #Memory Used# [2025-03-25 18:31:10] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:31:10 [end_date_ymd] => 2025-03-25 18:31:10 [RateCDR] => 1 ) [2025-03-25 18:31:10] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:31:10' and `end` < '2025-03-25 18:31:10' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:31:24] Production.INFO: count ==4563 [2025-03-25 18:31:48] Production.ERROR: pbx CDR StartTime 2025-03-25 15:31:10 - End Time 2025-03-25 18:31:10 [2025-03-25 18:31:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:31:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761337', 'tblTempUsageDetail_20' ) start [2025-03-25 18:31:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761337', 'tblTempUsageDetail_20' ) end [2025-03-25 18:31:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761337', 'tblTempVendorCDR_20' ) start [2025-03-25 18:31:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761337', 'tblTempVendorCDR_20' ) end [2025-03-25 18:31:49] Production.INFO: ProcessCDR(1,14761337,1,1,2) [2025-03-25 18:31:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:31:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:31:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:31:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:31:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761337', 'tblTempUsageDetail_20' ) start [2025-03-25 18:31:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761337', 'tblTempUsageDetail_20' ) end [2025-03-25 18:31:55] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:31:55] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:31:55] Production.INFO: ==10410== Releasing lock... [2025-03-25 18:31:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:31:55] Production.INFO: 62 MB #Memory Used# [2025-03-25 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:32:05 [end_date_ymd] => 2025-03-25 18:32:05 [RateCDR] => 1 ) [2025-03-25 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:32:05' and `end` < '2025-03-25 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:32:19] Production.INFO: count ==4537 [2025-03-25 18:32:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:32:05 - End Time 2025-03-25 18:32:05 [2025-03-25 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761342', 'tblTempUsageDetail_20' ) start [2025-03-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761342', 'tblTempUsageDetail_20' ) end [2025-03-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761342', 'tblTempVendorCDR_20' ) start [2025-03-25 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761342', 'tblTempVendorCDR_20' ) end [2025-03-25 18:32:20] Production.INFO: ProcessCDR(1,14761342,1,1,2) [2025-03-25 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761342', 'tblTempUsageDetail_20' ) start [2025-03-25 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761342', 'tblTempUsageDetail_20' ) end [2025-03-25 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:32:24] Production.INFO: ==10503== Releasing lock... [2025-03-25 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:32:24] Production.INFO: 62 MB #Memory Used# [2025-03-25 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:33:05 [end_date_ymd] => 2025-03-25 18:33:05 [RateCDR] => 1 ) [2025-03-25 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:33:05' and `end` < '2025-03-25 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:33:18] Production.INFO: count ==4512 [2025-03-25 18:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 15:33:05 - End Time 2025-03-25 18:33:05 [2025-03-25 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761347', 'tblTempUsageDetail_20' ) start [2025-03-25 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761347', 'tblTempUsageDetail_20' ) end [2025-03-25 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761347', 'tblTempVendorCDR_20' ) start [2025-03-25 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761347', 'tblTempVendorCDR_20' ) end [2025-03-25 18:33:20] Production.INFO: ProcessCDR(1,14761347,1,1,2) [2025-03-25 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761347', 'tblTempUsageDetail_20' ) start [2025-03-25 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761347', 'tblTempUsageDetail_20' ) end [2025-03-25 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:33:23] Production.INFO: ==10589== Releasing lock... [2025-03-25 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:33:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-25 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:34:06 [end_date_ymd] => 2025-03-25 18:34:06 [RateCDR] => 1 ) [2025-03-25 18:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:34:06' and `end` < '2025-03-25 18: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-03-25 18:34:19] Production.INFO: count ==4510 [2025-03-25 18:34:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:34:06 - End Time 2025-03-25 18:34:06 [2025-03-25 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761352', 'tblTempUsageDetail_20' ) start [2025-03-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761352', 'tblTempUsageDetail_20' ) end [2025-03-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761352', 'tblTempVendorCDR_20' ) start [2025-03-25 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761352', 'tblTempVendorCDR_20' ) end [2025-03-25 18:34:21] Production.INFO: ProcessCDR(1,14761352,1,1,2) [2025-03-25 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761352', 'tblTempUsageDetail_20' ) start [2025-03-25 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761352', 'tblTempUsageDetail_20' ) end [2025-03-25 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:34:26] Production.INFO: ==10723== Releasing lock... [2025-03-25 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:34:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-25 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:35:05 [end_date_ymd] => 2025-03-25 18:35:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:35:05' and `end` < '2025-03-25 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-03-25 18:35:18] Production.INFO: count ==4503 [2025-03-25 18:35:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:35:05 - End Time 2025-03-25 18:35:05 [2025-03-25 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761357', 'tblTempUsageDetail_20' ) start [2025-03-25 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761357', 'tblTempUsageDetail_20' ) end [2025-03-25 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761357', 'tblTempVendorCDR_20' ) start [2025-03-25 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761357', 'tblTempVendorCDR_20' ) end [2025-03-25 18:35:20] Production.INFO: ProcessCDR(1,14761357,1,1,2) [2025-03-25 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761357', 'tblTempUsageDetail_20' ) start [2025-03-25 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761357', 'tblTempUsageDetail_20' ) end [2025-03-25 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:35:25] Production.INFO: ==10809== Releasing lock... [2025-03-25 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:35:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-25 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:36:05 [end_date_ymd] => 2025-03-25 18:36:05 [RateCDR] => 1 ) [2025-03-25 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:36:05' and `end` < '2025-03-25 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:36:19] Production.INFO: count ==4504 [2025-03-25 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:36:05 - End Time 2025-03-25 18:36:05 [2025-03-25 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761362', 'tblTempUsageDetail_20' ) start [2025-03-25 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761362', 'tblTempUsageDetail_20' ) end [2025-03-25 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761362', 'tblTempVendorCDR_20' ) start [2025-03-25 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761362', 'tblTempVendorCDR_20' ) end [2025-03-25 18:36:20] Production.INFO: ProcessCDR(1,14761362,1,1,2) [2025-03-25 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761362', 'tblTempUsageDetail_20' ) start [2025-03-25 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761362', 'tblTempUsageDetail_20' ) end [2025-03-25 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:36:25] Production.INFO: ==10900== Releasing lock... [2025-03-25 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:36:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-25 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:37:05 [end_date_ymd] => 2025-03-25 18:37:05 [RateCDR] => 1 ) [2025-03-25 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:37:05' and `end` < '2025-03-25 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:37:18] Production.INFO: count ==4507 [2025-03-25 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:37:05 - End Time 2025-03-25 18:37:05 [2025-03-25 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761367', 'tblTempUsageDetail_20' ) start [2025-03-25 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761367', 'tblTempUsageDetail_20' ) end [2025-03-25 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761367', 'tblTempVendorCDR_20' ) start [2025-03-25 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761367', 'tblTempVendorCDR_20' ) end [2025-03-25 18:37:20] Production.INFO: ProcessCDR(1,14761367,1,1,2) [2025-03-25 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761367', 'tblTempUsageDetail_20' ) start [2025-03-25 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761367', 'tblTempUsageDetail_20' ) end [2025-03-25 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:37:23] Production.INFO: ==10983== Releasing lock... [2025-03-25 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:37:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-25 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:38:05 [end_date_ymd] => 2025-03-25 18:38:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:38:05' and `end` < '2025-03-25 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-03-25 18:38:19] Production.INFO: count ==4491 [2025-03-25 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:38:05 - End Time 2025-03-25 18:38:05 [2025-03-25 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761372', 'tblTempUsageDetail_20' ) start [2025-03-25 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761372', 'tblTempUsageDetail_20' ) end [2025-03-25 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761372', 'tblTempVendorCDR_20' ) start [2025-03-25 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761372', 'tblTempVendorCDR_20' ) end [2025-03-25 18:38:20] Production.INFO: ProcessCDR(1,14761372,1,1,2) [2025-03-25 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761372', 'tblTempUsageDetail_20' ) start [2025-03-25 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761372', 'tblTempUsageDetail_20' ) end [2025-03-25 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:38:25] Production.INFO: ==11068== Releasing lock... [2025-03-25 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:38:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-25 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:39:06 [end_date_ymd] => 2025-03-25 18:39:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:39:06' and `end` < '2025-03-25 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-03-25 18:39:19] Production.INFO: count ==4488 [2025-03-25 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:39:06 - End Time 2025-03-25 18:39:06 [2025-03-25 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761377', 'tblTempUsageDetail_20' ) start [2025-03-25 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761377', 'tblTempUsageDetail_20' ) end [2025-03-25 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761377', 'tblTempVendorCDR_20' ) start [2025-03-25 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761377', 'tblTempVendorCDR_20' ) end [2025-03-25 18:39:20] Production.INFO: ProcessCDR(1,14761377,1,1,2) [2025-03-25 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761377', 'tblTempUsageDetail_20' ) start [2025-03-25 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761377', 'tblTempUsageDetail_20' ) end [2025-03-25 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:39:25] Production.INFO: ==11155== Releasing lock... [2025-03-25 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:39:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-25 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:40:06 [end_date_ymd] => 2025-03-25 18:40:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:40:06' and `end` < '2025-03-25 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-03-25 18:40:19] Production.INFO: count ==4463 [2025-03-25 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:40:06 - End Time 2025-03-25 18:40:06 [2025-03-25 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761383', 'tblTempUsageDetail_20' ) start [2025-03-25 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761383', 'tblTempUsageDetail_20' ) end [2025-03-25 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761383', 'tblTempVendorCDR_20' ) start [2025-03-25 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761383', 'tblTempVendorCDR_20' ) end [2025-03-25 18:40:20] Production.INFO: ProcessCDR(1,14761383,1,1,2) [2025-03-25 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761383', 'tblTempUsageDetail_20' ) start [2025-03-25 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761383', 'tblTempUsageDetail_20' ) end [2025-03-25 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:40:25] Production.INFO: ==11243== Releasing lock... [2025-03-25 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:40:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-25 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:41:05 [end_date_ymd] => 2025-03-25 18:41:05 [RateCDR] => 1 ) [2025-03-25 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:41:05' and `end` < '2025-03-25 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:41:19] Production.INFO: count ==4380 [2025-03-25 18:41:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:41:05 - End Time 2025-03-25 18:41:05 [2025-03-25 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761388', 'tblTempUsageDetail_20' ) start [2025-03-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761388', 'tblTempUsageDetail_20' ) end [2025-03-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761388', 'tblTempVendorCDR_20' ) start [2025-03-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761388', 'tblTempVendorCDR_20' ) end [2025-03-25 18:41:20] Production.INFO: ProcessCDR(1,14761388,1,1,2) [2025-03-25 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761388', 'tblTempUsageDetail_20' ) start [2025-03-25 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761388', 'tblTempUsageDetail_20' ) end [2025-03-25 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:41:26] Production.INFO: ==11332== Releasing lock... [2025-03-25 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:41:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-25 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:42:05 [end_date_ymd] => 2025-03-25 18:42:05 [RateCDR] => 1 ) [2025-03-25 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:42:05' and `end` < '2025-03-25 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:42:18] Production.INFO: count ==4375 [2025-03-25 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:42:05 - End Time 2025-03-25 18:42:05 [2025-03-25 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761393', 'tblTempUsageDetail_20' ) start [2025-03-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761393', 'tblTempUsageDetail_20' ) end [2025-03-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761393', 'tblTempVendorCDR_20' ) start [2025-03-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761393', 'tblTempVendorCDR_20' ) end [2025-03-25 18:42:20] Production.INFO: ProcessCDR(1,14761393,1,1,2) [2025-03-25 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761393', 'tblTempUsageDetail_20' ) start [2025-03-25 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761393', 'tblTempUsageDetail_20' ) end [2025-03-25 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:42:24] Production.INFO: ==11417== Releasing lock... [2025-03-25 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:42:24] Production.INFO: 61 MB #Memory Used# [2025-03-25 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:43:05 [end_date_ymd] => 2025-03-25 18:43:05 [RateCDR] => 1 ) [2025-03-25 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:43:05' and `end` < '2025-03-25 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:43:19] Production.INFO: count ==4373 [2025-03-25 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:43:05 - End Time 2025-03-25 18:43:05 [2025-03-25 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761398', 'tblTempUsageDetail_20' ) start [2025-03-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761398', 'tblTempUsageDetail_20' ) end [2025-03-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761398', 'tblTempVendorCDR_20' ) start [2025-03-25 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761398', 'tblTempVendorCDR_20' ) end [2025-03-25 18:43:20] Production.INFO: ProcessCDR(1,14761398,1,1,2) [2025-03-25 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761398', 'tblTempUsageDetail_20' ) start [2025-03-25 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761398', 'tblTempUsageDetail_20' ) end [2025-03-25 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:43:26] Production.INFO: ==11502== Releasing lock... [2025-03-25 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:43:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-25 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:44:05 [end_date_ymd] => 2025-03-25 18:44:05 [RateCDR] => 1 ) [2025-03-25 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:44:05' and `end` < '2025-03-25 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:44:18] Production.INFO: count ==4356 [2025-03-25 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:44:05 - End Time 2025-03-25 18:44:05 [2025-03-25 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761403', 'tblTempUsageDetail_20' ) start [2025-03-25 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761403', 'tblTempUsageDetail_20' ) end [2025-03-25 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761403', 'tblTempVendorCDR_20' ) start [2025-03-25 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761403', 'tblTempVendorCDR_20' ) end [2025-03-25 18:44:20] Production.INFO: ProcessCDR(1,14761403,1,1,2) [2025-03-25 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761403', 'tblTempUsageDetail_20' ) start [2025-03-25 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761403', 'tblTempUsageDetail_20' ) end [2025-03-25 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:44:25] Production.INFO: ==11587== Releasing lock... [2025-03-25 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:44:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-25 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:45:05 [end_date_ymd] => 2025-03-25 18:45:05 [RateCDR] => 1 ) [2025-03-25 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:45:05' and `end` < '2025-03-25 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:45:18] Production.INFO: count ==4349 [2025-03-25 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:45:05 - End Time 2025-03-25 18:45:05 [2025-03-25 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761408', 'tblTempUsageDetail_20' ) start [2025-03-25 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761408', 'tblTempUsageDetail_20' ) end [2025-03-25 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761408', 'tblTempVendorCDR_20' ) start [2025-03-25 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761408', 'tblTempVendorCDR_20' ) end [2025-03-25 18:45:20] Production.INFO: ProcessCDR(1,14761408,1,1,2) [2025-03-25 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761408', 'tblTempUsageDetail_20' ) start [2025-03-25 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761408', 'tblTempUsageDetail_20' ) end [2025-03-25 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:45:25] Production.INFO: ==11674== Releasing lock... [2025-03-25 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:45:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-25 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:46:05 [end_date_ymd] => 2025-03-25 18:46:05 [RateCDR] => 1 ) [2025-03-25 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:46:05' and `end` < '2025-03-25 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:46:19] Production.INFO: count ==4328 [2025-03-25 18:46:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:46:05 - End Time 2025-03-25 18:46:05 [2025-03-25 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761413', 'tblTempUsageDetail_20' ) start [2025-03-25 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761413', 'tblTempUsageDetail_20' ) end [2025-03-25 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761413', 'tblTempVendorCDR_20' ) start [2025-03-25 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761413', 'tblTempVendorCDR_20' ) end [2025-03-25 18:46:20] Production.INFO: ProcessCDR(1,14761413,1,1,2) [2025-03-25 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761413', 'tblTempUsageDetail_20' ) start [2025-03-25 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761413', 'tblTempUsageDetail_20' ) end [2025-03-25 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:46:25] Production.INFO: ==11761== Releasing lock... [2025-03-25 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:46:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-25 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:47:05 [end_date_ymd] => 2025-03-25 18:47:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:47:05' and `end` < '2025-03-25 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-03-25 18:47:18] Production.INFO: count ==4307 [2025-03-25 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:47:05 - End Time 2025-03-25 18:47:05 [2025-03-25 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761418', 'tblTempUsageDetail_20' ) start [2025-03-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761418', 'tblTempUsageDetail_20' ) end [2025-03-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761418', 'tblTempVendorCDR_20' ) start [2025-03-25 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761418', 'tblTempVendorCDR_20' ) end [2025-03-25 18:47:20] Production.INFO: ProcessCDR(1,14761418,1,1,2) [2025-03-25 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761418', 'tblTempUsageDetail_20' ) start [2025-03-25 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761418', 'tblTempUsageDetail_20' ) end [2025-03-25 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:47:25] Production.INFO: ==11847== Releasing lock... [2025-03-25 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:47:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-25 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:48:06 [end_date_ymd] => 2025-03-25 18:48:06 [RateCDR] => 1 ) [2025-03-25 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:48:06' and `end` < '2025-03-25 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:48:19] Production.INFO: count ==4294 [2025-03-25 18:48:21] Production.ERROR: pbx CDR StartTime 2025-03-25 15:48:06 - End Time 2025-03-25 18:48:06 [2025-03-25 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761423', 'tblTempUsageDetail_20' ) start [2025-03-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761423', 'tblTempUsageDetail_20' ) end [2025-03-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761423', 'tblTempVendorCDR_20' ) start [2025-03-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761423', 'tblTempVendorCDR_20' ) end [2025-03-25 18:48:21] Production.INFO: ProcessCDR(1,14761423,1,1,2) [2025-03-25 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761423', 'tblTempUsageDetail_20' ) start [2025-03-25 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761423', 'tblTempUsageDetail_20' ) end [2025-03-25 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:48:26] Production.INFO: ==11936== Releasing lock... [2025-03-25 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:48:26] Production.INFO: 60 MB #Memory Used# [2025-03-25 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:49:05 [end_date_ymd] => 2025-03-25 18:49:05 [RateCDR] => 1 ) [2025-03-25 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:49:05' and `end` < '2025-03-25 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:49:18] Production.INFO: count ==4264 [2025-03-25 18:49:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:49:05 - End Time 2025-03-25 18:49:05 [2025-03-25 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761428', 'tblTempUsageDetail_20' ) start [2025-03-25 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761428', 'tblTempUsageDetail_20' ) end [2025-03-25 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761428', 'tblTempVendorCDR_20' ) start [2025-03-25 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761428', 'tblTempVendorCDR_20' ) end [2025-03-25 18:49:20] Production.INFO: ProcessCDR(1,14761428,1,1,2) [2025-03-25 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761428', 'tblTempUsageDetail_20' ) start [2025-03-25 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761428', 'tblTempUsageDetail_20' ) end [2025-03-25 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:49:26] Production.INFO: ==12060== Releasing lock... [2025-03-25 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:49:26] Production.INFO: 60 MB #Memory Used# [2025-03-25 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:50:07 [end_date_ymd] => 2025-03-25 18:50:07 [RateCDR] => 1 ) [2025-03-25 18:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:50:07' and `end` < '2025-03-25 18:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:50:20] Production.INFO: count ==4244 [2025-03-25 18:50:22] Production.ERROR: pbx CDR StartTime 2025-03-25 15:50:07 - End Time 2025-03-25 18:50:07 [2025-03-25 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761434', 'tblTempUsageDetail_20' ) start [2025-03-25 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761434', 'tblTempUsageDetail_20' ) end [2025-03-25 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761434', 'tblTempVendorCDR_20' ) start [2025-03-25 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761434', 'tblTempVendorCDR_20' ) end [2025-03-25 18:50:22] Production.INFO: ProcessCDR(1,14761434,1,1,2) [2025-03-25 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761434', 'tblTempUsageDetail_20' ) start [2025-03-25 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761434', 'tblTempUsageDetail_20' ) end [2025-03-25 18:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:50:28] Production.INFO: ==12154== Releasing lock... [2025-03-25 18:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:50:28] Production.INFO: 59.75 MB #Memory Used# [2025-03-25 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:51:05 [end_date_ymd] => 2025-03-25 18:51:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 15:51:05' and `end` < '2025-03-25 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-03-25 18:51:19] Production.INFO: count ==4175 [2025-03-25 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:51:05 - End Time 2025-03-25 18:51:05 [2025-03-25 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761439', 'tblTempUsageDetail_20' ) start [2025-03-25 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761439', 'tblTempUsageDetail_20' ) end [2025-03-25 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761439', 'tblTempVendorCDR_20' ) start [2025-03-25 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761439', 'tblTempVendorCDR_20' ) end [2025-03-25 18:51:20] Production.INFO: ProcessCDR(1,14761439,1,1,2) [2025-03-25 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761439', 'tblTempUsageDetail_20' ) start [2025-03-25 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761439', 'tblTempUsageDetail_20' ) end [2025-03-25 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:51:25] Production.INFO: ==12239== Releasing lock... [2025-03-25 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:51:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-25 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:52:06 [end_date_ymd] => 2025-03-25 18:52:06 [RateCDR] => 1 ) [2025-03-25 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:52:06' and `end` < '2025-03-25 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:52:19] Production.INFO: count ==4124 [2025-03-25 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:52:06 - End Time 2025-03-25 18:52:06 [2025-03-25 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761444', 'tblTempUsageDetail_20' ) start [2025-03-25 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761444', 'tblTempUsageDetail_20' ) end [2025-03-25 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761444', 'tblTempVendorCDR_20' ) start [2025-03-25 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761444', 'tblTempVendorCDR_20' ) end [2025-03-25 18:52:20] Production.INFO: ProcessCDR(1,14761444,1,1,2) [2025-03-25 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761444', 'tblTempUsageDetail_20' ) start [2025-03-25 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761444', 'tblTempUsageDetail_20' ) end [2025-03-25 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:52:25] Production.INFO: ==12328== Releasing lock... [2025-03-25 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:52:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:53:05 [end_date_ymd] => 2025-03-25 18:53:05 [RateCDR] => 1 ) [2025-03-25 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:53:05' and `end` < '2025-03-25 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:53:19] Production.INFO: count ==4135 [2025-03-25 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:53:05 - End Time 2025-03-25 18:53:05 [2025-03-25 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761449', 'tblTempUsageDetail_20' ) start [2025-03-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761449', 'tblTempUsageDetail_20' ) end [2025-03-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761449', 'tblTempVendorCDR_20' ) start [2025-03-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761449', 'tblTempVendorCDR_20' ) end [2025-03-25 18:53:20] Production.INFO: ProcessCDR(1,14761449,1,1,2) [2025-03-25 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761449', 'tblTempUsageDetail_20' ) start [2025-03-25 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761449', 'tblTempUsageDetail_20' ) end [2025-03-25 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:53:25] Production.INFO: ==12413== Releasing lock... [2025-03-25 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:53:25] Production.INFO: 59 MB #Memory Used# [2025-03-25 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:54:05 [end_date_ymd] => 2025-03-25 18:54:05 [RateCDR] => 1 ) [2025-03-25 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:54:05' and `end` < '2025-03-25 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:54:18] Production.INFO: count ==4117 [2025-03-25 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:54:05 - End Time 2025-03-25 18:54:05 [2025-03-25 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761454', 'tblTempUsageDetail_20' ) start [2025-03-25 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761454', 'tblTempUsageDetail_20' ) end [2025-03-25 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761454', 'tblTempVendorCDR_20' ) start [2025-03-25 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761454', 'tblTempVendorCDR_20' ) end [2025-03-25 18:54:20] Production.INFO: ProcessCDR(1,14761454,1,1,2) [2025-03-25 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761454', 'tblTempUsageDetail_20' ) start [2025-03-25 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761454', 'tblTempUsageDetail_20' ) end [2025-03-25 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:54:25] Production.INFO: ==12502== Releasing lock... [2025-03-25 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:54:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:55:05 [end_date_ymd] => 2025-03-25 18:55:05 [RateCDR] => 1 ) [2025-03-25 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:55:05' and `end` < '2025-03-25 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:55:19] Production.INFO: count ==4113 [2025-03-25 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:55:05 - End Time 2025-03-25 18:55:05 [2025-03-25 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761459', 'tblTempUsageDetail_20' ) start [2025-03-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761459', 'tblTempUsageDetail_20' ) end [2025-03-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761459', 'tblTempVendorCDR_20' ) start [2025-03-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761459', 'tblTempVendorCDR_20' ) end [2025-03-25 18:55:20] Production.INFO: ProcessCDR(1,14761459,1,1,2) [2025-03-25 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761459', 'tblTempUsageDetail_20' ) start [2025-03-25 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761459', 'tblTempUsageDetail_20' ) end [2025-03-25 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:55:25] Production.INFO: ==12588== Releasing lock... [2025-03-25 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:55:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:56:05 [end_date_ymd] => 2025-03-25 18:56:05 [RateCDR] => 1 ) [2025-03-25 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:56:05' and `end` < '2025-03-25 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:56:18] Production.INFO: count ==4109 [2025-03-25 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:56:05 - End Time 2025-03-25 18:56:05 [2025-03-25 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761464', 'tblTempUsageDetail_20' ) start [2025-03-25 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761464', 'tblTempUsageDetail_20' ) end [2025-03-25 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761464', 'tblTempVendorCDR_20' ) start [2025-03-25 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761464', 'tblTempVendorCDR_20' ) end [2025-03-25 18:56:20] Production.INFO: ProcessCDR(1,14761464,1,1,2) [2025-03-25 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761464', 'tblTempUsageDetail_20' ) start [2025-03-25 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761464', 'tblTempUsageDetail_20' ) end [2025-03-25 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:56:25] Production.INFO: ==12675== Releasing lock... [2025-03-25 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:56:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:57:05 [end_date_ymd] => 2025-03-25 18:57:05 [RateCDR] => 1 ) [2025-03-25 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:57:05' and `end` < '2025-03-25 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:57:18] Production.INFO: count ==4109 [2025-03-25 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:57:05 - End Time 2025-03-25 18:57:05 [2025-03-25 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761469', 'tblTempUsageDetail_20' ) start [2025-03-25 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761469', 'tblTempUsageDetail_20' ) end [2025-03-25 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761469', 'tblTempVendorCDR_20' ) start [2025-03-25 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761469', 'tblTempVendorCDR_20' ) end [2025-03-25 18:57:20] Production.INFO: ProcessCDR(1,14761469,1,1,2) [2025-03-25 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761469', 'tblTempUsageDetail_20' ) start [2025-03-25 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761469', 'tblTempUsageDetail_20' ) end [2025-03-25 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:57:25] Production.INFO: ==12760== Releasing lock... [2025-03-25 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:57:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-25 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:58:05 [end_date_ymd] => 2025-03-25 18:58:05 [RateCDR] => 1 ) [2025-03-25 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:58:05' and `end` < '2025-03-25 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:58:18] Production.INFO: count ==4095 [2025-03-25 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-25 15:58:05 - End Time 2025-03-25 18:58:05 [2025-03-25 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761474', 'tblTempUsageDetail_20' ) start [2025-03-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761474', 'tblTempUsageDetail_20' ) end [2025-03-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761474', 'tblTempVendorCDR_20' ) start [2025-03-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761474', 'tblTempVendorCDR_20' ) end [2025-03-25 18:58:20] Production.INFO: ProcessCDR(1,14761474,1,1,2) [2025-03-25 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761474', 'tblTempUsageDetail_20' ) start [2025-03-25 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761474', 'tblTempUsageDetail_20' ) end [2025-03-25 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:58:23] Production.INFO: ==12845== Releasing lock... [2025-03-25 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:58:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-25 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 15:59:05 [end_date_ymd] => 2025-03-25 18:59:05 [RateCDR] => 1 ) [2025-03-25 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 15:59:05' and `end` < '2025-03-25 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 18:59:18] Production.INFO: count ==4067 [2025-03-25 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-25 15:59:05 - End Time 2025-03-25 18:59:05 [2025-03-25 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761479', 'tblTempUsageDetail_20' ) start [2025-03-25 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761479', 'tblTempUsageDetail_20' ) end [2025-03-25 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761479', 'tblTempVendorCDR_20' ) start [2025-03-25 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761479', 'tblTempVendorCDR_20' ) end [2025-03-25 18:59:20] Production.INFO: ProcessCDR(1,14761479,1,1,2) [2025-03-25 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761479', 'tblTempUsageDetail_20' ) start [2025-03-25 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761479', 'tblTempUsageDetail_20' ) end [2025-03-25 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 18:59:23] Production.INFO: ==12931== Releasing lock... [2025-03-25 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 18:59:23] Production.INFO: 58.25 MB #Memory Used# [2025-03-25 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:00:06 [end_date_ymd] => 2025-03-25 19:00:06 [RateCDR] => 1 ) [2025-03-25 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:00:06' and `end` < '2025-03-25 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:00:19] Production.INFO: count ==4051 [2025-03-25 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-25 16:00:06 - End Time 2025-03-25 19:00:06 [2025-03-25 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761485', 'tblTempUsageDetail_20' ) start [2025-03-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761485', 'tblTempUsageDetail_20' ) end [2025-03-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761485', 'tblTempVendorCDR_20' ) start [2025-03-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761485', 'tblTempVendorCDR_20' ) end [2025-03-25 19:00:21] Production.INFO: ProcessCDR(1,14761485,1,1,2) [2025-03-25 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761485', 'tblTempUsageDetail_20' ) start [2025-03-25 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761485', 'tblTempUsageDetail_20' ) end [2025-03-25 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:00:26] Production.INFO: ==13019== Releasing lock... [2025-03-25 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:00:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-25 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:01:06 [end_date_ymd] => 2025-03-25 19:01:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:01:06' and `end` < '2025-03-25 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-03-25 19:01:19] Production.INFO: count ==3958 [2025-03-25 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:01:06 - End Time 2025-03-25 19:01:06 [2025-03-25 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761490', 'tblTempUsageDetail_20' ) start [2025-03-25 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761490', 'tblTempUsageDetail_20' ) end [2025-03-25 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761490', 'tblTempVendorCDR_20' ) start [2025-03-25 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761490', 'tblTempVendorCDR_20' ) end [2025-03-25 19:01:20] Production.INFO: ProcessCDR(1,14761490,1,1,2) [2025-03-25 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761490', 'tblTempUsageDetail_20' ) start [2025-03-25 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761490', 'tblTempUsageDetail_20' ) end [2025-03-25 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:01:24] Production.INFO: ==13200== Releasing lock... [2025-03-25 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:01:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-25 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:02:06 [end_date_ymd] => 2025-03-25 19:02:06 [RateCDR] => 1 ) [2025-03-25 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:02:06' and `end` < '2025-03-25 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:02:19] Production.INFO: count ==3943 [2025-03-25 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:02:06 - End Time 2025-03-25 19:02:06 [2025-03-25 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761495', 'tblTempUsageDetail_20' ) start [2025-03-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761495', 'tblTempUsageDetail_20' ) end [2025-03-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761495', 'tblTempVendorCDR_20' ) start [2025-03-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761495', 'tblTempVendorCDR_20' ) end [2025-03-25 19:02:20] Production.INFO: ProcessCDR(1,14761495,1,1,2) [2025-03-25 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761495', 'tblTempUsageDetail_20' ) start [2025-03-25 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761495', 'tblTempUsageDetail_20' ) end [2025-03-25 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:02:24] Production.INFO: ==13292== Releasing lock... [2025-03-25 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:02:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-25 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:03:05 [end_date_ymd] => 2025-03-25 19:03:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:03:05' and `end` < '2025-03-25 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-03-25 19:03:18] Production.INFO: count ==3919 [2025-03-25 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:03:05 - End Time 2025-03-25 19:03:05 [2025-03-25 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761500', 'tblTempUsageDetail_20' ) start [2025-03-25 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761500', 'tblTempUsageDetail_20' ) end [2025-03-25 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761500', 'tblTempVendorCDR_20' ) start [2025-03-25 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761500', 'tblTempVendorCDR_20' ) end [2025-03-25 19:03:19] Production.INFO: ProcessCDR(1,14761500,1,1,2) [2025-03-25 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761500', 'tblTempUsageDetail_20' ) start [2025-03-25 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761500', 'tblTempUsageDetail_20' ) end [2025-03-25 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:03:25] Production.INFO: ==13374== Releasing lock... [2025-03-25 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:03:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-25 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:04:05 [end_date_ymd] => 2025-03-25 19:04:05 [RateCDR] => 1 ) [2025-03-25 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:04:05' and `end` < '2025-03-25 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:04:18] Production.INFO: count ==3909 [2025-03-25 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:04:05 - End Time 2025-03-25 19:04:05 [2025-03-25 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761505', 'tblTempUsageDetail_20' ) start [2025-03-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761505', 'tblTempUsageDetail_20' ) end [2025-03-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761505', 'tblTempVendorCDR_20' ) start [2025-03-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761505', 'tblTempVendorCDR_20' ) end [2025-03-25 19:04:20] Production.INFO: ProcessCDR(1,14761505,1,1,2) [2025-03-25 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761505', 'tblTempUsageDetail_20' ) start [2025-03-25 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761505', 'tblTempUsageDetail_20' ) end [2025-03-25 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:04:24] Production.INFO: ==13463== Releasing lock... [2025-03-25 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:04:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-25 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:05:06 [end_date_ymd] => 2025-03-25 19:05:06 [RateCDR] => 1 ) [2025-03-25 19:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:05:06' and `end` < '2025-03-25 19:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:05:19] Production.INFO: count ==3900 [2025-03-25 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:05:06 - End Time 2025-03-25 19:05:06 [2025-03-25 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761510', 'tblTempUsageDetail_20' ) start [2025-03-25 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761510', 'tblTempUsageDetail_20' ) end [2025-03-25 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761510', 'tblTempVendorCDR_20' ) start [2025-03-25 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761510', 'tblTempVendorCDR_20' ) end [2025-03-25 19:05:21] Production.INFO: ProcessCDR(1,14761510,1,1,2) [2025-03-25 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761510', 'tblTempUsageDetail_20' ) start [2025-03-25 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761510', 'tblTempUsageDetail_20' ) end [2025-03-25 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:05:26] Production.INFO: ==13666== Releasing lock... [2025-03-25 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:05:26] Production.INFO: 57 MB #Memory Used# [2025-03-25 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:06:06 [end_date_ymd] => 2025-03-25 19:06:06 [RateCDR] => 1 ) [2025-03-25 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:06:06' and `end` < '2025-03-25 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:06:19] Production.INFO: count ==3890 [2025-03-25 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:06:06 - End Time 2025-03-25 19:06:06 [2025-03-25 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761515', 'tblTempUsageDetail_20' ) start [2025-03-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761515', 'tblTempUsageDetail_20' ) end [2025-03-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761515', 'tblTempVendorCDR_20' ) start [2025-03-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761515', 'tblTempVendorCDR_20' ) end [2025-03-25 19:06:20] Production.INFO: ProcessCDR(1,14761515,1,1,2) [2025-03-25 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761515', 'tblTempUsageDetail_20' ) start [2025-03-25 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761515', 'tblTempUsageDetail_20' ) end [2025-03-25 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:06:26] Production.INFO: ==13754== Releasing lock... [2025-03-25 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:06:26] Production.INFO: 57 MB #Memory Used# [2025-03-25 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:07:06 [end_date_ymd] => 2025-03-25 19:07:06 [RateCDR] => 1 ) [2025-03-25 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:07:06' and `end` < '2025-03-25 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:07:19] Production.INFO: count ==3868 [2025-03-25 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:07:06 - End Time 2025-03-25 19:07:06 [2025-03-25 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761520', 'tblTempUsageDetail_20' ) start [2025-03-25 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761520', 'tblTempUsageDetail_20' ) end [2025-03-25 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761520', 'tblTempVendorCDR_20' ) start [2025-03-25 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761520', 'tblTempVendorCDR_20' ) end [2025-03-25 19:07:20] Production.INFO: ProcessCDR(1,14761520,1,1,2) [2025-03-25 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761520', 'tblTempUsageDetail_20' ) start [2025-03-25 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761520', 'tblTempUsageDetail_20' ) end [2025-03-25 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:07:25] Production.INFO: ==13843== Releasing lock... [2025-03-25 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:07:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-25 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:08:06 [end_date_ymd] => 2025-03-25 19:08:06 [RateCDR] => 1 ) [2025-03-25 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:08:06' and `end` < '2025-03-25 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:08:19] Production.INFO: count ==3863 [2025-03-25 19:08:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:08:06 - End Time 2025-03-25 19:08:06 [2025-03-25 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761525', 'tblTempUsageDetail_20' ) start [2025-03-25 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761525', 'tblTempUsageDetail_20' ) end [2025-03-25 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761525', 'tblTempVendorCDR_20' ) start [2025-03-25 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761525', 'tblTempVendorCDR_20' ) end [2025-03-25 19:08:20] Production.INFO: ProcessCDR(1,14761525,1,1,2) [2025-03-25 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761525', 'tblTempUsageDetail_20' ) start [2025-03-25 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761525', 'tblTempUsageDetail_20' ) end [2025-03-25 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:08:25] Production.INFO: ==14011== Releasing lock... [2025-03-25 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:08:25] Production.INFO: 57 MB #Memory Used# [2025-03-25 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:09:05 [end_date_ymd] => 2025-03-25 19:09:05 [RateCDR] => 1 ) [2025-03-25 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:09:05' and `end` < '2025-03-25 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:09:18] Production.INFO: count ==3854 [2025-03-25 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:09:05 - End Time 2025-03-25 19:09:05 [2025-03-25 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761530', 'tblTempUsageDetail_20' ) start [2025-03-25 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761530', 'tblTempUsageDetail_20' ) end [2025-03-25 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761530', 'tblTempVendorCDR_20' ) start [2025-03-25 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761530', 'tblTempVendorCDR_20' ) end [2025-03-25 19:09:19] Production.INFO: ProcessCDR(1,14761530,1,1,2) [2025-03-25 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761530', 'tblTempUsageDetail_20' ) start [2025-03-25 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761530', 'tblTempUsageDetail_20' ) end [2025-03-25 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:09:23] Production.INFO: ==14095== Releasing lock... [2025-03-25 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:09:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-25 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:10:06 [end_date_ymd] => 2025-03-25 19:10:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:10:06' and `end` < '2025-03-25 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-03-25 19:10:19] Production.INFO: count ==3846 [2025-03-25 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:10:06 - End Time 2025-03-25 19:10:06 [2025-03-25 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761536', 'tblTempUsageDetail_20' ) start [2025-03-25 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761536', 'tblTempUsageDetail_20' ) end [2025-03-25 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761536', 'tblTempVendorCDR_20' ) start [2025-03-25 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761536', 'tblTempVendorCDR_20' ) end [2025-03-25 19:10:20] Production.INFO: ProcessCDR(1,14761536,1,1,2) [2025-03-25 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761536', 'tblTempUsageDetail_20' ) start [2025-03-25 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761536', 'tblTempUsageDetail_20' ) end [2025-03-25 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:10:26] Production.INFO: ==14185== Releasing lock... [2025-03-25 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:10:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-25 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:11:06 [end_date_ymd] => 2025-03-25 19:11:06 [RateCDR] => 1 ) [2025-03-25 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:11:06' and `end` < '2025-03-25 19: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-03-25 19:11:19] Production.INFO: count ==3797 [2025-03-25 19:11:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:11:06 - End Time 2025-03-25 19:11:06 [2025-03-25 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761541', 'tblTempUsageDetail_20' ) start [2025-03-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761541', 'tblTempUsageDetail_20' ) end [2025-03-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761541', 'tblTempVendorCDR_20' ) start [2025-03-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761541', 'tblTempVendorCDR_20' ) end [2025-03-25 19:11:20] Production.INFO: ProcessCDR(1,14761541,1,1,2) [2025-03-25 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761541', 'tblTempUsageDetail_20' ) start [2025-03-25 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761541', 'tblTempUsageDetail_20' ) end [2025-03-25 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:11:23] Production.INFO: ==14275== Releasing lock... [2025-03-25 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:11:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-25 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:12:05 [end_date_ymd] => 2025-03-25 19:12:05 [RateCDR] => 1 ) [2025-03-25 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:12:05' and `end` < '2025-03-25 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:12:18] Production.INFO: count ==3794 [2025-03-25 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:12:05 - End Time 2025-03-25 19:12:05 [2025-03-25 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761546', 'tblTempUsageDetail_20' ) start [2025-03-25 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761546', 'tblTempUsageDetail_20' ) end [2025-03-25 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761546', 'tblTempVendorCDR_20' ) start [2025-03-25 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761546', 'tblTempVendorCDR_20' ) end [2025-03-25 19:12:19] Production.INFO: ProcessCDR(1,14761546,1,1,2) [2025-03-25 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761546', 'tblTempUsageDetail_20' ) start [2025-03-25 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761546', 'tblTempUsageDetail_20' ) end [2025-03-25 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:12:24] Production.INFO: ==14443== Releasing lock... [2025-03-25 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:12:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-25 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:13:05 [end_date_ymd] => 2025-03-25 19:13:05 [RateCDR] => 1 ) [2025-03-25 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:13:05' and `end` < '2025-03-25 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:13:18] Production.INFO: count ==3790 [2025-03-25 19:13:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:13:05 - End Time 2025-03-25 19:13:05 [2025-03-25 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761550', 'tblTempUsageDetail_20' ) start [2025-03-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761550', 'tblTempUsageDetail_20' ) end [2025-03-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761550', 'tblTempVendorCDR_20' ) start [2025-03-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761550', 'tblTempVendorCDR_20' ) end [2025-03-25 19:13:20] Production.INFO: ProcessCDR(1,14761550,1,1,2) [2025-03-25 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761550', 'tblTempUsageDetail_20' ) start [2025-03-25 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761550', 'tblTempUsageDetail_20' ) end [2025-03-25 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:13:24] Production.INFO: ==14538== Releasing lock... [2025-03-25 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:13:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-25 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:14:05 [end_date_ymd] => 2025-03-25 19:14:05 [RateCDR] => 1 ) [2025-03-25 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:14:05' and `end` < '2025-03-25 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:14:18] Production.INFO: count ==3787 [2025-03-25 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:14:05 - End Time 2025-03-25 19:14:05 [2025-03-25 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761556', 'tblTempUsageDetail_20' ) start [2025-03-25 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761556', 'tblTempUsageDetail_20' ) end [2025-03-25 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761556', 'tblTempVendorCDR_20' ) start [2025-03-25 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761556', 'tblTempVendorCDR_20' ) end [2025-03-25 19:14:19] Production.INFO: ProcessCDR(1,14761556,1,1,2) [2025-03-25 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761556', 'tblTempUsageDetail_20' ) start [2025-03-25 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761556', 'tblTempUsageDetail_20' ) end [2025-03-25 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:14:24] Production.INFO: ==14626== Releasing lock... [2025-03-25 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:14:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-25 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:15:05 [end_date_ymd] => 2025-03-25 19:15:05 [RateCDR] => 1 ) [2025-03-25 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:15:05' and `end` < '2025-03-25 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:15:18] Production.INFO: count ==3783 [2025-03-25 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:15:05 - End Time 2025-03-25 19:15:05 [2025-03-25 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761561', 'tblTempUsageDetail_20' ) start [2025-03-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761561', 'tblTempUsageDetail_20' ) end [2025-03-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761561', 'tblTempVendorCDR_20' ) start [2025-03-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761561', 'tblTempVendorCDR_20' ) end [2025-03-25 19:15:20] Production.INFO: ProcessCDR(1,14761561,1,1,2) [2025-03-25 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761561', 'tblTempUsageDetail_20' ) start [2025-03-25 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761561', 'tblTempUsageDetail_20' ) end [2025-03-25 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:15:24] Production.INFO: ==14800== Releasing lock... [2025-03-25 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:15:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-25 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:16:06 [end_date_ymd] => 2025-03-25 19:16:06 [RateCDR] => 1 ) [2025-03-25 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:16:06' and `end` < '2025-03-25 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:16:19] Production.INFO: count ==3784 [2025-03-25 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:16:06 - End Time 2025-03-25 19:16:06 [2025-03-25 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761566', 'tblTempUsageDetail_20' ) start [2025-03-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761566', 'tblTempUsageDetail_20' ) end [2025-03-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761566', 'tblTempVendorCDR_20' ) start [2025-03-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761566', 'tblTempVendorCDR_20' ) end [2025-03-25 19:16:20] Production.INFO: ProcessCDR(1,14761566,1,1,2) [2025-03-25 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761566', 'tblTempUsageDetail_20' ) start [2025-03-25 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761566', 'tblTempUsageDetail_20' ) end [2025-03-25 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:16:25] Production.INFO: ==14888== Releasing lock... [2025-03-25 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:16:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-25 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:17:05 [end_date_ymd] => 2025-03-25 19:17:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:17:05' and `end` < '2025-03-25 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-03-25 19:17:18] Production.INFO: count ==3750 [2025-03-25 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:17:05 - End Time 2025-03-25 19:17:05 [2025-03-25 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761571', 'tblTempUsageDetail_20' ) start [2025-03-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761571', 'tblTempUsageDetail_20' ) end [2025-03-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761571', 'tblTempVendorCDR_20' ) start [2025-03-25 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761571', 'tblTempVendorCDR_20' ) end [2025-03-25 19:17:19] Production.INFO: ProcessCDR(1,14761571,1,1,2) [2025-03-25 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761571', 'tblTempUsageDetail_20' ) start [2025-03-25 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761571', 'tblTempUsageDetail_20' ) end [2025-03-25 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:17:25] Production.INFO: ==14980== Releasing lock... [2025-03-25 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:17:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-25 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:18:06 [end_date_ymd] => 2025-03-25 19:18:06 [RateCDR] => 1 ) [2025-03-25 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:18:06' and `end` < '2025-03-25 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:18:19] Production.INFO: count ==3732 [2025-03-25 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:18:06 - End Time 2025-03-25 19:18:06 [2025-03-25 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761576', 'tblTempUsageDetail_20' ) start [2025-03-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761576', 'tblTempUsageDetail_20' ) end [2025-03-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761576', 'tblTempVendorCDR_20' ) start [2025-03-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761576', 'tblTempVendorCDR_20' ) end [2025-03-25 19:18:20] Production.INFO: ProcessCDR(1,14761576,1,1,2) [2025-03-25 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761576', 'tblTempUsageDetail_20' ) start [2025-03-25 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761576', 'tblTempUsageDetail_20' ) end [2025-03-25 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:18:25] Production.INFO: ==15076== Releasing lock... [2025-03-25 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:18:25] Production.INFO: 56 MB #Memory Used# [2025-03-25 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:19:05 [end_date_ymd] => 2025-03-25 19:19:05 [RateCDR] => 1 ) [2025-03-25 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:19:05' and `end` < '2025-03-25 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:19:18] Production.INFO: count ==3708 [2025-03-25 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:19:05 - End Time 2025-03-25 19:19:05 [2025-03-25 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761581', 'tblTempUsageDetail_20' ) start [2025-03-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761581', 'tblTempUsageDetail_20' ) end [2025-03-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761581', 'tblTempVendorCDR_20' ) start [2025-03-25 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761581', 'tblTempVendorCDR_20' ) end [2025-03-25 19:19:19] Production.INFO: ProcessCDR(1,14761581,1,1,2) [2025-03-25 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761581', 'tblTempUsageDetail_20' ) start [2025-03-25 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761581', 'tblTempUsageDetail_20' ) end [2025-03-25 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:19:24] Production.INFO: ==15167== Releasing lock... [2025-03-25 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:19:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-25 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:20:07 [end_date_ymd] => 2025-03-25 19:20:07 [RateCDR] => 1 ) [2025-03-25 19:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:20:07' and `end` < '2025-03-25 19:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:20:20] Production.INFO: count ==3713 [2025-03-25 19:20:21] Production.ERROR: pbx CDR StartTime 2025-03-25 16:20:07 - End Time 2025-03-25 19:20:07 [2025-03-25 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761587', 'tblTempUsageDetail_20' ) start [2025-03-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761587', 'tblTempUsageDetail_20' ) end [2025-03-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761587', 'tblTempVendorCDR_20' ) start [2025-03-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761587', 'tblTempVendorCDR_20' ) end [2025-03-25 19:20:21] Production.INFO: ProcessCDR(1,14761587,1,1,2) [2025-03-25 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761587', 'tblTempUsageDetail_20' ) start [2025-03-25 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761587', 'tblTempUsageDetail_20' ) end [2025-03-25 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:20:26] Production.INFO: ==15300== Releasing lock... [2025-03-25 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:20:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-25 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:21:05 [end_date_ymd] => 2025-03-25 19:21:05 [RateCDR] => 1 ) [2025-03-25 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:21:05' and `end` < '2025-03-25 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:21:18] Production.INFO: count ==3634 [2025-03-25 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:21:05 - End Time 2025-03-25 19:21:05 [2025-03-25 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761592', 'tblTempUsageDetail_20' ) start [2025-03-25 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761592', 'tblTempUsageDetail_20' ) end [2025-03-25 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761592', 'tblTempVendorCDR_20' ) start [2025-03-25 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761592', 'tblTempVendorCDR_20' ) end [2025-03-25 19:21:20] Production.INFO: ProcessCDR(1,14761592,1,1,2) [2025-03-25 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761592', 'tblTempUsageDetail_20' ) start [2025-03-25 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761592', 'tblTempUsageDetail_20' ) end [2025-03-25 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:21:23] Production.INFO: ==15389== Releasing lock... [2025-03-25 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:21:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-25 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:22:05 [end_date_ymd] => 2025-03-25 19:22:05 [RateCDR] => 1 ) [2025-03-25 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:22:05' and `end` < '2025-03-25 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:22:19] Production.INFO: count ==3629 [2025-03-25 19:22:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:22:05 - End Time 2025-03-25 19:22:05 [2025-03-25 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761597', 'tblTempUsageDetail_20' ) start [2025-03-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761597', 'tblTempUsageDetail_20' ) end [2025-03-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761597', 'tblTempVendorCDR_20' ) start [2025-03-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761597', 'tblTempVendorCDR_20' ) end [2025-03-25 19:22:20] Production.INFO: ProcessCDR(1,14761597,1,1,2) [2025-03-25 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761597', 'tblTempUsageDetail_20' ) start [2025-03-25 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761597', 'tblTempUsageDetail_20' ) end [2025-03-25 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:22:25] Production.INFO: ==15482== Releasing lock... [2025-03-25 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:22:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-25 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:23:05 [end_date_ymd] => 2025-03-25 19:23:05 [RateCDR] => 1 ) [2025-03-25 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:23:05' and `end` < '2025-03-25 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:23:18] Production.INFO: count ==3631 [2025-03-25 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:23:05 - End Time 2025-03-25 19:23:05 [2025-03-25 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761602', 'tblTempUsageDetail_20' ) start [2025-03-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761602', 'tblTempUsageDetail_20' ) end [2025-03-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761602', 'tblTempVendorCDR_20' ) start [2025-03-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761602', 'tblTempVendorCDR_20' ) end [2025-03-25 19:23:19] Production.INFO: ProcessCDR(1,14761602,1,1,2) [2025-03-25 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761602', 'tblTempUsageDetail_20' ) start [2025-03-25 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761602', 'tblTempUsageDetail_20' ) end [2025-03-25 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:23:24] Production.INFO: ==15567== Releasing lock... [2025-03-25 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:23:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-25 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:24:06 [end_date_ymd] => 2025-03-25 19:24:06 [RateCDR] => 1 ) [2025-03-25 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:24:06' and `end` < '2025-03-25 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:24:19] Production.INFO: count ==3617 [2025-03-25 19:24:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:24:06 - End Time 2025-03-25 19:24:06 [2025-03-25 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761607', 'tblTempUsageDetail_20' ) start [2025-03-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761607', 'tblTempUsageDetail_20' ) end [2025-03-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761607', 'tblTempVendorCDR_20' ) start [2025-03-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761607', 'tblTempVendorCDR_20' ) end [2025-03-25 19:24:20] Production.INFO: ProcessCDR(1,14761607,1,1,2) [2025-03-25 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761607', 'tblTempUsageDetail_20' ) start [2025-03-25 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761607', 'tblTempUsageDetail_20' ) end [2025-03-25 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:24:25] Production.INFO: ==15658== Releasing lock... [2025-03-25 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:24:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-25 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:25:05 [end_date_ymd] => 2025-03-25 19:25:05 [RateCDR] => 1 ) [2025-03-25 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:25:05' and `end` < '2025-03-25 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:25:18] Production.INFO: count ==3604 [2025-03-25 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:25:05 - End Time 2025-03-25 19:25:05 [2025-03-25 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761612', 'tblTempUsageDetail_20' ) start [2025-03-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761612', 'tblTempUsageDetail_20' ) end [2025-03-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761612', 'tblTempVendorCDR_20' ) start [2025-03-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761612', 'tblTempVendorCDR_20' ) end [2025-03-25 19:25:20] Production.INFO: ProcessCDR(1,14761612,1,1,2) [2025-03-25 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761612', 'tblTempUsageDetail_20' ) start [2025-03-25 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761612', 'tblTempUsageDetail_20' ) end [2025-03-25 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:25:23] Production.INFO: ==15746== Releasing lock... [2025-03-25 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:25:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-25 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:26:05 [end_date_ymd] => 2025-03-25 19:26:05 [RateCDR] => 1 ) [2025-03-25 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:26:05' and `end` < '2025-03-25 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:26:19] Production.INFO: count ==3592 [2025-03-25 19:26:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:26:05 - End Time 2025-03-25 19:26:05 [2025-03-25 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761617', 'tblTempUsageDetail_20' ) start [2025-03-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761617', 'tblTempUsageDetail_20' ) end [2025-03-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761617', 'tblTempVendorCDR_20' ) start [2025-03-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761617', 'tblTempVendorCDR_20' ) end [2025-03-25 19:26:20] Production.INFO: ProcessCDR(1,14761617,1,1,2) [2025-03-25 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761617', 'tblTempUsageDetail_20' ) start [2025-03-25 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761617', 'tblTempUsageDetail_20' ) end [2025-03-25 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:26:23] Production.INFO: ==15835== Releasing lock... [2025-03-25 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:26:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-25 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:27:05 [end_date_ymd] => 2025-03-25 19:27:05 [RateCDR] => 1 ) [2025-03-25 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:27:05' and `end` < '2025-03-25 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:27:18] Production.INFO: count ==3589 [2025-03-25 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:27:05 - End Time 2025-03-25 19:27:05 [2025-03-25 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761622', 'tblTempUsageDetail_20' ) start [2025-03-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761622', 'tblTempUsageDetail_20' ) end [2025-03-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761622', 'tblTempVendorCDR_20' ) start [2025-03-25 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761622', 'tblTempVendorCDR_20' ) end [2025-03-25 19:27:19] Production.INFO: ProcessCDR(1,14761622,1,1,2) [2025-03-25 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761622', 'tblTempUsageDetail_20' ) start [2025-03-25 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761622', 'tblTempUsageDetail_20' ) end [2025-03-25 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:27:23] Production.INFO: ==15929== Releasing lock... [2025-03-25 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:27:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-25 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:28:06 [end_date_ymd] => 2025-03-25 19:28:06 [RateCDR] => 1 ) [2025-03-25 19:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:28:06' and `end` < '2025-03-25 19:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:28:19] Production.INFO: count ==3566 [2025-03-25 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:28:06 - End Time 2025-03-25 19:28:06 [2025-03-25 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761627', 'tblTempUsageDetail_20' ) start [2025-03-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761627', 'tblTempUsageDetail_20' ) end [2025-03-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761627', 'tblTempVendorCDR_20' ) start [2025-03-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761627', 'tblTempVendorCDR_20' ) end [2025-03-25 19:28:20] Production.INFO: ProcessCDR(1,14761627,1,1,2) [2025-03-25 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761627', 'tblTempUsageDetail_20' ) start [2025-03-25 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761627', 'tblTempUsageDetail_20' ) end [2025-03-25 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:28:25] Production.INFO: ==16028== Releasing lock... [2025-03-25 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:28:25] Production.INFO: 55 MB #Memory Used# [2025-03-25 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:29:05 [end_date_ymd] => 2025-03-25 19:29:05 [RateCDR] => 1 ) [2025-03-25 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:29:05' and `end` < '2025-03-25 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:29:18] Production.INFO: count ==3548 [2025-03-25 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:29:05 - End Time 2025-03-25 19:29:05 [2025-03-25 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761632', 'tblTempUsageDetail_20' ) start [2025-03-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761632', 'tblTempUsageDetail_20' ) end [2025-03-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761632', 'tblTempVendorCDR_20' ) start [2025-03-25 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761632', 'tblTempVendorCDR_20' ) end [2025-03-25 19:29:19] Production.INFO: ProcessCDR(1,14761632,1,1,2) [2025-03-25 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761632', 'tblTempUsageDetail_20' ) start [2025-03-25 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761632', 'tblTempUsageDetail_20' ) end [2025-03-25 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:29:24] Production.INFO: ==16117== Releasing lock... [2025-03-25 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:29:24] Production.INFO: 55 MB #Memory Used# [2025-03-25 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:30:06 [end_date_ymd] => 2025-03-25 19:30:06 [RateCDR] => 1 ) [2025-03-25 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:30:06' and `end` < '2025-03-25 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:30:19] Production.INFO: count ==3529 [2025-03-25 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:30:06 - End Time 2025-03-25 19:30:06 [2025-03-25 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761638', 'tblTempUsageDetail_20' ) start [2025-03-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761638', 'tblTempUsageDetail_20' ) end [2025-03-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761638', 'tblTempVendorCDR_20' ) start [2025-03-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761638', 'tblTempVendorCDR_20' ) end [2025-03-25 19:30:20] Production.INFO: ProcessCDR(1,14761638,1,1,2) [2025-03-25 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761638', 'tblTempUsageDetail_20' ) start [2025-03-25 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761638', 'tblTempUsageDetail_20' ) end [2025-03-25 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:30:24] Production.INFO: ==16219== Releasing lock... [2025-03-25 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:30:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-25 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:31:05 [end_date_ymd] => 2025-03-25 19:31:05 [RateCDR] => 1 ) [2025-03-25 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:31:05' and `end` < '2025-03-25 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:31:18] Production.INFO: count ==3418 [2025-03-25 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:31:05 - End Time 2025-03-25 19:31:05 [2025-03-25 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761643', 'tblTempUsageDetail_20' ) start [2025-03-25 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761643', 'tblTempUsageDetail_20' ) end [2025-03-25 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761643', 'tblTempVendorCDR_20' ) start [2025-03-25 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761643', 'tblTempVendorCDR_20' ) end [2025-03-25 19:31:20] Production.INFO: ProcessCDR(1,14761643,1,1,2) [2025-03-25 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761643', 'tblTempUsageDetail_20' ) start [2025-03-25 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761643', 'tblTempUsageDetail_20' ) end [2025-03-25 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:31:25] Production.INFO: ==16310== Releasing lock... [2025-03-25 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:31:25] Production.INFO: 54 MB #Memory Used# [2025-03-25 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:32:06 [end_date_ymd] => 2025-03-25 19:32:06 [RateCDR] => 1 ) [2025-03-25 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:32:06' and `end` < '2025-03-25 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:32:18] Production.INFO: count ==3422 [2025-03-25 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:32:06 - End Time 2025-03-25 19:32:06 [2025-03-25 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761648', 'tblTempUsageDetail_20' ) start [2025-03-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761648', 'tblTempUsageDetail_20' ) end [2025-03-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761648', 'tblTempVendorCDR_20' ) start [2025-03-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761648', 'tblTempVendorCDR_20' ) end [2025-03-25 19:32:20] Production.INFO: ProcessCDR(1,14761648,1,1,2) [2025-03-25 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761648', 'tblTempUsageDetail_20' ) start [2025-03-25 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761648', 'tblTempUsageDetail_20' ) end [2025-03-25 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:32:23] Production.INFO: ==16402== Releasing lock... [2025-03-25 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:32:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-25 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:33:05 [end_date_ymd] => 2025-03-25 19:33:05 [RateCDR] => 1 ) [2025-03-25 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:33:05' and `end` < '2025-03-25 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:33:18] Production.INFO: count ==3394 [2025-03-25 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:33:05 - End Time 2025-03-25 19:33:05 [2025-03-25 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761653', 'tblTempUsageDetail_20' ) start [2025-03-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761653', 'tblTempUsageDetail_20' ) end [2025-03-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761653', 'tblTempVendorCDR_20' ) start [2025-03-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761653', 'tblTempVendorCDR_20' ) end [2025-03-25 19:33:19] Production.INFO: ProcessCDR(1,14761653,1,1,2) [2025-03-25 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761653', 'tblTempUsageDetail_20' ) start [2025-03-25 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761653', 'tblTempUsageDetail_20' ) end [2025-03-25 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:33:25] Production.INFO: ==16494== Releasing lock... [2025-03-25 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:33:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-25 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:34:05 [end_date_ymd] => 2025-03-25 19:34:05 [RateCDR] => 1 ) [2025-03-25 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:34:05' and `end` < '2025-03-25 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:34:18] Production.INFO: count ==3366 [2025-03-25 19:34:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:34:05 - End Time 2025-03-25 19:34:05 [2025-03-25 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761658', 'tblTempUsageDetail_20' ) start [2025-03-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761658', 'tblTempUsageDetail_20' ) end [2025-03-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761658', 'tblTempVendorCDR_20' ) start [2025-03-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761658', 'tblTempVendorCDR_20' ) end [2025-03-25 19:34:20] Production.INFO: ProcessCDR(1,14761658,1,1,2) [2025-03-25 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761658', 'tblTempUsageDetail_20' ) start [2025-03-25 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761658', 'tblTempUsageDetail_20' ) end [2025-03-25 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:34:25] Production.INFO: ==16589== Releasing lock... [2025-03-25 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:34:25] Production.INFO: 53 MB #Memory Used# [2025-03-25 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:35:05 [end_date_ymd] => 2025-03-25 19:35:05 [RateCDR] => 1 ) [2025-03-25 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:35:05' and `end` < '2025-03-25 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:35:18] Production.INFO: count ==3358 [2025-03-25 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:35:05 - End Time 2025-03-25 19:35:05 [2025-03-25 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761663', 'tblTempUsageDetail_20' ) start [2025-03-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761663', 'tblTempUsageDetail_20' ) end [2025-03-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761663', 'tblTempVendorCDR_20' ) start [2025-03-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761663', 'tblTempVendorCDR_20' ) end [2025-03-25 19:35:19] Production.INFO: ProcessCDR(1,14761663,1,1,2) [2025-03-25 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761663', 'tblTempUsageDetail_20' ) start [2025-03-25 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761663', 'tblTempUsageDetail_20' ) end [2025-03-25 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:35:23] Production.INFO: ==16673== Releasing lock... [2025-03-25 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:35:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-25 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:36:05 [end_date_ymd] => 2025-03-25 19:36:05 [RateCDR] => 1 ) [2025-03-25 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:36:05' and `end` < '2025-03-25 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:36:18] Production.INFO: count ==3358 [2025-03-25 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:36:05 - End Time 2025-03-25 19:36:05 [2025-03-25 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761668', 'tblTempUsageDetail_20' ) start [2025-03-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761668', 'tblTempUsageDetail_20' ) end [2025-03-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761668', 'tblTempVendorCDR_20' ) start [2025-03-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761668', 'tblTempVendorCDR_20' ) end [2025-03-25 19:36:19] Production.INFO: ProcessCDR(1,14761668,1,1,2) [2025-03-25 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761668', 'tblTempUsageDetail_20' ) start [2025-03-25 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761668', 'tblTempUsageDetail_20' ) end [2025-03-25 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:36:23] Production.INFO: ==16805== Releasing lock... [2025-03-25 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:36:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-25 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:37:05 [end_date_ymd] => 2025-03-25 19:37:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:37:05' and `end` < '2025-03-25 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-03-25 19:37:18] Production.INFO: count ==3342 [2025-03-25 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:37:05 - End Time 2025-03-25 19:37:05 [2025-03-25 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761673', 'tblTempUsageDetail_20' ) start [2025-03-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761673', 'tblTempUsageDetail_20' ) end [2025-03-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761673', 'tblTempVendorCDR_20' ) start [2025-03-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761673', 'tblTempVendorCDR_20' ) end [2025-03-25 19:37:19] Production.INFO: ProcessCDR(1,14761673,1,1,2) [2025-03-25 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761673', 'tblTempUsageDetail_20' ) start [2025-03-25 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761673', 'tblTempUsageDetail_20' ) end [2025-03-25 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:37:23] Production.INFO: ==16899== Releasing lock... [2025-03-25 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:37:23] Production.INFO: 53 MB #Memory Used# [2025-03-25 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:38:05 [end_date_ymd] => 2025-03-25 19:38:05 [RateCDR] => 1 ) [2025-03-25 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:38:05' and `end` < '2025-03-25 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:38:18] Production.INFO: count ==3327 [2025-03-25 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:38:05 - End Time 2025-03-25 19:38:05 [2025-03-25 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761678', 'tblTempUsageDetail_20' ) start [2025-03-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761678', 'tblTempUsageDetail_20' ) end [2025-03-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761678', 'tblTempVendorCDR_20' ) start [2025-03-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761678', 'tblTempVendorCDR_20' ) end [2025-03-25 19:38:19] Production.INFO: ProcessCDR(1,14761678,1,1,2) [2025-03-25 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761678', 'tblTempUsageDetail_20' ) start [2025-03-25 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761678', 'tblTempUsageDetail_20' ) end [2025-03-25 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:38:22] Production.INFO: ==16988== Releasing lock... [2025-03-25 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:38:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-25 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:39:05 [end_date_ymd] => 2025-03-25 19:39:05 [RateCDR] => 1 ) [2025-03-25 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:39:05' and `end` < '2025-03-25 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:39:18] Production.INFO: count ==3321 [2025-03-25 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:39:05 - End Time 2025-03-25 19:39:05 [2025-03-25 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761683', 'tblTempUsageDetail_20' ) start [2025-03-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761683', 'tblTempUsageDetail_20' ) end [2025-03-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761683', 'tblTempVendorCDR_20' ) start [2025-03-25 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761683', 'tblTempVendorCDR_20' ) end [2025-03-25 19:39:19] Production.INFO: ProcessCDR(1,14761683,1,1,2) [2025-03-25 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761683', 'tblTempUsageDetail_20' ) start [2025-03-25 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761683', 'tblTempUsageDetail_20' ) end [2025-03-25 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:39:23] Production.INFO: ==17077== Releasing lock... [2025-03-25 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:39:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-25 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:40:06 [end_date_ymd] => 2025-03-25 19:40:06 [RateCDR] => 1 ) [2025-03-25 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:40:06' and `end` < '2025-03-25 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:40:19] Production.INFO: count ==3312 [2025-03-25 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:40:06 - End Time 2025-03-25 19:40:06 [2025-03-25 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761689', 'tblTempUsageDetail_20' ) start [2025-03-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761689', 'tblTempUsageDetail_20' ) end [2025-03-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761689', 'tblTempVendorCDR_20' ) start [2025-03-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761689', 'tblTempVendorCDR_20' ) end [2025-03-25 19:40:20] Production.INFO: ProcessCDR(1,14761689,1,1,2) [2025-03-25 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761689', 'tblTempUsageDetail_20' ) start [2025-03-25 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761689', 'tblTempUsageDetail_20' ) end [2025-03-25 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:40:24] Production.INFO: ==17170== Releasing lock... [2025-03-25 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:40:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-25 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:41:06 [end_date_ymd] => 2025-03-25 19:41:06 [RateCDR] => 1 ) [2025-03-25 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:41:06' and `end` < '2025-03-25 19: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-03-25 19:41:19] Production.INFO: count ==3272 [2025-03-25 19:41:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:41:06 - End Time 2025-03-25 19:41:06 [2025-03-25 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761694', 'tblTempUsageDetail_20' ) start [2025-03-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761694', 'tblTempUsageDetail_20' ) end [2025-03-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761694', 'tblTempVendorCDR_20' ) start [2025-03-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761694', 'tblTempVendorCDR_20' ) end [2025-03-25 19:41:20] Production.INFO: ProcessCDR(1,14761694,1,1,2) [2025-03-25 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761694', 'tblTempUsageDetail_20' ) start [2025-03-25 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761694', 'tblTempUsageDetail_20' ) end [2025-03-25 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:41:26] Production.INFO: ==17275== Releasing lock... [2025-03-25 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:41:26] Production.INFO: 52.5 MB #Memory Used# [2025-03-25 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:42:05 [end_date_ymd] => 2025-03-25 19:42:05 [RateCDR] => 1 ) [2025-03-25 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:42:05' and `end` < '2025-03-25 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:42:18] Production.INFO: count ==3264 [2025-03-25 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:42:05 - End Time 2025-03-25 19:42:05 [2025-03-25 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761699', 'tblTempUsageDetail_20' ) start [2025-03-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761699', 'tblTempUsageDetail_20' ) end [2025-03-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761699', 'tblTempVendorCDR_20' ) start [2025-03-25 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761699', 'tblTempVendorCDR_20' ) end [2025-03-25 19:42:19] Production.INFO: ProcessCDR(1,14761699,1,1,2) [2025-03-25 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761699', 'tblTempUsageDetail_20' ) start [2025-03-25 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761699', 'tblTempUsageDetail_20' ) end [2025-03-25 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:42:23] Production.INFO: ==17372== Releasing lock... [2025-03-25 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:42:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-25 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:43:05 [end_date_ymd] => 2025-03-25 19:43:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:43:05' and `end` < '2025-03-25 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-03-25 19:43:18] Production.INFO: count ==3255 [2025-03-25 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:43:05 - End Time 2025-03-25 19:43:05 [2025-03-25 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761704', 'tblTempUsageDetail_20' ) start [2025-03-25 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761704', 'tblTempUsageDetail_20' ) end [2025-03-25 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761704', 'tblTempVendorCDR_20' ) start [2025-03-25 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761704', 'tblTempVendorCDR_20' ) end [2025-03-25 19:43:20] Production.INFO: ProcessCDR(1,14761704,1,1,2) [2025-03-25 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761704', 'tblTempUsageDetail_20' ) start [2025-03-25 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761704', 'tblTempUsageDetail_20' ) end [2025-03-25 19:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:43:25] Production.INFO: ==17464== Releasing lock... [2025-03-25 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:43:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-25 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:44:05 [end_date_ymd] => 2025-03-25 19:44:05 [RateCDR] => 1 ) [2025-03-25 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:44:05' and `end` < '2025-03-25 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:44:19] Production.INFO: count ==3249 [2025-03-25 19:44:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:44:05 - End Time 2025-03-25 19:44:05 [2025-03-25 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761709', 'tblTempUsageDetail_20' ) start [2025-03-25 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761709', 'tblTempUsageDetail_20' ) end [2025-03-25 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761709', 'tblTempVendorCDR_20' ) start [2025-03-25 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761709', 'tblTempVendorCDR_20' ) end [2025-03-25 19:44:20] Production.INFO: ProcessCDR(1,14761709,1,1,2) [2025-03-25 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761709', 'tblTempUsageDetail_20' ) start [2025-03-25 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761709', 'tblTempUsageDetail_20' ) end [2025-03-25 19:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:44:25] Production.INFO: ==17553== Releasing lock... [2025-03-25 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:44:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-25 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:45:05 [end_date_ymd] => 2025-03-25 19:45:05 [RateCDR] => 1 ) [2025-03-25 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:45:05' and `end` < '2025-03-25 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:45:18] Production.INFO: count ==3233 [2025-03-25 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:45:05 - End Time 2025-03-25 19:45:05 [2025-03-25 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761714', 'tblTempUsageDetail_20' ) start [2025-03-25 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761714', 'tblTempUsageDetail_20' ) end [2025-03-25 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761714', 'tblTempVendorCDR_20' ) start [2025-03-25 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761714', 'tblTempVendorCDR_20' ) end [2025-03-25 19:45:19] Production.INFO: ProcessCDR(1,14761714,1,1,2) [2025-03-25 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761714', 'tblTempUsageDetail_20' ) start [2025-03-25 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761714', 'tblTempUsageDetail_20' ) end [2025-03-25 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:45:24] Production.INFO: ==17642== Releasing lock... [2025-03-25 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:45:24] Production.INFO: 53 MB #Memory Used# [2025-03-25 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:46:05 [end_date_ymd] => 2025-03-25 19:46:05 [RateCDR] => 1 ) [2025-03-25 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:46:05' and `end` < '2025-03-25 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:46:18] Production.INFO: count ==3225 [2025-03-25 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:46:05 - End Time 2025-03-25 19:46:05 [2025-03-25 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761719', 'tblTempUsageDetail_20' ) start [2025-03-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761719', 'tblTempUsageDetail_20' ) end [2025-03-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761719', 'tblTempVendorCDR_20' ) start [2025-03-25 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761719', 'tblTempVendorCDR_20' ) end [2025-03-25 19:46:19] Production.INFO: ProcessCDR(1,14761719,1,1,2) [2025-03-25 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761719', 'tblTempUsageDetail_20' ) start [2025-03-25 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761719', 'tblTempUsageDetail_20' ) end [2025-03-25 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:46:24] Production.INFO: ==17741== Releasing lock... [2025-03-25 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:46:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-25 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:47:05 [end_date_ymd] => 2025-03-25 19:47:05 [RateCDR] => 1 ) [2025-03-25 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:47:05' and `end` < '2025-03-25 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:47:18] Production.INFO: count ==3205 [2025-03-25 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:47:05 - End Time 2025-03-25 19:47:05 [2025-03-25 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761724', 'tblTempUsageDetail_20' ) start [2025-03-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761724', 'tblTempUsageDetail_20' ) end [2025-03-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761724', 'tblTempVendorCDR_20' ) start [2025-03-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761724', 'tblTempVendorCDR_20' ) end [2025-03-25 19:47:19] Production.INFO: ProcessCDR(1,14761724,1,1,2) [2025-03-25 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761724', 'tblTempUsageDetail_20' ) start [2025-03-25 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761724', 'tblTempUsageDetail_20' ) end [2025-03-25 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:47:24] Production.INFO: ==17837== Releasing lock... [2025-03-25 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:47:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-25 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:48:05 [end_date_ymd] => 2025-03-25 19:48:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:48:05' and `end` < '2025-03-25 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-03-25 19:48:18] Production.INFO: count ==3198 [2025-03-25 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:48:05 - End Time 2025-03-25 19:48:05 [2025-03-25 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761729', 'tblTempUsageDetail_20' ) start [2025-03-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761729', 'tblTempUsageDetail_20' ) end [2025-03-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761729', 'tblTempVendorCDR_20' ) start [2025-03-25 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761729', 'tblTempVendorCDR_20' ) end [2025-03-25 19:48:19] Production.INFO: ProcessCDR(1,14761729,1,1,2) [2025-03-25 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761729', 'tblTempUsageDetail_20' ) start [2025-03-25 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761729', 'tblTempUsageDetail_20' ) end [2025-03-25 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:48:24] Production.INFO: ==17929== Releasing lock... [2025-03-25 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:48:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-25 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:49:05 [end_date_ymd] => 2025-03-25 19:49:05 [RateCDR] => 1 ) [2025-03-25 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:49:05' and `end` < '2025-03-25 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:49:18] Production.INFO: count ==3183 [2025-03-25 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:49:05 - End Time 2025-03-25 19:49:05 [2025-03-25 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761734', 'tblTempUsageDetail_20' ) start [2025-03-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761734', 'tblTempUsageDetail_20' ) end [2025-03-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761734', 'tblTempVendorCDR_20' ) start [2025-03-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761734', 'tblTempVendorCDR_20' ) end [2025-03-25 19:49:19] Production.INFO: ProcessCDR(1,14761734,1,1,2) [2025-03-25 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761734', 'tblTempUsageDetail_20' ) start [2025-03-25 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761734', 'tblTempUsageDetail_20' ) end [2025-03-25 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:49:22] Production.INFO: ==18028== Releasing lock... [2025-03-25 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:49:22] Production.INFO: 52 MB #Memory Used# [2025-03-25 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:50:06 [end_date_ymd] => 2025-03-25 19:50:06 [RateCDR] => 1 ) [2025-03-25 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:50:06' and `end` < '2025-03-25 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:50:19] Production.INFO: count ==3176 [2025-03-25 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-25 16:50:06 - End Time 2025-03-25 19:50:06 [2025-03-25 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761740', 'tblTempUsageDetail_20' ) start [2025-03-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761740', 'tblTempUsageDetail_20' ) end [2025-03-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761740', 'tblTempVendorCDR_20' ) start [2025-03-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761740', 'tblTempVendorCDR_20' ) end [2025-03-25 19:50:20] Production.INFO: ProcessCDR(1,14761740,1,1,2) [2025-03-25 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761740', 'tblTempUsageDetail_20' ) start [2025-03-25 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761740', 'tblTempUsageDetail_20' ) end [2025-03-25 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:50:24] Production.INFO: ==18123== Releasing lock... [2025-03-25 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:50:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-25 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:51:05 [end_date_ymd] => 2025-03-25 19:51:05 [RateCDR] => 1 ) [2025-03-25 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:51:05' and `end` < '2025-03-25 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:51:18] Production.INFO: count ==3072 [2025-03-25 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:51:05 - End Time 2025-03-25 19:51:05 [2025-03-25 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761745', 'tblTempUsageDetail_20' ) start [2025-03-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761745', 'tblTempUsageDetail_20' ) end [2025-03-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761745', 'tblTempVendorCDR_20' ) start [2025-03-25 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761745', 'tblTempVendorCDR_20' ) end [2025-03-25 19:51:19] Production.INFO: ProcessCDR(1,14761745,1,1,2) [2025-03-25 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761745', 'tblTempUsageDetail_20' ) start [2025-03-25 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761745', 'tblTempUsageDetail_20' ) end [2025-03-25 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:51:25] Production.INFO: ==18263== Releasing lock... [2025-03-25 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:51:25] Production.INFO: 51 MB #Memory Used# [2025-03-25 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:52:06 [end_date_ymd] => 2025-03-25 19:52:06 [RateCDR] => 1 ) [2025-03-25 19:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:52:06' and `end` < '2025-03-25 19:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:52:18] Production.INFO: count ==3066 [2025-03-25 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:52:06 - End Time 2025-03-25 19:52:06 [2025-03-25 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761750', 'tblTempUsageDetail_20' ) start [2025-03-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761750', 'tblTempUsageDetail_20' ) end [2025-03-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761750', 'tblTempVendorCDR_20' ) start [2025-03-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761750', 'tblTempVendorCDR_20' ) end [2025-03-25 19:52:19] Production.INFO: ProcessCDR(1,14761750,1,1,2) [2025-03-25 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761750', 'tblTempUsageDetail_20' ) start [2025-03-25 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761750', 'tblTempUsageDetail_20' ) end [2025-03-25 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:52:23] Production.INFO: ==18368== Releasing lock... [2025-03-25 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:52:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-25 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:53:04 [end_date_ymd] => 2025-03-25 19:53:04 [RateCDR] => 1 ) [2025-03-25 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:53:04' and `end` < '2025-03-25 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:53:17] Production.INFO: count ==3071 [2025-03-25 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 16:53:04 - End Time 2025-03-25 19:53:04 [2025-03-25 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761755', 'tblTempUsageDetail_20' ) start [2025-03-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761755', 'tblTempUsageDetail_20' ) end [2025-03-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761755', 'tblTempVendorCDR_20' ) start [2025-03-25 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761755', 'tblTempVendorCDR_20' ) end [2025-03-25 19:53:18] Production.INFO: ProcessCDR(1,14761755,1,1,2) [2025-03-25 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761755', 'tblTempUsageDetail_20' ) start [2025-03-25 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761755', 'tblTempUsageDetail_20' ) end [2025-03-25 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:53:23] Production.INFO: ==18468== Releasing lock... [2025-03-25 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:53:23] Production.INFO: 51 MB #Memory Used# [2025-03-25 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:54:05 [end_date_ymd] => 2025-03-25 19:54:05 [RateCDR] => 1 ) [2025-03-25 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:54:05' and `end` < '2025-03-25 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:54:18] Production.INFO: count ==3066 [2025-03-25 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:54:05 - End Time 2025-03-25 19:54:05 [2025-03-25 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761760', 'tblTempUsageDetail_20' ) start [2025-03-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761760', 'tblTempUsageDetail_20' ) end [2025-03-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761760', 'tblTempVendorCDR_20' ) start [2025-03-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761760', 'tblTempVendorCDR_20' ) end [2025-03-25 19:54:19] Production.INFO: ProcessCDR(1,14761760,1,1,2) [2025-03-25 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761760', 'tblTempUsageDetail_20' ) start [2025-03-25 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761760', 'tblTempUsageDetail_20' ) end [2025-03-25 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:54:23] Production.INFO: ==18566== Releasing lock... [2025-03-25 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:54:23] Production.INFO: 51 MB #Memory Used# [2025-03-25 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:55:05 [end_date_ymd] => 2025-03-25 19:55:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:55:05' and `end` < '2025-03-25 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-03-25 19:55:18] Production.INFO: count ==3058 [2025-03-25 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:55:05 - End Time 2025-03-25 19:55:05 [2025-03-25 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761765', 'tblTempUsageDetail_20' ) start [2025-03-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761765', 'tblTempUsageDetail_20' ) end [2025-03-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761765', 'tblTempVendorCDR_20' ) start [2025-03-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761765', 'tblTempVendorCDR_20' ) end [2025-03-25 19:55:19] Production.INFO: ProcessCDR(1,14761765,1,1,2) [2025-03-25 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761765', 'tblTempUsageDetail_20' ) start [2025-03-25 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761765', 'tblTempUsageDetail_20' ) end [2025-03-25 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:55:24] Production.INFO: ==18663== Releasing lock... [2025-03-25 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:55:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-25 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:56:05 [end_date_ymd] => 2025-03-25 19:56:05 [RateCDR] => 1 ) [2025-03-25 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:56:05' and `end` < '2025-03-25 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:56:18] Production.INFO: count ==3053 [2025-03-25 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:56:05 - End Time 2025-03-25 19:56:05 [2025-03-25 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761770', 'tblTempUsageDetail_20' ) start [2025-03-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761770', 'tblTempUsageDetail_20' ) end [2025-03-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761770', 'tblTempVendorCDR_20' ) start [2025-03-25 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761770', 'tblTempVendorCDR_20' ) end [2025-03-25 19:56:19] Production.INFO: ProcessCDR(1,14761770,1,1,2) [2025-03-25 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761770', 'tblTempUsageDetail_20' ) start [2025-03-25 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761770', 'tblTempUsageDetail_20' ) end [2025-03-25 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:56:24] Production.INFO: ==18769== Releasing lock... [2025-03-25 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:56:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-25 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:57:05 [end_date_ymd] => 2025-03-25 19:57:05 [RateCDR] => 1 ) [2025-03-25 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:57:05' and `end` < '2025-03-25 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:57:17] Production.INFO: count ==3051 [2025-03-25 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 16:57:05 - End Time 2025-03-25 19:57:05 [2025-03-25 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761775', 'tblTempUsageDetail_20' ) start [2025-03-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761775', 'tblTempUsageDetail_20' ) end [2025-03-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761775', 'tblTempVendorCDR_20' ) start [2025-03-25 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761775', 'tblTempVendorCDR_20' ) end [2025-03-25 19:57:18] Production.INFO: ProcessCDR(1,14761775,1,1,2) [2025-03-25 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761775', 'tblTempUsageDetail_20' ) start [2025-03-25 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761775', 'tblTempUsageDetail_20' ) end [2025-03-25 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:57:24] Production.INFO: ==18861== Releasing lock... [2025-03-25 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:57:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-25 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:58:05 [end_date_ymd] => 2025-03-25 19:58:05 [RateCDR] => 1 ) [2025-03-25 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 16:58:05' and `end` < '2025-03-25 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 19:58:18] Production.INFO: count ==3051 [2025-03-25 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:58:05 - End Time 2025-03-25 19:58:05 [2025-03-25 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761780', 'tblTempUsageDetail_20' ) start [2025-03-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761780', 'tblTempUsageDetail_20' ) end [2025-03-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761780', 'tblTempVendorCDR_20' ) start [2025-03-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761780', 'tblTempVendorCDR_20' ) end [2025-03-25 19:58:19] Production.INFO: ProcessCDR(1,14761780,1,1,2) [2025-03-25 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761780', 'tblTempUsageDetail_20' ) start [2025-03-25 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761780', 'tblTempUsageDetail_20' ) end [2025-03-25 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:58:24] Production.INFO: ==18960== Releasing lock... [2025-03-25 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:58:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-25 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 16:59:05 [end_date_ymd] => 2025-03-25 19:59:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 16:59:05' and `end` < '2025-03-25 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-03-25 19:59:18] Production.INFO: count ==3040 [2025-03-25 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-25 16:59:05 - End Time 2025-03-25 19:59:05 [2025-03-25 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761785', 'tblTempUsageDetail_20' ) start [2025-03-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761785', 'tblTempUsageDetail_20' ) end [2025-03-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761785', 'tblTempVendorCDR_20' ) start [2025-03-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761785', 'tblTempVendorCDR_20' ) end [2025-03-25 19:59:19] Production.INFO: ProcessCDR(1,14761785,1,1,2) [2025-03-25 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761785', 'tblTempUsageDetail_20' ) start [2025-03-25 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761785', 'tblTempUsageDetail_20' ) end [2025-03-25 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 19:59:22] Production.INFO: ==19050== Releasing lock... [2025-03-25 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 19:59:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-25 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:00:06 [end_date_ymd] => 2025-03-25 20:00:06 [RateCDR] => 1 ) [2025-03-25 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:00:06' and `end` < '2025-03-25 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:00:19] Production.INFO: count ==3045 [2025-03-25 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-25 17:00:06 - End Time 2025-03-25 20:00:06 [2025-03-25 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761790', 'tblTempUsageDetail_20' ) start [2025-03-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761790', 'tblTempUsageDetail_20' ) end [2025-03-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761790', 'tblTempVendorCDR_20' ) start [2025-03-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761790', 'tblTempVendorCDR_20' ) end [2025-03-25 20:00:20] Production.INFO: ProcessCDR(1,14761790,1,1,2) [2025-03-25 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761790', 'tblTempUsageDetail_20' ) start [2025-03-25 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761790', 'tblTempUsageDetail_20' ) end [2025-03-25 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:00:25] Production.INFO: ==19153== Releasing lock... [2025-03-25 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:00:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-25 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:01:05 [end_date_ymd] => 2025-03-25 20:01:05 [RateCDR] => 1 ) [2025-03-25 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:01:05' and `end` < '2025-03-25 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:01:18] Production.INFO: count ==2964 [2025-03-25 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:01:05 - End Time 2025-03-25 20:01:05 [2025-03-25 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761796', 'tblTempUsageDetail_20' ) start [2025-03-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761796', 'tblTempUsageDetail_20' ) end [2025-03-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761796', 'tblTempVendorCDR_20' ) start [2025-03-25 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761796', 'tblTempVendorCDR_20' ) end [2025-03-25 20:01:19] Production.INFO: ProcessCDR(1,14761796,1,1,2) [2025-03-25 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761796', 'tblTempUsageDetail_20' ) start [2025-03-25 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761796', 'tblTempUsageDetail_20' ) end [2025-03-25 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:01:23] Production.INFO: ==19307== Releasing lock... [2025-03-25 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:01:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-25 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:02:05 [end_date_ymd] => 2025-03-25 20:02:05 [RateCDR] => 1 ) [2025-03-25 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:02:05' and `end` < '2025-03-25 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:02:18] Production.INFO: count ==2946 [2025-03-25 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:02:05 - End Time 2025-03-25 20:02:05 [2025-03-25 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761801', 'tblTempUsageDetail_20' ) start [2025-03-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761801', 'tblTempUsageDetail_20' ) end [2025-03-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761801', 'tblTempVendorCDR_20' ) start [2025-03-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761801', 'tblTempVendorCDR_20' ) end [2025-03-25 20:02:19] Production.INFO: ProcessCDR(1,14761801,1,1,2) [2025-03-25 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761801', 'tblTempUsageDetail_20' ) start [2025-03-25 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761801', 'tblTempUsageDetail_20' ) end [2025-03-25 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:02:22] Production.INFO: ==19408== Releasing lock... [2025-03-25 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:02:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-25 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:03:05 [end_date_ymd] => 2025-03-25 20:03:05 [RateCDR] => 1 ) [2025-03-25 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:03:05' and `end` < '2025-03-25 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:03:18] Production.INFO: count ==2930 [2025-03-25 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:03:05 - End Time 2025-03-25 20:03:05 [2025-03-25 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761806', 'tblTempUsageDetail_20' ) start [2025-03-25 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761806', 'tblTempUsageDetail_20' ) end [2025-03-25 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761806', 'tblTempVendorCDR_20' ) start [2025-03-25 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761806', 'tblTempVendorCDR_20' ) end [2025-03-25 20:03:19] Production.INFO: ProcessCDR(1,14761806,1,1,2) [2025-03-25 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761806', 'tblTempUsageDetail_20' ) start [2025-03-25 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761806', 'tblTempUsageDetail_20' ) end [2025-03-25 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:03:23] Production.INFO: ==19512== Releasing lock... [2025-03-25 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:03:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:04:05 [end_date_ymd] => 2025-03-25 20:04:05 [RateCDR] => 1 ) [2025-03-25 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:04:05' and `end` < '2025-03-25 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:04:18] Production.INFO: count ==2922 [2025-03-25 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:04:05 - End Time 2025-03-25 20:04:05 [2025-03-25 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761811', 'tblTempUsageDetail_20' ) start [2025-03-25 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761811', 'tblTempUsageDetail_20' ) end [2025-03-25 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761811', 'tblTempVendorCDR_20' ) start [2025-03-25 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761811', 'tblTempVendorCDR_20' ) end [2025-03-25 20:04:19] Production.INFO: ProcessCDR(1,14761811,1,1,2) [2025-03-25 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761811', 'tblTempUsageDetail_20' ) start [2025-03-25 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761811', 'tblTempUsageDetail_20' ) end [2025-03-25 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:04:24] Production.INFO: ==19613== Releasing lock... [2025-03-25 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:04:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:05:05 [end_date_ymd] => 2025-03-25 20:05:05 [RateCDR] => 1 ) [2025-03-25 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:05:05' and `end` < '2025-03-25 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:05:18] Production.INFO: count ==2899 [2025-03-25 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:05:05 - End Time 2025-03-25 20:05:05 [2025-03-25 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761816', 'tblTempUsageDetail_20' ) start [2025-03-25 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761816', 'tblTempUsageDetail_20' ) end [2025-03-25 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761816', 'tblTempVendorCDR_20' ) start [2025-03-25 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761816', 'tblTempVendorCDR_20' ) end [2025-03-25 20:05:19] Production.INFO: ProcessCDR(1,14761816,1,1,2) [2025-03-25 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761816', 'tblTempUsageDetail_20' ) start [2025-03-25 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761816', 'tblTempUsageDetail_20' ) end [2025-03-25 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:05:23] Production.INFO: ==19718== Releasing lock... [2025-03-25 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:05:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:06:05 [end_date_ymd] => 2025-03-25 20:06:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:06:05' and `end` < '2025-03-25 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-03-25 20:06:18] Production.INFO: count ==2906 [2025-03-25 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:06:05 - End Time 2025-03-25 20:06:05 [2025-03-25 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761821', 'tblTempUsageDetail_20' ) start [2025-03-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761821', 'tblTempUsageDetail_20' ) end [2025-03-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761821', 'tblTempVendorCDR_20' ) start [2025-03-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761821', 'tblTempVendorCDR_20' ) end [2025-03-25 20:06:19] Production.INFO: ProcessCDR(1,14761821,1,1,2) [2025-03-25 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761821', 'tblTempUsageDetail_20' ) start [2025-03-25 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761821', 'tblTempUsageDetail_20' ) end [2025-03-25 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:06:22] Production.INFO: ==19857== Releasing lock... [2025-03-25 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:06:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:07:06 [end_date_ymd] => 2025-03-25 20:07:06 [RateCDR] => 1 ) [2025-03-25 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:07:06' and `end` < '2025-03-25 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:07:19] Production.INFO: count ==2906 [2025-03-25 20:07:20] Production.ERROR: pbx CDR StartTime 2025-03-25 17:07:06 - End Time 2025-03-25 20:07:06 [2025-03-25 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761826', 'tblTempUsageDetail_20' ) start [2025-03-25 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761826', 'tblTempUsageDetail_20' ) end [2025-03-25 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761826', 'tblTempVendorCDR_20' ) start [2025-03-25 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761826', 'tblTempVendorCDR_20' ) end [2025-03-25 20:07:20] Production.INFO: ProcessCDR(1,14761826,1,1,2) [2025-03-25 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761826', 'tblTempUsageDetail_20' ) start [2025-03-25 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761826', 'tblTempUsageDetail_20' ) end [2025-03-25 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:07:23] Production.INFO: ==19962== Releasing lock... [2025-03-25 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:07:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:08:04 [end_date_ymd] => 2025-03-25 20:08:04 [RateCDR] => 1 ) [2025-03-25 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:08:04' and `end` < '2025-03-25 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:08:17] Production.INFO: count ==2911 [2025-03-25 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:08:04 - End Time 2025-03-25 20:08:04 [2025-03-25 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761831', 'tblTempUsageDetail_20' ) start [2025-03-25 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761831', 'tblTempUsageDetail_20' ) end [2025-03-25 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761831', 'tblTempVendorCDR_20' ) start [2025-03-25 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761831', 'tblTempVendorCDR_20' ) end [2025-03-25 20:08:18] Production.INFO: ProcessCDR(1,14761831,1,1,2) [2025-03-25 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761831', 'tblTempUsageDetail_20' ) start [2025-03-25 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761831', 'tblTempUsageDetail_20' ) end [2025-03-25 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:08:23] Production.INFO: ==20069== Releasing lock... [2025-03-25 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:08:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:09:05 [end_date_ymd] => 2025-03-25 20:09:05 [RateCDR] => 1 ) [2025-03-25 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:09:05' and `end` < '2025-03-25 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:09:18] Production.INFO: count ==2904 [2025-03-25 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:09:05 - End Time 2025-03-25 20:09:05 [2025-03-25 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761836', 'tblTempUsageDetail_20' ) start [2025-03-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761836', 'tblTempUsageDetail_20' ) end [2025-03-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761836', 'tblTempVendorCDR_20' ) start [2025-03-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761836', 'tblTempVendorCDR_20' ) end [2025-03-25 20:09:19] Production.INFO: ProcessCDR(1,14761836,1,1,2) [2025-03-25 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761836', 'tblTempUsageDetail_20' ) start [2025-03-25 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761836', 'tblTempUsageDetail_20' ) end [2025-03-25 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:09:24] Production.INFO: ==20174== Releasing lock... [2025-03-25 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:09:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:10:05 [end_date_ymd] => 2025-03-25 20:10:05 [RateCDR] => 1 ) [2025-03-25 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:10:05' and `end` < '2025-03-25 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:10:18] Production.INFO: count ==2893 [2025-03-25 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:10:05 - End Time 2025-03-25 20:10:05 [2025-03-25 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761841', 'tblTempUsageDetail_20' ) start [2025-03-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761841', 'tblTempUsageDetail_20' ) end [2025-03-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761841', 'tblTempVendorCDR_20' ) start [2025-03-25 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761841', 'tblTempVendorCDR_20' ) end [2025-03-25 20:10:19] Production.INFO: ProcessCDR(1,14761841,1,1,2) [2025-03-25 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761841', 'tblTempUsageDetail_20' ) start [2025-03-25 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761841', 'tblTempUsageDetail_20' ) end [2025-03-25 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:10:23] Production.INFO: ==20276== Releasing lock... [2025-03-25 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:10:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-25 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:11:05 [end_date_ymd] => 2025-03-25 20:11:05 [RateCDR] => 1 ) [2025-03-25 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:11:05' and `end` < '2025-03-25 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:11:18] Production.INFO: count ==2773 [2025-03-25 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:11:05 - End Time 2025-03-25 20:11:05 [2025-03-25 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761847', 'tblTempUsageDetail_20' ) start [2025-03-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761847', 'tblTempUsageDetail_20' ) end [2025-03-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761847', 'tblTempVendorCDR_20' ) start [2025-03-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761847', 'tblTempVendorCDR_20' ) end [2025-03-25 20:11:19] Production.INFO: ProcessCDR(1,14761847,1,1,2) [2025-03-25 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761847', 'tblTempUsageDetail_20' ) start [2025-03-25 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761847', 'tblTempUsageDetail_20' ) end [2025-03-25 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:11:22] Production.INFO: ==20390== Releasing lock... [2025-03-25 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:11:22] Production.INFO: 49 MB #Memory Used# [2025-03-25 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:12:06 [end_date_ymd] => 2025-03-25 20:12:06 [RateCDR] => 1 ) [2025-03-25 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:12:06' and `end` < '2025-03-25 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:12:19] Production.INFO: count ==2758 [2025-03-25 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:12:06 - End Time 2025-03-25 20:12:06 [2025-03-25 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761852', 'tblTempUsageDetail_20' ) start [2025-03-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761852', 'tblTempUsageDetail_20' ) end [2025-03-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761852', 'tblTempVendorCDR_20' ) start [2025-03-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761852', 'tblTempVendorCDR_20' ) end [2025-03-25 20:12:20] Production.INFO: ProcessCDR(1,14761852,1,1,2) [2025-03-25 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761852', 'tblTempUsageDetail_20' ) start [2025-03-25 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761852', 'tblTempUsageDetail_20' ) end [2025-03-25 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:12:24] Production.INFO: ==20483== Releasing lock... [2025-03-25 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:12:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:13:05 [end_date_ymd] => 2025-03-25 20:13:05 [RateCDR] => 1 ) [2025-03-25 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:13:05' and `end` < '2025-03-25 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:13:18] Production.INFO: count ==2757 [2025-03-25 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:13:05 - End Time 2025-03-25 20:13:05 [2025-03-25 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761857', 'tblTempUsageDetail_20' ) start [2025-03-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761857', 'tblTempUsageDetail_20' ) end [2025-03-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761857', 'tblTempVendorCDR_20' ) start [2025-03-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761857', 'tblTempVendorCDR_20' ) end [2025-03-25 20:13:19] Production.INFO: ProcessCDR(1,14761857,1,1,2) [2025-03-25 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761857', 'tblTempUsageDetail_20' ) start [2025-03-25 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761857', 'tblTempUsageDetail_20' ) end [2025-03-25 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:13:22] Production.INFO: ==20583== Releasing lock... [2025-03-25 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:13:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:14:06 [end_date_ymd] => 2025-03-25 20:14:06 [RateCDR] => 1 ) [2025-03-25 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:14:06' and `end` < '2025-03-25 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:14:19] Production.INFO: count ==2750 [2025-03-25 20:14:20] Production.ERROR: pbx CDR StartTime 2025-03-25 17:14:06 - End Time 2025-03-25 20:14:06 [2025-03-25 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761862', 'tblTempUsageDetail_20' ) start [2025-03-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761862', 'tblTempUsageDetail_20' ) end [2025-03-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761862', 'tblTempVendorCDR_20' ) start [2025-03-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761862', 'tblTempVendorCDR_20' ) end [2025-03-25 20:14:20] Production.INFO: ProcessCDR(1,14761862,1,1,2) [2025-03-25 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761862', 'tblTempUsageDetail_20' ) start [2025-03-25 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761862', 'tblTempUsageDetail_20' ) end [2025-03-25 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:14:23] Production.INFO: ==20685== Releasing lock... [2025-03-25 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:14:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:15:05 [end_date_ymd] => 2025-03-25 20:15:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:15:05' and `end` < '2025-03-25 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-03-25 20:15:18] Production.INFO: count ==2751 [2025-03-25 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:15:05 - End Time 2025-03-25 20:15:05 [2025-03-25 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761867', 'tblTempUsageDetail_20' ) start [2025-03-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761867', 'tblTempUsageDetail_20' ) end [2025-03-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761867', 'tblTempVendorCDR_20' ) start [2025-03-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761867', 'tblTempVendorCDR_20' ) end [2025-03-25 20:15:19] Production.INFO: ProcessCDR(1,14761867,1,1,2) [2025-03-25 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761867', 'tblTempUsageDetail_20' ) start [2025-03-25 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761867', 'tblTempUsageDetail_20' ) end [2025-03-25 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:15:22] Production.INFO: ==20790== Releasing lock... [2025-03-25 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:15:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:16:06 [end_date_ymd] => 2025-03-25 20:16:06 [RateCDR] => 1 ) [2025-03-25 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:16:06' and `end` < '2025-03-25 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:16:18] Production.INFO: count ==2757 [2025-03-25 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:16:06 - End Time 2025-03-25 20:16:06 [2025-03-25 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761872', 'tblTempUsageDetail_20' ) start [2025-03-25 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761872', 'tblTempUsageDetail_20' ) end [2025-03-25 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761872', 'tblTempVendorCDR_20' ) start [2025-03-25 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761872', 'tblTempVendorCDR_20' ) end [2025-03-25 20:16:19] Production.INFO: ProcessCDR(1,14761872,1,1,2) [2025-03-25 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761872', 'tblTempUsageDetail_20' ) start [2025-03-25 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761872', 'tblTempUsageDetail_20' ) end [2025-03-25 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:16:24] Production.INFO: ==20890== Releasing lock... [2025-03-25 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:16:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:17:05 [end_date_ymd] => 2025-03-25 20:17:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:17:05' and `end` < '2025-03-25 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-03-25 20:17:18] Production.INFO: count ==2751 [2025-03-25 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:17:05 - End Time 2025-03-25 20:17:05 [2025-03-25 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761877', 'tblTempUsageDetail_20' ) start [2025-03-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761877', 'tblTempUsageDetail_20' ) end [2025-03-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761877', 'tblTempVendorCDR_20' ) start [2025-03-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761877', 'tblTempVendorCDR_20' ) end [2025-03-25 20:17:19] Production.INFO: ProcessCDR(1,14761877,1,1,2) [2025-03-25 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761877', 'tblTempUsageDetail_20' ) start [2025-03-25 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761877', 'tblTempUsageDetail_20' ) end [2025-03-25 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:17:24] Production.INFO: ==20984== Releasing lock... [2025-03-25 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:17:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:18:06 [end_date_ymd] => 2025-03-25 20:18:06 [RateCDR] => 1 ) [2025-03-25 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:18:06' and `end` < '2025-03-25 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:18:19] Production.INFO: count ==2755 [2025-03-25 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:18:06 - End Time 2025-03-25 20:18:06 [2025-03-25 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761882', 'tblTempUsageDetail_20' ) start [2025-03-25 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761882', 'tblTempUsageDetail_20' ) end [2025-03-25 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761882', 'tblTempVendorCDR_20' ) start [2025-03-25 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761882', 'tblTempVendorCDR_20' ) end [2025-03-25 20:18:20] Production.INFO: ProcessCDR(1,14761882,1,1,2) [2025-03-25 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761882', 'tblTempUsageDetail_20' ) start [2025-03-25 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761882', 'tblTempUsageDetail_20' ) end [2025-03-25 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:18:25] Production.INFO: ==21088== Releasing lock... [2025-03-25 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:18:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:19:05 [end_date_ymd] => 2025-03-25 20:19:05 [RateCDR] => 1 ) [2025-03-25 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:19:05' and `end` < '2025-03-25 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:19:17] Production.INFO: count ==2731 [2025-03-25 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:19:05 - End Time 2025-03-25 20:19:05 [2025-03-25 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761887', 'tblTempUsageDetail_20' ) start [2025-03-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761887', 'tblTempUsageDetail_20' ) end [2025-03-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761887', 'tblTempVendorCDR_20' ) start [2025-03-25 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761887', 'tblTempVendorCDR_20' ) end [2025-03-25 20:19:18] Production.INFO: ProcessCDR(1,14761887,1,1,2) [2025-03-25 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761887', 'tblTempUsageDetail_20' ) start [2025-03-25 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761887', 'tblTempUsageDetail_20' ) end [2025-03-25 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:19:22] Production.INFO: ==21188== Releasing lock... [2025-03-25 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:19:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-25 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:20:06 [end_date_ymd] => 2025-03-25 20:20:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:20:06' and `end` < '2025-03-25 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-03-25 20:20:19] Production.INFO: count ==2760 [2025-03-25 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:20:06 - End Time 2025-03-25 20:20:06 [2025-03-25 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761892', 'tblTempUsageDetail_20' ) start [2025-03-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761892', 'tblTempUsageDetail_20' ) end [2025-03-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761892', 'tblTempVendorCDR_20' ) start [2025-03-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761892', 'tblTempVendorCDR_20' ) end [2025-03-25 20:20:20] Production.INFO: ProcessCDR(1,14761892,1,1,2) [2025-03-25 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761892', 'tblTempUsageDetail_20' ) start [2025-03-25 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761892', 'tblTempUsageDetail_20' ) end [2025-03-25 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:20:25] Production.INFO: ==21282== Releasing lock... [2025-03-25 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:20:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-25 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:21:04 [end_date_ymd] => 2025-03-25 20:21:04 [RateCDR] => 1 ) [2025-03-25 20: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-03-25 17:21:04' and `end` < '2025-03-25 20: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-03-25 20:21:17] Production.INFO: count ==2691 [2025-03-25 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:21:04 - End Time 2025-03-25 20:21:04 [2025-03-25 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761898', 'tblTempUsageDetail_20' ) start [2025-03-25 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761898', 'tblTempUsageDetail_20' ) end [2025-03-25 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761898', 'tblTempVendorCDR_20' ) start [2025-03-25 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761898', 'tblTempVendorCDR_20' ) end [2025-03-25 20:21:18] Production.INFO: ProcessCDR(1,14761898,1,1,2) [2025-03-25 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761898', 'tblTempUsageDetail_20' ) start [2025-03-25 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761898', 'tblTempUsageDetail_20' ) end [2025-03-25 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:21:23] Production.INFO: ==21392== Releasing lock... [2025-03-25 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:21:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-25 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:22:05 [end_date_ymd] => 2025-03-25 20:22:05 [RateCDR] => 1 ) [2025-03-25 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:22:05' and `end` < '2025-03-25 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:22:18] Production.INFO: count ==2665 [2025-03-25 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:22:05 - End Time 2025-03-25 20:22:05 [2025-03-25 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761903', 'tblTempUsageDetail_20' ) start [2025-03-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761903', 'tblTempUsageDetail_20' ) end [2025-03-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761903', 'tblTempVendorCDR_20' ) start [2025-03-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761903', 'tblTempVendorCDR_20' ) end [2025-03-25 20:22:19] Production.INFO: ProcessCDR(1,14761903,1,1,2) [2025-03-25 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761903', 'tblTempUsageDetail_20' ) start [2025-03-25 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761903', 'tblTempUsageDetail_20' ) end [2025-03-25 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:22:24] Production.INFO: ==21529== Releasing lock... [2025-03-25 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:22:24] Production.INFO: 48 MB #Memory Used# [2025-03-25 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:23:05 [end_date_ymd] => 2025-03-25 20:23:05 [RateCDR] => 1 ) [2025-03-25 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:23:05' and `end` < '2025-03-25 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:23:18] Production.INFO: count ==2663 [2025-03-25 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:23:05 - End Time 2025-03-25 20:23:05 [2025-03-25 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761908', 'tblTempUsageDetail_20' ) start [2025-03-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761908', 'tblTempUsageDetail_20' ) end [2025-03-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761908', 'tblTempVendorCDR_20' ) start [2025-03-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761908', 'tblTempVendorCDR_20' ) end [2025-03-25 20:23:19] Production.INFO: ProcessCDR(1,14761908,1,1,2) [2025-03-25 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761908', 'tblTempUsageDetail_20' ) start [2025-03-25 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761908', 'tblTempUsageDetail_20' ) end [2025-03-25 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:23:22] Production.INFO: ==21623== Releasing lock... [2025-03-25 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:23:22] Production.INFO: 48 MB #Memory Used# [2025-03-25 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:24:06 [end_date_ymd] => 2025-03-25 20:24:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:24:06' and `end` < '2025-03-25 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-03-25 20:24:18] Production.INFO: count ==2664 [2025-03-25 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:24:06 - End Time 2025-03-25 20:24:06 [2025-03-25 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761913', 'tblTempUsageDetail_20' ) start [2025-03-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761913', 'tblTempUsageDetail_20' ) end [2025-03-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761913', 'tblTempVendorCDR_20' ) start [2025-03-25 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761913', 'tblTempVendorCDR_20' ) end [2025-03-25 20:24:19] Production.INFO: ProcessCDR(1,14761913,1,1,2) [2025-03-25 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761913', 'tblTempUsageDetail_20' ) start [2025-03-25 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761913', 'tblTempUsageDetail_20' ) end [2025-03-25 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:24:24] Production.INFO: ==21722== Releasing lock... [2025-03-25 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:24:24] Production.INFO: 48 MB #Memory Used# [2025-03-25 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:25:05 [end_date_ymd] => 2025-03-25 20:25:05 [RateCDR] => 1 ) [2025-03-25 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:25:05' and `end` < '2025-03-25 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:25:18] Production.INFO: count ==2653 [2025-03-25 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:25:05 - End Time 2025-03-25 20:25:05 [2025-03-25 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761918', 'tblTempUsageDetail_20' ) start [2025-03-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761918', 'tblTempUsageDetail_20' ) end [2025-03-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761918', 'tblTempVendorCDR_20' ) start [2025-03-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761918', 'tblTempVendorCDR_20' ) end [2025-03-25 20:25:19] Production.INFO: ProcessCDR(1,14761918,1,1,2) [2025-03-25 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761918', 'tblTempUsageDetail_20' ) start [2025-03-25 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761918', 'tblTempUsageDetail_20' ) end [2025-03-25 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:25:24] Production.INFO: ==21821== Releasing lock... [2025-03-25 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:25:24] Production.INFO: 48 MB #Memory Used# [2025-03-25 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:26:05 [end_date_ymd] => 2025-03-25 20:26:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:26:05' and `end` < '2025-03-25 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-03-25 20:26:18] Production.INFO: count ==2656 [2025-03-25 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:26:05 - End Time 2025-03-25 20:26:05 [2025-03-25 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761923', 'tblTempUsageDetail_20' ) start [2025-03-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761923', 'tblTempUsageDetail_20' ) end [2025-03-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761923', 'tblTempVendorCDR_20' ) start [2025-03-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761923', 'tblTempVendorCDR_20' ) end [2025-03-25 20:26:19] Production.INFO: ProcessCDR(1,14761923,1,1,2) [2025-03-25 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761923', 'tblTempUsageDetail_20' ) start [2025-03-25 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761923', 'tblTempUsageDetail_20' ) end [2025-03-25 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:26:24] Production.INFO: ==21916== Releasing lock... [2025-03-25 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:26:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-25 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:27:05 [end_date_ymd] => 2025-03-25 20:27:05 [RateCDR] => 1 ) [2025-03-25 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:27:05' and `end` < '2025-03-25 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:27:17] Production.INFO: count ==2650 [2025-03-25 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:27:05 - End Time 2025-03-25 20:27:05 [2025-03-25 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761928', 'tblTempUsageDetail_20' ) start [2025-03-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761928', 'tblTempUsageDetail_20' ) end [2025-03-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761928', 'tblTempVendorCDR_20' ) start [2025-03-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761928', 'tblTempVendorCDR_20' ) end [2025-03-25 20:27:18] Production.INFO: ProcessCDR(1,14761928,1,1,2) [2025-03-25 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761928', 'tblTempUsageDetail_20' ) start [2025-03-25 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761928', 'tblTempUsageDetail_20' ) end [2025-03-25 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:27:23] Production.INFO: ==22034== Releasing lock... [2025-03-25 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:27:23] Production.INFO: 48 MB #Memory Used# [2025-03-25 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:28:05 [end_date_ymd] => 2025-03-25 20:28:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:28:05' and `end` < '2025-03-25 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-03-25 20:28:18] Production.INFO: count ==2635 [2025-03-25 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:28:05 - End Time 2025-03-25 20:28:05 [2025-03-25 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761933', 'tblTempUsageDetail_20' ) start [2025-03-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761933', 'tblTempUsageDetail_20' ) end [2025-03-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761933', 'tblTempVendorCDR_20' ) start [2025-03-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761933', 'tblTempVendorCDR_20' ) end [2025-03-25 20:28:19] Production.INFO: ProcessCDR(1,14761933,1,1,2) [2025-03-25 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761933', 'tblTempUsageDetail_20' ) start [2025-03-25 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761933', 'tblTempUsageDetail_20' ) end [2025-03-25 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:28:22] Production.INFO: ==22138== Releasing lock... [2025-03-25 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:28:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-25 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:29:06 [end_date_ymd] => 2025-03-25 20:29:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:29:06' and `end` < '2025-03-25 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-03-25 20:29:19] Production.INFO: count ==2633 [2025-03-25 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:29:06 - End Time 2025-03-25 20:29:06 [2025-03-25 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761938', 'tblTempUsageDetail_20' ) start [2025-03-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761938', 'tblTempUsageDetail_20' ) end [2025-03-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761938', 'tblTempVendorCDR_20' ) start [2025-03-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761938', 'tblTempVendorCDR_20' ) end [2025-03-25 20:29:19] Production.INFO: ProcessCDR(1,14761938,1,1,2) [2025-03-25 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761938', 'tblTempUsageDetail_20' ) start [2025-03-25 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761938', 'tblTempUsageDetail_20' ) end [2025-03-25 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:29:23] Production.INFO: ==22232== Releasing lock... [2025-03-25 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:29:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-25 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:30:06 [end_date_ymd] => 2025-03-25 20:30:06 [RateCDR] => 1 ) [2025-03-25 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:30:06' and `end` < '2025-03-25 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:30:18] Production.INFO: count ==2604 [2025-03-25 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:30:06 - End Time 2025-03-25 20:30:06 [2025-03-25 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761943', 'tblTempUsageDetail_20' ) start [2025-03-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761943', 'tblTempUsageDetail_20' ) end [2025-03-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761943', 'tblTempVendorCDR_20' ) start [2025-03-25 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761943', 'tblTempVendorCDR_20' ) end [2025-03-25 20:30:19] Production.INFO: ProcessCDR(1,14761943,1,1,2) [2025-03-25 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761943', 'tblTempUsageDetail_20' ) start [2025-03-25 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761943', 'tblTempUsageDetail_20' ) end [2025-03-25 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:30:24] Production.INFO: ==22341== Releasing lock... [2025-03-25 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:30:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-25 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:31:05 [end_date_ymd] => 2025-03-25 20:31:05 [RateCDR] => 1 ) [2025-03-25 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:31:05' and `end` < '2025-03-25 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:31:18] Production.INFO: count ==2544 [2025-03-25 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:31:05 - End Time 2025-03-25 20:31:05 [2025-03-25 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761949', 'tblTempUsageDetail_20' ) start [2025-03-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761949', 'tblTempUsageDetail_20' ) end [2025-03-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761949', 'tblTempVendorCDR_20' ) start [2025-03-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761949', 'tblTempVendorCDR_20' ) end [2025-03-25 20:31:19] Production.INFO: ProcessCDR(1,14761949,1,1,2) [2025-03-25 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761949', 'tblTempUsageDetail_20' ) start [2025-03-25 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761949', 'tblTempUsageDetail_20' ) end [2025-03-25 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:31:22] Production.INFO: ==22442== Releasing lock... [2025-03-25 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:31:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-25 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:32:05 [end_date_ymd] => 2025-03-25 20:32:05 [RateCDR] => 1 ) [2025-03-25 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:32:05' and `end` < '2025-03-25 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:32:17] Production.INFO: count ==2520 [2025-03-25 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:32:05 - End Time 2025-03-25 20:32:05 [2025-03-25 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761954', 'tblTempUsageDetail_20' ) start [2025-03-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761954', 'tblTempUsageDetail_20' ) end [2025-03-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761954', 'tblTempVendorCDR_20' ) start [2025-03-25 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761954', 'tblTempVendorCDR_20' ) end [2025-03-25 20:32:18] Production.INFO: ProcessCDR(1,14761954,1,1,2) [2025-03-25 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761954', 'tblTempUsageDetail_20' ) start [2025-03-25 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761954', 'tblTempUsageDetail_20' ) end [2025-03-25 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:32:23] Production.INFO: ==22540== Releasing lock... [2025-03-25 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:32:23] Production.INFO: 47 MB #Memory Used# [2025-03-25 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:33:06 [end_date_ymd] => 2025-03-25 20:33:06 [RateCDR] => 1 ) [2025-03-25 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:33:06' and `end` < '2025-03-25 20: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-03-25 20:33:18] Production.INFO: count ==2513 [2025-03-25 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:33:06 - End Time 2025-03-25 20:33:06 [2025-03-25 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761959', 'tblTempUsageDetail_20' ) start [2025-03-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761959', 'tblTempUsageDetail_20' ) end [2025-03-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761959', 'tblTempVendorCDR_20' ) start [2025-03-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761959', 'tblTempVendorCDR_20' ) end [2025-03-25 20:33:19] Production.INFO: ProcessCDR(1,14761959,1,1,2) [2025-03-25 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761959', 'tblTempUsageDetail_20' ) start [2025-03-25 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761959', 'tblTempUsageDetail_20' ) end [2025-03-25 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:33:24] Production.INFO: ==22631== Releasing lock... [2025-03-25 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:33:24] Production.INFO: 47 MB #Memory Used# [2025-03-25 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:34:05 [end_date_ymd] => 2025-03-25 20:34:05 [RateCDR] => 1 ) [2025-03-25 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:34:05' and `end` < '2025-03-25 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:34:17] Production.INFO: count ==2529 [2025-03-25 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:34:05 - End Time 2025-03-25 20:34:05 [2025-03-25 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761964', 'tblTempUsageDetail_20' ) start [2025-03-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761964', 'tblTempUsageDetail_20' ) end [2025-03-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761964', 'tblTempVendorCDR_20' ) start [2025-03-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761964', 'tblTempVendorCDR_20' ) end [2025-03-25 20:34:18] Production.INFO: ProcessCDR(1,14761964,1,1,2) [2025-03-25 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761964', 'tblTempUsageDetail_20' ) start [2025-03-25 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761964', 'tblTempUsageDetail_20' ) end [2025-03-25 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:34:24] Production.INFO: ==22724== Releasing lock... [2025-03-25 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:34:24] Production.INFO: 47 MB #Memory Used# [2025-03-25 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:35:05 [end_date_ymd] => 2025-03-25 20:35:05 [RateCDR] => 1 ) [2025-03-25 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:35:05' and `end` < '2025-03-25 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:35:18] Production.INFO: count ==2531 [2025-03-25 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:35:05 - End Time 2025-03-25 20:35:05 [2025-03-25 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761969', 'tblTempUsageDetail_20' ) start [2025-03-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761969', 'tblTempUsageDetail_20' ) end [2025-03-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761969', 'tblTempVendorCDR_20' ) start [2025-03-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761969', 'tblTempVendorCDR_20' ) end [2025-03-25 20:35:19] Production.INFO: ProcessCDR(1,14761969,1,1,2) [2025-03-25 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761969', 'tblTempUsageDetail_20' ) start [2025-03-25 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761969', 'tblTempUsageDetail_20' ) end [2025-03-25 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:35:22] Production.INFO: ==22828== Releasing lock... [2025-03-25 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:35:22] Production.INFO: 47 MB #Memory Used# [2025-03-25 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:36:05 [end_date_ymd] => 2025-03-25 20:36:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:36:05' and `end` < '2025-03-25 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-03-25 20:36:18] Production.INFO: count ==2527 [2025-03-25 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:36:05 - End Time 2025-03-25 20:36:05 [2025-03-25 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761974', 'tblTempUsageDetail_20' ) start [2025-03-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761974', 'tblTempUsageDetail_20' ) end [2025-03-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761974', 'tblTempVendorCDR_20' ) start [2025-03-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761974', 'tblTempVendorCDR_20' ) end [2025-03-25 20:36:19] Production.INFO: ProcessCDR(1,14761974,1,1,2) [2025-03-25 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761974', 'tblTempUsageDetail_20' ) start [2025-03-25 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761974', 'tblTempUsageDetail_20' ) end [2025-03-25 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:36:22] Production.INFO: ==22920== Releasing lock... [2025-03-25 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:36:22] Production.INFO: 47 MB #Memory Used# [2025-03-25 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:37:05 [end_date_ymd] => 2025-03-25 20:37:05 [RateCDR] => 1 ) [2025-03-25 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:37:05' and `end` < '2025-03-25 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:37:18] Production.INFO: count ==2505 [2025-03-25 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:37:05 - End Time 2025-03-25 20:37:05 [2025-03-25 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761979', 'tblTempUsageDetail_20' ) start [2025-03-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761979', 'tblTempUsageDetail_20' ) end [2025-03-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761979', 'tblTempVendorCDR_20' ) start [2025-03-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761979', 'tblTempVendorCDR_20' ) end [2025-03-25 20:37:19] Production.INFO: ProcessCDR(1,14761979,1,1,2) [2025-03-25 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761979', 'tblTempUsageDetail_20' ) start [2025-03-25 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761979', 'tblTempUsageDetail_20' ) end [2025-03-25 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:37:22] Production.INFO: ==23060== Releasing lock... [2025-03-25 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:37:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-25 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:38:05 [end_date_ymd] => 2025-03-25 20:38:05 [RateCDR] => 1 ) [2025-03-25 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:38:05' and `end` < '2025-03-25 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:38:18] Production.INFO: count ==2507 [2025-03-25 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:38:05 - End Time 2025-03-25 20:38:05 [2025-03-25 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761984', 'tblTempUsageDetail_20' ) start [2025-03-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761984', 'tblTempUsageDetail_20' ) end [2025-03-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761984', 'tblTempVendorCDR_20' ) start [2025-03-25 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761984', 'tblTempVendorCDR_20' ) end [2025-03-25 20:38:18] Production.INFO: ProcessCDR(1,14761984,1,1,2) [2025-03-25 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761984', 'tblTempUsageDetail_20' ) start [2025-03-25 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761984', 'tblTempUsageDetail_20' ) end [2025-03-25 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:38:24] Production.INFO: ==23159== Releasing lock... [2025-03-25 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:38:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-25 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:39:05 [end_date_ymd] => 2025-03-25 20:39:05 [RateCDR] => 1 ) [2025-03-25 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:39:05' and `end` < '2025-03-25 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:39:18] Production.INFO: count ==2473 [2025-03-25 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:39:05 - End Time 2025-03-25 20:39:05 [2025-03-25 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761989', 'tblTempUsageDetail_20' ) start [2025-03-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761989', 'tblTempUsageDetail_20' ) end [2025-03-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761989', 'tblTempVendorCDR_20' ) start [2025-03-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761989', 'tblTempVendorCDR_20' ) end [2025-03-25 20:39:19] Production.INFO: ProcessCDR(1,14761989,1,1,2) [2025-03-25 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761989', 'tblTempUsageDetail_20' ) start [2025-03-25 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761989', 'tblTempUsageDetail_20' ) end [2025-03-25 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:39:22] Production.INFO: ==23255== Releasing lock... [2025-03-25 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:39:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-25 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:40:05 [end_date_ymd] => 2025-03-25 20:40:05 [RateCDR] => 1 ) [2025-03-25 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:40:05' and `end` < '2025-03-25 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:40:18] Production.INFO: count ==2462 [2025-03-25 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:40:05 - End Time 2025-03-25 20:40:05 [2025-03-25 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761995', 'tblTempUsageDetail_20' ) start [2025-03-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14761995', 'tblTempUsageDetail_20' ) end [2025-03-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761995', 'tblTempVendorCDR_20' ) start [2025-03-25 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14761995', 'tblTempVendorCDR_20' ) end [2025-03-25 20:40:19] Production.INFO: ProcessCDR(1,14761995,1,1,2) [2025-03-25 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14761995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14761995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14761995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14761995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761995', 'tblTempUsageDetail_20' ) start [2025-03-25 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14761995', 'tblTempUsageDetail_20' ) end [2025-03-25 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:40:24] Production.INFO: ==23357== Releasing lock... [2025-03-25 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:40:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-25 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:41:05 [end_date_ymd] => 2025-03-25 20:41:05 [RateCDR] => 1 ) [2025-03-25 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:41:05' and `end` < '2025-03-25 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:41:18] Production.INFO: count ==2349 [2025-03-25 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:41:05 - End Time 2025-03-25 20:41:05 [2025-03-25 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762000', 'tblTempUsageDetail_20' ) start [2025-03-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762000', 'tblTempUsageDetail_20' ) end [2025-03-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762000', 'tblTempVendorCDR_20' ) start [2025-03-25 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762000', 'tblTempVendorCDR_20' ) end [2025-03-25 20:41:18] Production.INFO: ProcessCDR(1,14762000,1,1,2) [2025-03-25 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762000', 'tblTempUsageDetail_20' ) start [2025-03-25 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762000', 'tblTempUsageDetail_20' ) end [2025-03-25 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:41:23] Production.INFO: ==23457== Releasing lock... [2025-03-25 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:41:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-25 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:42:06 [end_date_ymd] => 2025-03-25 20:42:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:42:06' and `end` < '2025-03-25 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-03-25 20:42:18] Production.INFO: count ==2350 [2025-03-25 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:42:06 - End Time 2025-03-25 20:42:06 [2025-03-25 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762005', 'tblTempUsageDetail_20' ) start [2025-03-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762005', 'tblTempUsageDetail_20' ) end [2025-03-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762005', 'tblTempVendorCDR_20' ) start [2025-03-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762005', 'tblTempVendorCDR_20' ) end [2025-03-25 20:42:19] Production.INFO: ProcessCDR(1,14762005,1,1,2) [2025-03-25 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762005', 'tblTempUsageDetail_20' ) start [2025-03-25 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762005', 'tblTempUsageDetail_20' ) end [2025-03-25 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:42:24] Production.INFO: ==23555== Releasing lock... [2025-03-25 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:42:24] Production.INFO: 46 MB #Memory Used# [2025-03-25 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:43:05 [end_date_ymd] => 2025-03-25 20:43:05 [RateCDR] => 1 ) [2025-03-25 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:43:05' and `end` < '2025-03-25 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:43:17] Production.INFO: count ==2325 [2025-03-25 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:43:05 - End Time 2025-03-25 20:43:05 [2025-03-25 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762010', 'tblTempUsageDetail_20' ) start [2025-03-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762010', 'tblTempUsageDetail_20' ) end [2025-03-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762010', 'tblTempVendorCDR_20' ) start [2025-03-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762010', 'tblTempVendorCDR_20' ) end [2025-03-25 20:43:18] Production.INFO: ProcessCDR(1,14762010,1,1,2) [2025-03-25 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762010', 'tblTempUsageDetail_20' ) start [2025-03-25 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762010', 'tblTempUsageDetail_20' ) end [2025-03-25 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:43:21] Production.INFO: ==23649== Releasing lock... [2025-03-25 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:43:21] Production.INFO: 45.75 MB #Memory Used# [2025-03-25 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:44:05 [end_date_ymd] => 2025-03-25 20:44:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:44:05' and `end` < '2025-03-25 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-03-25 20:44:18] Production.INFO: count ==2321 [2025-03-25 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:44:05 - End Time 2025-03-25 20:44:05 [2025-03-25 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762015', 'tblTempUsageDetail_20' ) start [2025-03-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762015', 'tblTempUsageDetail_20' ) end [2025-03-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762015', 'tblTempVendorCDR_20' ) start [2025-03-25 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762015', 'tblTempVendorCDR_20' ) end [2025-03-25 20:44:18] Production.INFO: ProcessCDR(1,14762015,1,1,2) [2025-03-25 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762015', 'tblTempUsageDetail_20' ) start [2025-03-25 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762015', 'tblTempUsageDetail_20' ) end [2025-03-25 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:44:22] Production.INFO: ==23749== Releasing lock... [2025-03-25 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:44:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-25 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:45:05 [end_date_ymd] => 2025-03-25 20:45:05 [RateCDR] => 1 ) [2025-03-25 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:45:05' and `end` < '2025-03-25 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:45:18] Production.INFO: count ==2314 [2025-03-25 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:45:05 - End Time 2025-03-25 20:45:05 [2025-03-25 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762020', 'tblTempUsageDetail_20' ) start [2025-03-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762020', 'tblTempUsageDetail_20' ) end [2025-03-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762020', 'tblTempVendorCDR_20' ) start [2025-03-25 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762020', 'tblTempVendorCDR_20' ) end [2025-03-25 20:45:18] Production.INFO: ProcessCDR(1,14762020,1,1,2) [2025-03-25 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762020', 'tblTempUsageDetail_20' ) start [2025-03-25 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762020', 'tblTempUsageDetail_20' ) end [2025-03-25 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:45:22] Production.INFO: ==23849== Releasing lock... [2025-03-25 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:45:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-25 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:46:05 [end_date_ymd] => 2025-03-25 20:46:05 [RateCDR] => 1 ) [2025-03-25 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:46:05' and `end` < '2025-03-25 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:46:18] Production.INFO: count ==2308 [2025-03-25 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:46:05 - End Time 2025-03-25 20:46:05 [2025-03-25 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762025', 'tblTempUsageDetail_20' ) start [2025-03-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762025', 'tblTempUsageDetail_20' ) end [2025-03-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762025', 'tblTempVendorCDR_20' ) start [2025-03-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762025', 'tblTempVendorCDR_20' ) end [2025-03-25 20:46:19] Production.INFO: ProcessCDR(1,14762025,1,1,2) [2025-03-25 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762025', 'tblTempUsageDetail_20' ) start [2025-03-25 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762025', 'tblTempUsageDetail_20' ) end [2025-03-25 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:46:24] Production.INFO: ==23943== Releasing lock... [2025-03-25 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:46:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-25 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:47:05 [end_date_ymd] => 2025-03-25 20:47:05 [RateCDR] => 1 ) [2025-03-25 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:47:05' and `end` < '2025-03-25 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:47:18] Production.INFO: count ==2303 [2025-03-25 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:47:05 - End Time 2025-03-25 20:47:05 [2025-03-25 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762030', 'tblTempUsageDetail_20' ) start [2025-03-25 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762030', 'tblTempUsageDetail_20' ) end [2025-03-25 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762030', 'tblTempVendorCDR_20' ) start [2025-03-25 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762030', 'tblTempVendorCDR_20' ) end [2025-03-25 20:47:18] Production.INFO: ProcessCDR(1,14762030,1,1,2) [2025-03-25 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762030', 'tblTempUsageDetail_20' ) start [2025-03-25 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762030', 'tblTempUsageDetail_20' ) end [2025-03-25 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:47:23] Production.INFO: ==24041== Releasing lock... [2025-03-25 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:47:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-25 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:48:05 [end_date_ymd] => 2025-03-25 20:48:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 17:48:05' and `end` < '2025-03-25 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-03-25 20:48:18] Production.INFO: count ==2299 [2025-03-25 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:48:05 - End Time 2025-03-25 20:48:05 [2025-03-25 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762035', 'tblTempUsageDetail_20' ) start [2025-03-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762035', 'tblTempUsageDetail_20' ) end [2025-03-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762035', 'tblTempVendorCDR_20' ) start [2025-03-25 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762035', 'tblTempVendorCDR_20' ) end [2025-03-25 20:48:19] Production.INFO: ProcessCDR(1,14762035,1,1,2) [2025-03-25 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762035', 'tblTempUsageDetail_20' ) start [2025-03-25 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762035', 'tblTempUsageDetail_20' ) end [2025-03-25 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:48:23] Production.INFO: ==24140== Releasing lock... [2025-03-25 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:48:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-25 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:49:05 [end_date_ymd] => 2025-03-25 20:49:05 [RateCDR] => 1 ) [2025-03-25 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:49:05' and `end` < '2025-03-25 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:49:17] Production.INFO: count ==2292 [2025-03-25 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:49:05 - End Time 2025-03-25 20:49:05 [2025-03-25 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762040', 'tblTempUsageDetail_20' ) start [2025-03-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762040', 'tblTempUsageDetail_20' ) end [2025-03-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762040', 'tblTempVendorCDR_20' ) start [2025-03-25 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762040', 'tblTempVendorCDR_20' ) end [2025-03-25 20:49:18] Production.INFO: ProcessCDR(1,14762040,1,1,2) [2025-03-25 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762040', 'tblTempUsageDetail_20' ) start [2025-03-25 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762040', 'tblTempUsageDetail_20' ) end [2025-03-25 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:49:22] Production.INFO: ==24234== Releasing lock... [2025-03-25 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:49:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-25 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:50:06 [end_date_ymd] => 2025-03-25 20:50:06 [RateCDR] => 1 ) [2025-03-25 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:50:06' and `end` < '2025-03-25 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:50:18] Production.INFO: count ==2256 [2025-03-25 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:50:06 - End Time 2025-03-25 20:50:06 [2025-03-25 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762045', 'tblTempUsageDetail_20' ) start [2025-03-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762045', 'tblTempUsageDetail_20' ) end [2025-03-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762045', 'tblTempVendorCDR_20' ) start [2025-03-25 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762045', 'tblTempVendorCDR_20' ) end [2025-03-25 20:50:19] Production.INFO: ProcessCDR(1,14762045,1,1,2) [2025-03-25 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762045', 'tblTempUsageDetail_20' ) start [2025-03-25 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762045', 'tblTempUsageDetail_20' ) end [2025-03-25 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:50:23] Production.INFO: ==24337== Releasing lock... [2025-03-25 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:50:23] Production.INFO: 45 MB #Memory Used# [2025-03-25 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:51:05 [end_date_ymd] => 2025-03-25 20:51:05 [RateCDR] => 1 ) [2025-03-25 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:51:05' and `end` < '2025-03-25 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:51:17] Production.INFO: count ==2169 [2025-03-25 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:51:05 - End Time 2025-03-25 20:51:05 [2025-03-25 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762051', 'tblTempUsageDetail_20' ) start [2025-03-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762051', 'tblTempUsageDetail_20' ) end [2025-03-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762051', 'tblTempVendorCDR_20' ) start [2025-03-25 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762051', 'tblTempVendorCDR_20' ) end [2025-03-25 20:51:18] Production.INFO: ProcessCDR(1,14762051,1,1,2) [2025-03-25 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762051', 'tblTempUsageDetail_20' ) start [2025-03-25 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762051', 'tblTempUsageDetail_20' ) end [2025-03-25 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:51:22] Production.INFO: ==24431== Releasing lock... [2025-03-25 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:51:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:52:05 [end_date_ymd] => 2025-03-25 20:52:05 [RateCDR] => 1 ) [2025-03-25 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:52:05' and `end` < '2025-03-25 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:52:18] Production.INFO: count ==2173 [2025-03-25 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:52:05 - End Time 2025-03-25 20:52:05 [2025-03-25 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762056', 'tblTempUsageDetail_20' ) start [2025-03-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762056', 'tblTempUsageDetail_20' ) end [2025-03-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762056', 'tblTempVendorCDR_20' ) start [2025-03-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762056', 'tblTempVendorCDR_20' ) end [2025-03-25 20:52:19] Production.INFO: ProcessCDR(1,14762056,1,1,2) [2025-03-25 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762056', 'tblTempUsageDetail_20' ) start [2025-03-25 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762056', 'tblTempUsageDetail_20' ) end [2025-03-25 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:52:23] Production.INFO: ==24530== Releasing lock... [2025-03-25 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:52:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-25 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:53:06 [end_date_ymd] => 2025-03-25 20:53:06 [RateCDR] => 1 ) [2025-03-25 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:53:06' and `end` < '2025-03-25 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:53:19] Production.INFO: count ==2175 [2025-03-25 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:53:06 - End Time 2025-03-25 20:53:06 [2025-03-25 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762061', 'tblTempUsageDetail_20' ) start [2025-03-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762061', 'tblTempUsageDetail_20' ) end [2025-03-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762061', 'tblTempVendorCDR_20' ) start [2025-03-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762061', 'tblTempVendorCDR_20' ) end [2025-03-25 20:53:19] Production.INFO: ProcessCDR(1,14762061,1,1,2) [2025-03-25 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762061', 'tblTempUsageDetail_20' ) start [2025-03-25 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762061', 'tblTempUsageDetail_20' ) end [2025-03-25 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:53:24] Production.INFO: ==24666== Releasing lock... [2025-03-25 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:53:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-25 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:54:05 [end_date_ymd] => 2025-03-25 20:54:05 [RateCDR] => 1 ) [2025-03-25 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:54:05' and `end` < '2025-03-25 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:54:17] Production.INFO: count ==2158 [2025-03-25 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:54:05 - End Time 2025-03-25 20:54:05 [2025-03-25 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762066', 'tblTempUsageDetail_20' ) start [2025-03-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762066', 'tblTempUsageDetail_20' ) end [2025-03-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762066', 'tblTempVendorCDR_20' ) start [2025-03-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762066', 'tblTempVendorCDR_20' ) end [2025-03-25 20:54:18] Production.INFO: ProcessCDR(1,14762066,1,1,2) [2025-03-25 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762066', 'tblTempUsageDetail_20' ) start [2025-03-25 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762066', 'tblTempUsageDetail_20' ) end [2025-03-25 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:54:21] Production.INFO: ==24767== Releasing lock... [2025-03-25 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:54:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:55:06 [end_date_ymd] => 2025-03-25 20:55:06 [RateCDR] => 1 ) [2025-03-25 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:55:06' and `end` < '2025-03-25 20: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-03-25 20:55:18] Production.INFO: count ==2158 [2025-03-25 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:55:06 - End Time 2025-03-25 20:55:06 [2025-03-25 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762071', 'tblTempUsageDetail_20' ) start [2025-03-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762071', 'tblTempUsageDetail_20' ) end [2025-03-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762071', 'tblTempVendorCDR_20' ) start [2025-03-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762071', 'tblTempVendorCDR_20' ) end [2025-03-25 20:55:19] Production.INFO: ProcessCDR(1,14762071,1,1,2) [2025-03-25 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762071', 'tblTempUsageDetail_20' ) start [2025-03-25 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762071', 'tblTempUsageDetail_20' ) end [2025-03-25 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:55:22] Production.INFO: ==24868== Releasing lock... [2025-03-25 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:55:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:56:05 [end_date_ymd] => 2025-03-25 20:56:05 [RateCDR] => 1 ) [2025-03-25 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:56:05' and `end` < '2025-03-25 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:56:18] Production.INFO: count ==2148 [2025-03-25 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:56:05 - End Time 2025-03-25 20:56:05 [2025-03-25 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762076', 'tblTempUsageDetail_20' ) start [2025-03-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762076', 'tblTempUsageDetail_20' ) end [2025-03-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762076', 'tblTempVendorCDR_20' ) start [2025-03-25 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762076', 'tblTempVendorCDR_20' ) end [2025-03-25 20:56:18] Production.INFO: ProcessCDR(1,14762076,1,1,2) [2025-03-25 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762076', 'tblTempUsageDetail_20' ) start [2025-03-25 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762076', 'tblTempUsageDetail_20' ) end [2025-03-25 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:56:24] Production.INFO: ==24971== Releasing lock... [2025-03-25 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:56:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:57:05 [end_date_ymd] => 2025-03-25 20:57:05 [RateCDR] => 1 ) [2025-03-25 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:57:05' and `end` < '2025-03-25 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:57:18] Production.INFO: count ==2141 [2025-03-25 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:57:05 - End Time 2025-03-25 20:57:05 [2025-03-25 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762081', 'tblTempUsageDetail_20' ) start [2025-03-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762081', 'tblTempUsageDetail_20' ) end [2025-03-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762081', 'tblTempVendorCDR_20' ) start [2025-03-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762081', 'tblTempVendorCDR_20' ) end [2025-03-25 20:57:19] Production.INFO: ProcessCDR(1,14762081,1,1,2) [2025-03-25 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762081', 'tblTempUsageDetail_20' ) start [2025-03-25 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762081', 'tblTempUsageDetail_20' ) end [2025-03-25 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:57:22] Production.INFO: ==25073== Releasing lock... [2025-03-25 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:57:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-25 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:58:05 [end_date_ymd] => 2025-03-25 20:58:05 [RateCDR] => 1 ) [2025-03-25 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 17:58:05' and `end` < '2025-03-25 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 20:58:18] Production.INFO: count ==2128 [2025-03-25 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 17:58:05 - End Time 2025-03-25 20:58:05 [2025-03-25 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762086', 'tblTempUsageDetail_20' ) start [2025-03-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762086', 'tblTempUsageDetail_20' ) end [2025-03-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762086', 'tblTempVendorCDR_20' ) start [2025-03-25 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762086', 'tblTempVendorCDR_20' ) end [2025-03-25 20:58:18] Production.INFO: ProcessCDR(1,14762086,1,1,2) [2025-03-25 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762086', 'tblTempUsageDetail_20' ) start [2025-03-25 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762086', 'tblTempUsageDetail_20' ) end [2025-03-25 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:58:22] Production.INFO: ==25170== Releasing lock... [2025-03-25 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:58:22] Production.INFO: 44 MB #Memory Used# [2025-03-25 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 17:59:06 [end_date_ymd] => 2025-03-25 20:59:06 [RateCDR] => 1 ) [2025-03-25 20: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-03-25 17:59:06' and `end` < '2025-03-25 20: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-03-25 20:59:18] Production.INFO: count ==2118 [2025-03-25 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-25 17:59:06 - End Time 2025-03-25 20:59:06 [2025-03-25 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762091', 'tblTempUsageDetail_20' ) start [2025-03-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762091', 'tblTempUsageDetail_20' ) end [2025-03-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762091', 'tblTempVendorCDR_20' ) start [2025-03-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762091', 'tblTempVendorCDR_20' ) end [2025-03-25 20:59:19] Production.INFO: ProcessCDR(1,14762091,1,1,2) [2025-03-25 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762091', 'tblTempUsageDetail_20' ) start [2025-03-25 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762091', 'tblTempUsageDetail_20' ) end [2025-03-25 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 20:59:25] Production.INFO: ==25272== Releasing lock... [2025-03-25 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 20:59:25] Production.INFO: 44 MB #Memory Used# [2025-03-25 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:00:06 [end_date_ymd] => 2025-03-25 21:00:06 [RateCDR] => 1 ) [2025-03-25 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:00:06' and `end` < '2025-03-25 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:00:19] Production.INFO: count ==2110 [2025-03-25 21:00:20] Production.ERROR: pbx CDR StartTime 2025-03-25 18:00:06 - End Time 2025-03-25 21:00:06 [2025-03-25 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762097', 'tblTempUsageDetail_20' ) start [2025-03-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762097', 'tblTempUsageDetail_20' ) end [2025-03-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762097', 'tblTempVendorCDR_20' ) start [2025-03-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762097', 'tblTempVendorCDR_20' ) end [2025-03-25 21:00:20] Production.INFO: ProcessCDR(1,14762097,1,1,2) [2025-03-25 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762097', 'tblTempUsageDetail_20' ) start [2025-03-25 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762097', 'tblTempUsageDetail_20' ) end [2025-03-25 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:00:23] Production.INFO: ==25384== Releasing lock... [2025-03-25 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:00:23] Production.INFO: 44 MB #Memory Used# [2025-03-25 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:01:05 [end_date_ymd] => 2025-03-25 21:01:05 [RateCDR] => 1 ) [2025-03-25 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:01:05' and `end` < '2025-03-25 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:01:18] Production.INFO: count ==2055 [2025-03-25 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:01:05 - End Time 2025-03-25 21:01:05 [2025-03-25 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762102', 'tblTempUsageDetail_20' ) start [2025-03-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762102', 'tblTempUsageDetail_20' ) end [2025-03-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762102', 'tblTempVendorCDR_20' ) start [2025-03-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762102', 'tblTempVendorCDR_20' ) end [2025-03-25 21:01:19] Production.INFO: ProcessCDR(1,14762102,1,1,2) [2025-03-25 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762102', 'tblTempUsageDetail_20' ) start [2025-03-25 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762102', 'tblTempUsageDetail_20' ) end [2025-03-25 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:01:22] Production.INFO: ==25500== Releasing lock... [2025-03-25 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:01:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-25 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:02:05 [end_date_ymd] => 2025-03-25 21:02:05 [RateCDR] => 1 ) [2025-03-25 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:02:05' and `end` < '2025-03-25 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:02:18] Production.INFO: count ==2039 [2025-03-25 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:02:05 - End Time 2025-03-25 21:02:05 [2025-03-25 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762107', 'tblTempUsageDetail_20' ) start [2025-03-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762107', 'tblTempUsageDetail_20' ) end [2025-03-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762107', 'tblTempVendorCDR_20' ) start [2025-03-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762107', 'tblTempVendorCDR_20' ) end [2025-03-25 21:02:19] Production.INFO: ProcessCDR(1,14762107,1,1,2) [2025-03-25 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762107', 'tblTempUsageDetail_20' ) start [2025-03-25 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762107', 'tblTempUsageDetail_20' ) end [2025-03-25 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:02:22] Production.INFO: ==25604== Releasing lock... [2025-03-25 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:02:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-25 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:03:05 [end_date_ymd] => 2025-03-25 21:03:05 [RateCDR] => 1 ) [2025-03-25 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:03:05' and `end` < '2025-03-25 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:03:18] Production.INFO: count ==2013 [2025-03-25 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:03:05 - End Time 2025-03-25 21:03:05 [2025-03-25 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762112', 'tblTempUsageDetail_20' ) start [2025-03-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762112', 'tblTempUsageDetail_20' ) end [2025-03-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762112', 'tblTempVendorCDR_20' ) start [2025-03-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762112', 'tblTempVendorCDR_20' ) end [2025-03-25 21:03:18] Production.INFO: ProcessCDR(1,14762112,1,1,2) [2025-03-25 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762112', 'tblTempUsageDetail_20' ) start [2025-03-25 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762112', 'tblTempUsageDetail_20' ) end [2025-03-25 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:03:22] Production.INFO: ==25713== Releasing lock... [2025-03-25 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:03:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-25 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:04:05 [end_date_ymd] => 2025-03-25 21:04:05 [RateCDR] => 1 ) [2025-03-25 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:04:05' and `end` < '2025-03-25 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:04:18] Production.INFO: count ==2007 [2025-03-25 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:04:05 - End Time 2025-03-25 21:04:05 [2025-03-25 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762117', 'tblTempUsageDetail_20' ) start [2025-03-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762117', 'tblTempUsageDetail_20' ) end [2025-03-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762117', 'tblTempVendorCDR_20' ) start [2025-03-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762117', 'tblTempVendorCDR_20' ) end [2025-03-25 21:04:19] Production.INFO: ProcessCDR(1,14762117,1,1,2) [2025-03-25 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762117', 'tblTempUsageDetail_20' ) start [2025-03-25 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762117', 'tblTempUsageDetail_20' ) end [2025-03-25 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:04:22] Production.INFO: ==25824== Releasing lock... [2025-03-25 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:04:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-25 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:05:06 [end_date_ymd] => 2025-03-25 21:05:06 [RateCDR] => 1 ) [2025-03-25 21:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:05:06' and `end` < '2025-03-25 21: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-03-25 21:05:18] Production.INFO: count ==2006 [2025-03-25 21:05:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:05:06 - End Time 2025-03-25 21:05:06 [2025-03-25 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762122', 'tblTempUsageDetail_20' ) start [2025-03-25 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762122', 'tblTempUsageDetail_20' ) end [2025-03-25 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762122', 'tblTempVendorCDR_20' ) start [2025-03-25 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762122', 'tblTempVendorCDR_20' ) end [2025-03-25 21:05:19] Production.INFO: ProcessCDR(1,14762122,1,1,2) [2025-03-25 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762122', 'tblTempUsageDetail_20' ) start [2025-03-25 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762122', 'tblTempUsageDetail_20' ) end [2025-03-25 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:05:23] Production.INFO: ==25926== Releasing lock... [2025-03-25 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:05:23] Production.INFO: 43 MB #Memory Used# [2025-03-25 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:06:06 [end_date_ymd] => 2025-03-25 21:06:06 [RateCDR] => 1 ) [2025-03-25 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:06:06' and `end` < '2025-03-25 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:06:19] Production.INFO: count ==1993 [2025-03-25 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:06:06 - End Time 2025-03-25 21:06:06 [2025-03-25 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762127', 'tblTempUsageDetail_20' ) start [2025-03-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762127', 'tblTempUsageDetail_20' ) end [2025-03-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762127', 'tblTempVendorCDR_20' ) start [2025-03-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762127', 'tblTempVendorCDR_20' ) end [2025-03-25 21:06:19] Production.INFO: ProcessCDR(1,14762127,1,1,2) [2025-03-25 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762127', 'tblTempUsageDetail_20' ) start [2025-03-25 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762127', 'tblTempUsageDetail_20' ) end [2025-03-25 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:06:23] Production.INFO: ==26030== Releasing lock... [2025-03-25 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:06:23] Production.INFO: 43 MB #Memory Used# [2025-03-25 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:07:05 [end_date_ymd] => 2025-03-25 21:07:05 [RateCDR] => 1 ) [2025-03-25 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:07:05' and `end` < '2025-03-25 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:07:18] Production.INFO: count ==1977 [2025-03-25 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:07:05 - End Time 2025-03-25 21:07:05 [2025-03-25 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762132', 'tblTempUsageDetail_20' ) start [2025-03-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762132', 'tblTempUsageDetail_20' ) end [2025-03-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762132', 'tblTempVendorCDR_20' ) start [2025-03-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762132', 'tblTempVendorCDR_20' ) end [2025-03-25 21:07:19] Production.INFO: ProcessCDR(1,14762132,1,1,2) [2025-03-25 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762132', 'tblTempUsageDetail_20' ) start [2025-03-25 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762132', 'tblTempUsageDetail_20' ) end [2025-03-25 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:07:22] Production.INFO: ==26143== Releasing lock... [2025-03-25 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:07:22] Production.INFO: 43 MB #Memory Used# [2025-03-25 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:08:06 [end_date_ymd] => 2025-03-25 21:08:06 [RateCDR] => 1 ) [2025-03-25 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:08:06' and `end` < '2025-03-25 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:08:18] Production.INFO: count ==1947 [2025-03-25 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:08:06 - End Time 2025-03-25 21:08:06 [2025-03-25 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762137', 'tblTempUsageDetail_20' ) start [2025-03-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762137', 'tblTempUsageDetail_20' ) end [2025-03-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762137', 'tblTempVendorCDR_20' ) start [2025-03-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762137', 'tblTempVendorCDR_20' ) end [2025-03-25 21:08:19] Production.INFO: ProcessCDR(1,14762137,1,1,2) [2025-03-25 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762137', 'tblTempUsageDetail_20' ) start [2025-03-25 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762137', 'tblTempUsageDetail_20' ) end [2025-03-25 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:08:22] Production.INFO: ==26277== Releasing lock... [2025-03-25 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:08:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-25 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:09:04 [end_date_ymd] => 2025-03-25 21:09:04 [RateCDR] => 1 ) [2025-03-25 21: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-03-25 18:09:04' and `end` < '2025-03-25 21: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-03-25 21:09:17] Production.INFO: count ==1942 [2025-03-25 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:09:04 - End Time 2025-03-25 21:09:04 [2025-03-25 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762142', 'tblTempUsageDetail_20' ) start [2025-03-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762142', 'tblTempUsageDetail_20' ) end [2025-03-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762142', 'tblTempVendorCDR_20' ) start [2025-03-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762142', 'tblTempVendorCDR_20' ) end [2025-03-25 21:09:18] Production.INFO: ProcessCDR(1,14762142,1,1,2) [2025-03-25 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762142', 'tblTempUsageDetail_20' ) start [2025-03-25 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762142', 'tblTempUsageDetail_20' ) end [2025-03-25 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:09:21] Production.INFO: ==26360== Releasing lock... [2025-03-25 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:09:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-25 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:10:06 [end_date_ymd] => 2025-03-25 21:10:06 [RateCDR] => 1 ) [2025-03-25 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:10:06' and `end` < '2025-03-25 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:10:19] Production.INFO: count ==1940 [2025-03-25 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:10:06 - End Time 2025-03-25 21:10:06 [2025-03-25 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762148', 'tblTempUsageDetail_20' ) start [2025-03-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762148', 'tblTempUsageDetail_20' ) end [2025-03-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762148', 'tblTempVendorCDR_20' ) start [2025-03-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762148', 'tblTempVendorCDR_20' ) end [2025-03-25 21:10:19] Production.INFO: ProcessCDR(1,14762148,1,1,2) [2025-03-25 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762148', 'tblTempUsageDetail_20' ) start [2025-03-25 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762148', 'tblTempUsageDetail_20' ) end [2025-03-25 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:10:23] Production.INFO: ==26448== Releasing lock... [2025-03-25 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:10:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-25 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:11:05 [end_date_ymd] => 2025-03-25 21:11:05 [RateCDR] => 1 ) [2025-03-25 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:11:05' and `end` < '2025-03-25 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:11:18] Production.INFO: count ==1893 [2025-03-25 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:11:05 - End Time 2025-03-25 21:11:05 [2025-03-25 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762153', 'tblTempUsageDetail_20' ) start [2025-03-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762153', 'tblTempUsageDetail_20' ) end [2025-03-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762153', 'tblTempVendorCDR_20' ) start [2025-03-25 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762153', 'tblTempVendorCDR_20' ) end [2025-03-25 21:11:18] Production.INFO: ProcessCDR(1,14762153,1,1,2) [2025-03-25 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762153', 'tblTempUsageDetail_20' ) start [2025-03-25 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762153', 'tblTempUsageDetail_20' ) end [2025-03-25 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:11:22] Production.INFO: ==26534== Releasing lock... [2025-03-25 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:11:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:12:04 [end_date_ymd] => 2025-03-25 21:12:04 [RateCDR] => 1 ) [2025-03-25 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:12:04' and `end` < '2025-03-25 21: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-03-25 21:12:17] Production.INFO: count ==1886 [2025-03-25 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:12:04 - End Time 2025-03-25 21:12:04 [2025-03-25 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762158', 'tblTempUsageDetail_20' ) start [2025-03-25 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762158', 'tblTempUsageDetail_20' ) end [2025-03-25 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762158', 'tblTempVendorCDR_20' ) start [2025-03-25 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762158', 'tblTempVendorCDR_20' ) end [2025-03-25 21:12:18] Production.INFO: ProcessCDR(1,14762158,1,1,2) [2025-03-25 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762158', 'tblTempUsageDetail_20' ) start [2025-03-25 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762158', 'tblTempUsageDetail_20' ) end [2025-03-25 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:12:21] Production.INFO: ==26615== Releasing lock... [2025-03-25 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:12:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:13:06 [end_date_ymd] => 2025-03-25 21:13:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:13:06' and `end` < '2025-03-25 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-03-25 21:13:18] Production.INFO: count ==1884 [2025-03-25 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:13:06 - End Time 2025-03-25 21:13:06 [2025-03-25 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762163', 'tblTempUsageDetail_20' ) start [2025-03-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762163', 'tblTempUsageDetail_20' ) end [2025-03-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762163', 'tblTempVendorCDR_20' ) start [2025-03-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762163', 'tblTempVendorCDR_20' ) end [2025-03-25 21:13:19] Production.INFO: ProcessCDR(1,14762163,1,1,2) [2025-03-25 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762163', 'tblTempUsageDetail_20' ) start [2025-03-25 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762163', 'tblTempUsageDetail_20' ) end [2025-03-25 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:13:22] Production.INFO: ==26702== Releasing lock... [2025-03-25 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:13:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:14:05 [end_date_ymd] => 2025-03-25 21:14:05 [RateCDR] => 1 ) [2025-03-25 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:14:05' and `end` < '2025-03-25 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:14:18] Production.INFO: count ==1880 [2025-03-25 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:14:05 - End Time 2025-03-25 21:14:05 [2025-03-25 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762168', 'tblTempUsageDetail_20' ) start [2025-03-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762168', 'tblTempUsageDetail_20' ) end [2025-03-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762168', 'tblTempVendorCDR_20' ) start [2025-03-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762168', 'tblTempVendorCDR_20' ) end [2025-03-25 21:14:18] Production.INFO: ProcessCDR(1,14762168,1,1,2) [2025-03-25 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762168', 'tblTempUsageDetail_20' ) start [2025-03-25 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762168', 'tblTempUsageDetail_20' ) end [2025-03-25 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:14:22] Production.INFO: ==26799== Releasing lock... [2025-03-25 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:14:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-25 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:15:05 [end_date_ymd] => 2025-03-25 21:15:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:15:05' and `end` < '2025-03-25 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-03-25 21:15:18] Production.INFO: count ==1857 [2025-03-25 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:15:05 - End Time 2025-03-25 21:15:05 [2025-03-25 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762173', 'tblTempUsageDetail_20' ) start [2025-03-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762173', 'tblTempUsageDetail_20' ) end [2025-03-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762173', 'tblTempVendorCDR_20' ) start [2025-03-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762173', 'tblTempVendorCDR_20' ) end [2025-03-25 21:15:19] Production.INFO: ProcessCDR(1,14762173,1,1,2) [2025-03-25 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762173', 'tblTempUsageDetail_20' ) start [2025-03-25 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762173', 'tblTempUsageDetail_20' ) end [2025-03-25 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:15:22] Production.INFO: ==26910== Releasing lock... [2025-03-25 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:15:22] Production.INFO: 42 MB #Memory Used# [2025-03-25 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:16:05 [end_date_ymd] => 2025-03-25 21:16:05 [RateCDR] => 1 ) [2025-03-25 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:16:05' and `end` < '2025-03-25 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:16:17] Production.INFO: count ==1856 [2025-03-25 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:16:05 - End Time 2025-03-25 21:16:05 [2025-03-25 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762178', 'tblTempUsageDetail_20' ) start [2025-03-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762178', 'tblTempUsageDetail_20' ) end [2025-03-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762178', 'tblTempVendorCDR_20' ) start [2025-03-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762178', 'tblTempVendorCDR_20' ) end [2025-03-25 21:16:18] Production.INFO: ProcessCDR(1,14762178,1,1,2) [2025-03-25 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762178', 'tblTempUsageDetail_20' ) start [2025-03-25 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762178', 'tblTempUsageDetail_20' ) end [2025-03-25 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:16:21] Production.INFO: ==27019== Releasing lock... [2025-03-25 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:16:21] Production.INFO: 42 MB #Memory Used# [2025-03-25 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:17:05 [end_date_ymd] => 2025-03-25 21:17:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:17:05' and `end` < '2025-03-25 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-03-25 21:17:18] Production.INFO: count ==1861 [2025-03-25 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:17:05 - End Time 2025-03-25 21:17:05 [2025-03-25 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762183', 'tblTempUsageDetail_20' ) start [2025-03-25 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762183', 'tblTempUsageDetail_20' ) end [2025-03-25 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762183', 'tblTempVendorCDR_20' ) start [2025-03-25 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762183', 'tblTempVendorCDR_20' ) end [2025-03-25 21:17:18] Production.INFO: ProcessCDR(1,14762183,1,1,2) [2025-03-25 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762183', 'tblTempUsageDetail_20' ) start [2025-03-25 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762183', 'tblTempUsageDetail_20' ) end [2025-03-25 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:17:24] Production.INFO: ==27119== Releasing lock... [2025-03-25 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:17:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-25 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:18:05 [end_date_ymd] => 2025-03-25 21:18:05 [RateCDR] => 1 ) [2025-03-25 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:18:05' and `end` < '2025-03-25 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:18:17] Production.INFO: count ==1859 [2025-03-25 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:18:05 - End Time 2025-03-25 21:18:05 [2025-03-25 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762188', 'tblTempUsageDetail_20' ) start [2025-03-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762188', 'tblTempUsageDetail_20' ) end [2025-03-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762188', 'tblTempVendorCDR_20' ) start [2025-03-25 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762188', 'tblTempVendorCDR_20' ) end [2025-03-25 21:18:18] Production.INFO: ProcessCDR(1,14762188,1,1,2) [2025-03-25 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762188', 'tblTempUsageDetail_20' ) start [2025-03-25 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762188', 'tblTempUsageDetail_20' ) end [2025-03-25 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:18:21] Production.INFO: ==27237== Releasing lock... [2025-03-25 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:18:21] Production.INFO: 42 MB #Memory Used# [2025-03-25 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:19:05 [end_date_ymd] => 2025-03-25 21:19:05 [RateCDR] => 1 ) [2025-03-25 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:19:05' and `end` < '2025-03-25 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:19:18] Production.INFO: count ==1841 [2025-03-25 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:19:05 - End Time 2025-03-25 21:19:05 [2025-03-25 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762193', 'tblTempUsageDetail_20' ) start [2025-03-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762193', 'tblTempUsageDetail_20' ) end [2025-03-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762193', 'tblTempVendorCDR_20' ) start [2025-03-25 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762193', 'tblTempVendorCDR_20' ) end [2025-03-25 21:19:18] Production.INFO: ProcessCDR(1,14762193,1,1,2) [2025-03-25 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762193', 'tblTempUsageDetail_20' ) start [2025-03-25 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762193', 'tblTempUsageDetail_20' ) end [2025-03-25 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:19:22] Production.INFO: ==27345== Releasing lock... [2025-03-25 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:19:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-25 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:20:07 [end_date_ymd] => 2025-03-25 21:20:07 [RateCDR] => 1 ) [2025-03-25 21: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-03-25 18:20:07' and `end` < '2025-03-25 21: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-03-25 21:20:19] Production.INFO: count ==1835 [2025-03-25 21:20:20] Production.ERROR: pbx CDR StartTime 2025-03-25 18:20:07 - End Time 2025-03-25 21:20:07 [2025-03-25 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762199', 'tblTempUsageDetail_20' ) start [2025-03-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762199', 'tblTempUsageDetail_20' ) end [2025-03-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762199', 'tblTempVendorCDR_20' ) start [2025-03-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762199', 'tblTempVendorCDR_20' ) end [2025-03-25 21:20:20] Production.INFO: ProcessCDR(1,14762199,1,1,2) [2025-03-25 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762199', 'tblTempUsageDetail_20' ) start [2025-03-25 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762199', 'tblTempUsageDetail_20' ) end [2025-03-25 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:20:23] Production.INFO: ==27455== Releasing lock... [2025-03-25 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:20:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-25 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:21:05 [end_date_ymd] => 2025-03-25 21:21:05 [RateCDR] => 1 ) [2025-03-25 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:21:05' and `end` < '2025-03-25 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:21:18] Production.INFO: count ==1791 [2025-03-25 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:21:05 - End Time 2025-03-25 21:21:05 [2025-03-25 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762204', 'tblTempUsageDetail_20' ) start [2025-03-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762204', 'tblTempUsageDetail_20' ) end [2025-03-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762204', 'tblTempVendorCDR_20' ) start [2025-03-25 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762204', 'tblTempVendorCDR_20' ) end [2025-03-25 21:21:19] Production.INFO: ProcessCDR(1,14762204,1,1,2) [2025-03-25 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762204', 'tblTempUsageDetail_20' ) start [2025-03-25 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762204', 'tblTempUsageDetail_20' ) end [2025-03-25 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:21:24] Production.INFO: ==27559== Releasing lock... [2025-03-25 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:21:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-25 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:22:05 [end_date_ymd] => 2025-03-25 21:22:05 [RateCDR] => 1 ) [2025-03-25 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:22:05' and `end` < '2025-03-25 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:22:18] Production.INFO: count ==1775 [2025-03-25 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:22:05 - End Time 2025-03-25 21:22:05 [2025-03-25 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762209', 'tblTempUsageDetail_20' ) start [2025-03-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762209', 'tblTempUsageDetail_20' ) end [2025-03-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762209', 'tblTempVendorCDR_20' ) start [2025-03-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762209', 'tblTempVendorCDR_20' ) end [2025-03-25 21:22:19] Production.INFO: ProcessCDR(1,14762209,1,1,2) [2025-03-25 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762209', 'tblTempUsageDetail_20' ) start [2025-03-25 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762209', 'tblTempUsageDetail_20' ) end [2025-03-25 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:22:22] Production.INFO: ==27666== Releasing lock... [2025-03-25 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:22:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:23:05 [end_date_ymd] => 2025-03-25 21:23:05 [RateCDR] => 1 ) [2025-03-25 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:23:05' and `end` < '2025-03-25 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:23:18] Production.INFO: count ==1765 [2025-03-25 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:23:05 - End Time 2025-03-25 21:23:05 [2025-03-25 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762214', 'tblTempUsageDetail_20' ) start [2025-03-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762214', 'tblTempUsageDetail_20' ) end [2025-03-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762214', 'tblTempVendorCDR_20' ) start [2025-03-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762214', 'tblTempVendorCDR_20' ) end [2025-03-25 21:23:18] Production.INFO: ProcessCDR(1,14762214,1,1,2) [2025-03-25 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762214', 'tblTempUsageDetail_20' ) start [2025-03-25 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762214', 'tblTempUsageDetail_20' ) end [2025-03-25 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:23:22] Production.INFO: ==27770== Releasing lock... [2025-03-25 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:24:05 [end_date_ymd] => 2025-03-25 21:24:05 [RateCDR] => 1 ) [2025-03-25 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:24:05' and `end` < '2025-03-25 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:24:18] Production.INFO: count ==1763 [2025-03-25 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:24:05 - End Time 2025-03-25 21:24:05 [2025-03-25 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762219', 'tblTempUsageDetail_20' ) start [2025-03-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762219', 'tblTempUsageDetail_20' ) end [2025-03-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762219', 'tblTempVendorCDR_20' ) start [2025-03-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762219', 'tblTempVendorCDR_20' ) end [2025-03-25 21:24:19] Production.INFO: ProcessCDR(1,14762219,1,1,2) [2025-03-25 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762219', 'tblTempUsageDetail_20' ) start [2025-03-25 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762219', 'tblTempUsageDetail_20' ) end [2025-03-25 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:24:22] Production.INFO: ==27919== Releasing lock... [2025-03-25 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:24:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-25 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:25:05 [end_date_ymd] => 2025-03-25 21:25:05 [RateCDR] => 1 ) [2025-03-25 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:25:05' and `end` < '2025-03-25 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:25:17] Production.INFO: count ==1764 [2025-03-25 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:25:05 - End Time 2025-03-25 21:25:05 [2025-03-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762224', 'tblTempUsageDetail_20' ) start [2025-03-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762224', 'tblTempUsageDetail_20' ) end [2025-03-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762224', 'tblTempVendorCDR_20' ) start [2025-03-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762224', 'tblTempVendorCDR_20' ) end [2025-03-25 21:25:18] Production.INFO: ProcessCDR(1,14762224,1,1,2) [2025-03-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762224', 'tblTempUsageDetail_20' ) start [2025-03-25 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762224', 'tblTempUsageDetail_20' ) end [2025-03-25 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:25:21] Production.INFO: ==28021== Releasing lock... [2025-03-25 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:25:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:26:06 [end_date_ymd] => 2025-03-25 21:26:06 [RateCDR] => 1 ) [2025-03-25 21: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-03-25 18:26:06' and `end` < '2025-03-25 21: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-03-25 21:26:19] Production.INFO: count ==1748 [2025-03-25 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:26:06 - End Time 2025-03-25 21:26:06 [2025-03-25 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762229', 'tblTempUsageDetail_20' ) start [2025-03-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762229', 'tblTempUsageDetail_20' ) end [2025-03-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762229', 'tblTempVendorCDR_20' ) start [2025-03-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762229', 'tblTempVendorCDR_20' ) end [2025-03-25 21:26:19] Production.INFO: ProcessCDR(1,14762229,1,1,2) [2025-03-25 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762229', 'tblTempUsageDetail_20' ) start [2025-03-25 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762229', 'tblTempUsageDetail_20' ) end [2025-03-25 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:26:23] Production.INFO: ==28133== Releasing lock... [2025-03-25 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:27:05 [end_date_ymd] => 2025-03-25 21:27:05 [RateCDR] => 1 ) [2025-03-25 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:27:05' and `end` < '2025-03-25 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:27:18] Production.INFO: count ==1740 [2025-03-25 21:27:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:27:05 - End Time 2025-03-25 21:27:05 [2025-03-25 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762234', 'tblTempUsageDetail_20' ) start [2025-03-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762234', 'tblTempUsageDetail_20' ) end [2025-03-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762234', 'tblTempVendorCDR_20' ) start [2025-03-25 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762234', 'tblTempVendorCDR_20' ) end [2025-03-25 21:27:19] Production.INFO: ProcessCDR(1,14762234,1,1,2) [2025-03-25 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762234', 'tblTempUsageDetail_20' ) start [2025-03-25 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762234', 'tblTempUsageDetail_20' ) end [2025-03-25 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:27:22] Production.INFO: ==28242== Releasing lock... [2025-03-25 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:27:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:28:05 [end_date_ymd] => 2025-03-25 21:28:05 [RateCDR] => 1 ) [2025-03-25 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:28:05' and `end` < '2025-03-25 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:28:18] Production.INFO: count ==1747 [2025-03-25 21:28:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:28:05 - End Time 2025-03-25 21:28:05 [2025-03-25 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762239', 'tblTempUsageDetail_20' ) start [2025-03-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762239', 'tblTempUsageDetail_20' ) end [2025-03-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762239', 'tblTempVendorCDR_20' ) start [2025-03-25 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762239', 'tblTempVendorCDR_20' ) end [2025-03-25 21:28:19] Production.INFO: ProcessCDR(1,14762239,1,1,2) [2025-03-25 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762239', 'tblTempUsageDetail_20' ) start [2025-03-25 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762239', 'tblTempUsageDetail_20' ) end [2025-03-25 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:28:22] Production.INFO: ==28350== Releasing lock... [2025-03-25 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:28:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:29:05 [end_date_ymd] => 2025-03-25 21:29:05 [RateCDR] => 1 ) [2025-03-25 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:29:05' and `end` < '2025-03-25 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:29:18] Production.INFO: count ==1746 [2025-03-25 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:29:05 - End Time 2025-03-25 21:29:05 [2025-03-25 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762244', 'tblTempUsageDetail_20' ) start [2025-03-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762244', 'tblTempUsageDetail_20' ) end [2025-03-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762244', 'tblTempVendorCDR_20' ) start [2025-03-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762244', 'tblTempVendorCDR_20' ) end [2025-03-25 21:29:19] Production.INFO: ProcessCDR(1,14762244,1,1,2) [2025-03-25 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762244', 'tblTempUsageDetail_20' ) start [2025-03-25 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762244', 'tblTempUsageDetail_20' ) end [2025-03-25 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:29:22] Production.INFO: ==28458== Releasing lock... [2025-03-25 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-25 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:30:06 [end_date_ymd] => 2025-03-25 21:30:06 [RateCDR] => 1 ) [2025-03-25 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:30:06' and `end` < '2025-03-25 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:30:19] Production.INFO: count ==1718 [2025-03-25 21:30:20] Production.ERROR: pbx CDR StartTime 2025-03-25 18:30:06 - End Time 2025-03-25 21:30:06 [2025-03-25 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762250', 'tblTempUsageDetail_20' ) start [2025-03-25 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762250', 'tblTempUsageDetail_20' ) end [2025-03-25 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762250', 'tblTempVendorCDR_20' ) start [2025-03-25 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762250', 'tblTempVendorCDR_20' ) end [2025-03-25 21:30:20] Production.INFO: ProcessCDR(1,14762250,1,1,2) [2025-03-25 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762250', 'tblTempUsageDetail_20' ) start [2025-03-25 21:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762250', 'tblTempUsageDetail_20' ) end [2025-03-25 21:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:30:25] Production.INFO: ==28563== Releasing lock... [2025-03-25 21:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:30:25] Production.INFO: 41 MB #Memory Used# [2025-03-25 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:31:04 [end_date_ymd] => 2025-03-25 21:31:04 [RateCDR] => 1 ) [2025-03-25 21: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-03-25 18:31:04' and `end` < '2025-03-25 21: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-03-25 21:31:17] Production.INFO: count ==1684 [2025-03-25 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:31:04 - End Time 2025-03-25 21:31:04 [2025-03-25 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762255', 'tblTempUsageDetail_20' ) start [2025-03-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762255', 'tblTempUsageDetail_20' ) end [2025-03-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762255', 'tblTempVendorCDR_20' ) start [2025-03-25 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762255', 'tblTempVendorCDR_20' ) end [2025-03-25 21:31:18] Production.INFO: ProcessCDR(1,14762255,1,1,2) [2025-03-25 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762255', 'tblTempUsageDetail_20' ) start [2025-03-25 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762255', 'tblTempUsageDetail_20' ) end [2025-03-25 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:31:23] Production.INFO: ==28670== Releasing lock... [2025-03-25 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:31:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-25 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:32:05 [end_date_ymd] => 2025-03-25 21:32:05 [RateCDR] => 1 ) [2025-03-25 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:32:05' and `end` < '2025-03-25 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:32:18] Production.INFO: count ==1682 [2025-03-25 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:32:05 - End Time 2025-03-25 21:32:05 [2025-03-25 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762260', 'tblTempUsageDetail_20' ) start [2025-03-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762260', 'tblTempUsageDetail_20' ) end [2025-03-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762260', 'tblTempVendorCDR_20' ) start [2025-03-25 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762260', 'tblTempVendorCDR_20' ) end [2025-03-25 21:32:19] Production.INFO: ProcessCDR(1,14762260,1,1,2) [2025-03-25 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762260', 'tblTempUsageDetail_20' ) start [2025-03-25 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762260', 'tblTempUsageDetail_20' ) end [2025-03-25 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:32:23] Production.INFO: ==28778== Releasing lock... [2025-03-25 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-25 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:33:06 [end_date_ymd] => 2025-03-25 21:33:06 [RateCDR] => 1 ) [2025-03-25 21:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:33:06' and `end` < '2025-03-25 21:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:33:18] Production.INFO: count ==1686 [2025-03-25 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:33:06 - End Time 2025-03-25 21:33:06 [2025-03-25 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762265', 'tblTempUsageDetail_20' ) start [2025-03-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762265', 'tblTempUsageDetail_20' ) end [2025-03-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762265', 'tblTempVendorCDR_20' ) start [2025-03-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762265', 'tblTempVendorCDR_20' ) end [2025-03-25 21:33:19] Production.INFO: ProcessCDR(1,14762265,1,1,2) [2025-03-25 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762265', 'tblTempUsageDetail_20' ) start [2025-03-25 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762265', 'tblTempUsageDetail_20' ) end [2025-03-25 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:33:24] Production.INFO: ==28876== Releasing lock... [2025-03-25 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:33:24] Production.INFO: 41 MB #Memory Used# [2025-03-25 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:34:06 [end_date_ymd] => 2025-03-25 21:34:06 [RateCDR] => 1 ) [2025-03-25 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:34:06' and `end` < '2025-03-25 21: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-03-25 21:34:18] Production.INFO: count ==1671 [2025-03-25 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:34:06 - End Time 2025-03-25 21:34:06 [2025-03-25 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762270', 'tblTempUsageDetail_20' ) start [2025-03-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762270', 'tblTempUsageDetail_20' ) end [2025-03-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762270', 'tblTempVendorCDR_20' ) start [2025-03-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762270', 'tblTempVendorCDR_20' ) end [2025-03-25 21:34:19] Production.INFO: ProcessCDR(1,14762270,1,1,2) [2025-03-25 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762270', 'tblTempUsageDetail_20' ) start [2025-03-25 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762270', 'tblTempUsageDetail_20' ) end [2025-03-25 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:34:22] Production.INFO: ==28980== Releasing lock... [2025-03-25 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-25 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:35:05 [end_date_ymd] => 2025-03-25 21:35:05 [RateCDR] => 1 ) [2025-03-25 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:35:05' and `end` < '2025-03-25 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:35:18] Production.INFO: count ==1668 [2025-03-25 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:35:05 - End Time 2025-03-25 21:35:05 [2025-03-25 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762275', 'tblTempUsageDetail_20' ) start [2025-03-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762275', 'tblTempUsageDetail_20' ) end [2025-03-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762275', 'tblTempVendorCDR_20' ) start [2025-03-25 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762275', 'tblTempVendorCDR_20' ) end [2025-03-25 21:35:18] Production.INFO: ProcessCDR(1,14762275,1,1,2) [2025-03-25 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762275', 'tblTempUsageDetail_20' ) start [2025-03-25 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762275', 'tblTempUsageDetail_20' ) end [2025-03-25 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:35:22] Production.INFO: ==29063== Releasing lock... [2025-03-25 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:35:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:36:05 [end_date_ymd] => 2025-03-25 21:36:05 [RateCDR] => 1 ) [2025-03-25 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:36:05' and `end` < '2025-03-25 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:36:18] Production.INFO: count ==1665 [2025-03-25 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:36:05 - End Time 2025-03-25 21:36:05 [2025-03-25 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762280', 'tblTempUsageDetail_20' ) start [2025-03-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762280', 'tblTempUsageDetail_20' ) end [2025-03-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762280', 'tblTempVendorCDR_20' ) start [2025-03-25 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762280', 'tblTempVendorCDR_20' ) end [2025-03-25 21:36:18] Production.INFO: ProcessCDR(1,14762280,1,1,2) [2025-03-25 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762280', 'tblTempUsageDetail_20' ) start [2025-03-25 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762280', 'tblTempUsageDetail_20' ) end [2025-03-25 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:36:23] Production.INFO: ==29141== Releasing lock... [2025-03-25 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:36:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-25 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:37:06 [end_date_ymd] => 2025-03-25 21:37:06 [RateCDR] => 1 ) [2025-03-25 21: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-03-25 18:37:06' and `end` < '2025-03-25 21: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-03-25 21:37:18] Production.INFO: count ==1649 [2025-03-25 21:37:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:37:06 - End Time 2025-03-25 21:37:06 [2025-03-25 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762285', 'tblTempUsageDetail_20' ) start [2025-03-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762285', 'tblTempUsageDetail_20' ) end [2025-03-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762285', 'tblTempVendorCDR_20' ) start [2025-03-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762285', 'tblTempVendorCDR_20' ) end [2025-03-25 21:37:19] Production.INFO: ProcessCDR(1,14762285,1,1,2) [2025-03-25 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762285', 'tblTempUsageDetail_20' ) start [2025-03-25 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762285', 'tblTempUsageDetail_20' ) end [2025-03-25 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:37:24] Production.INFO: ==29216== Releasing lock... [2025-03-25 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:37:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-25 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:38:05 [end_date_ymd] => 2025-03-25 21:38:05 [RateCDR] => 1 ) [2025-03-25 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:38:05' and `end` < '2025-03-25 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:38:17] Production.INFO: count ==1642 [2025-03-25 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:38:05 - End Time 2025-03-25 21:38:05 [2025-03-25 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762290', 'tblTempUsageDetail_20' ) start [2025-03-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762290', 'tblTempUsageDetail_20' ) end [2025-03-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762290', 'tblTempVendorCDR_20' ) start [2025-03-25 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762290', 'tblTempVendorCDR_20' ) end [2025-03-25 21:38:18] Production.INFO: ProcessCDR(1,14762290,1,1,2) [2025-03-25 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762290', 'tblTempUsageDetail_20' ) start [2025-03-25 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762290', 'tblTempUsageDetail_20' ) end [2025-03-25 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:38:21] Production.INFO: ==29292== Releasing lock... [2025-03-25 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:38:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:39:05 [end_date_ymd] => 2025-03-25 21:39:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:39:05' and `end` < '2025-03-25 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-03-25 21:39:17] Production.INFO: count ==1641 [2025-03-25 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:39:05 - End Time 2025-03-25 21:39:05 [2025-03-25 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762295', 'tblTempUsageDetail_20' ) start [2025-03-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762295', 'tblTempUsageDetail_20' ) end [2025-03-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762295', 'tblTempVendorCDR_20' ) start [2025-03-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762295', 'tblTempVendorCDR_20' ) end [2025-03-25 21:39:18] Production.INFO: ProcessCDR(1,14762295,1,1,2) [2025-03-25 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762295', 'tblTempUsageDetail_20' ) start [2025-03-25 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762295', 'tblTempUsageDetail_20' ) end [2025-03-25 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:39:21] Production.INFO: ==29408== Releasing lock... [2025-03-25 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:39:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:40:06 [end_date_ymd] => 2025-03-25 21:40:06 [RateCDR] => 1 ) [2025-03-25 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:40:06' and `end` < '2025-03-25 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:40:19] Production.INFO: count ==1648 [2025-03-25 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:40:06 - End Time 2025-03-25 21:40:06 [2025-03-25 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762301', 'tblTempUsageDetail_20' ) start [2025-03-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762301', 'tblTempUsageDetail_20' ) end [2025-03-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762301', 'tblTempVendorCDR_20' ) start [2025-03-25 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762301', 'tblTempVendorCDR_20' ) end [2025-03-25 21:40:19] Production.INFO: ProcessCDR(1,14762301,1,1,2) [2025-03-25 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762301', 'tblTempUsageDetail_20' ) start [2025-03-25 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762301', 'tblTempUsageDetail_20' ) end [2025-03-25 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:40:22] Production.INFO: ==29488== Releasing lock... [2025-03-25 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:40:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-25 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:41:05 [end_date_ymd] => 2025-03-25 21:41:05 [RateCDR] => 1 ) [2025-03-25 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:41:05' and `end` < '2025-03-25 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:41:17] Production.INFO: count ==1608 [2025-03-25 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:41:05 - End Time 2025-03-25 21:41:05 [2025-03-25 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762306', 'tblTempUsageDetail_20' ) start [2025-03-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762306', 'tblTempUsageDetail_20' ) end [2025-03-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762306', 'tblTempVendorCDR_20' ) start [2025-03-25 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762306', 'tblTempVendorCDR_20' ) end [2025-03-25 21:41:18] Production.INFO: ProcessCDR(1,14762306,1,1,2) [2025-03-25 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762306', 'tblTempUsageDetail_20' ) start [2025-03-25 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762306', 'tblTempUsageDetail_20' ) end [2025-03-25 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:41:21] Production.INFO: ==29568== Releasing lock... [2025-03-25 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:41:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-25 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:42:06 [end_date_ymd] => 2025-03-25 21:42:06 [RateCDR] => 1 ) [2025-03-25 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:42:06' and `end` < '2025-03-25 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:42:18] Production.INFO: count ==1599 [2025-03-25 21:42:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:42:06 - End Time 2025-03-25 21:42:06 [2025-03-25 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762311', 'tblTempUsageDetail_20' ) start [2025-03-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762311', 'tblTempUsageDetail_20' ) end [2025-03-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762311', 'tblTempVendorCDR_20' ) start [2025-03-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762311', 'tblTempVendorCDR_20' ) end [2025-03-25 21:42:19] Production.INFO: ProcessCDR(1,14762311,1,1,2) [2025-03-25 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762311', 'tblTempUsageDetail_20' ) start [2025-03-25 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762311', 'tblTempUsageDetail_20' ) end [2025-03-25 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:42:22] Production.INFO: ==29649== Releasing lock... [2025-03-25 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:42:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-25 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:43:05 [end_date_ymd] => 2025-03-25 21:43:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:43:05' and `end` < '2025-03-25 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-03-25 21:43:17] Production.INFO: count ==1589 [2025-03-25 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:43:05 - End Time 2025-03-25 21:43:05 [2025-03-25 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762316', 'tblTempUsageDetail_20' ) start [2025-03-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762316', 'tblTempUsageDetail_20' ) end [2025-03-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762316', 'tblTempVendorCDR_20' ) start [2025-03-25 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762316', 'tblTempVendorCDR_20' ) end [2025-03-25 21:43:18] Production.INFO: ProcessCDR(1,14762316,1,1,2) [2025-03-25 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762316', 'tblTempUsageDetail_20' ) start [2025-03-25 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762316', 'tblTempUsageDetail_20' ) end [2025-03-25 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:43:21] Production.INFO: ==29723== Releasing lock... [2025-03-25 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:43:21] Production.INFO: 40 MB #Memory Used# [2025-03-25 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:44:06 [end_date_ymd] => 2025-03-25 21:44:06 [RateCDR] => 1 ) [2025-03-25 21:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:44:06' and `end` < '2025-03-25 21: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-03-25 21:44:19] Production.INFO: count ==1583 [2025-03-25 21:44:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:44:06 - End Time 2025-03-25 21:44:06 [2025-03-25 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762321', 'tblTempUsageDetail_20' ) start [2025-03-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762321', 'tblTempUsageDetail_20' ) end [2025-03-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762321', 'tblTempVendorCDR_20' ) start [2025-03-25 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762321', 'tblTempVendorCDR_20' ) end [2025-03-25 21:44:19] Production.INFO: ProcessCDR(1,14762321,1,1,2) [2025-03-25 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762321', 'tblTempUsageDetail_20' ) start [2025-03-25 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762321', 'tblTempUsageDetail_20' ) end [2025-03-25 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:44:23] Production.INFO: ==29798== Releasing lock... [2025-03-25 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:44:23] Production.INFO: 40 MB #Memory Used# [2025-03-25 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:45:05 [end_date_ymd] => 2025-03-25 21:45:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:45:05' and `end` < '2025-03-25 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-03-25 21:45:17] Production.INFO: count ==1574 [2025-03-25 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:45:05 - End Time 2025-03-25 21:45:05 [2025-03-25 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762326', 'tblTempUsageDetail_20' ) start [2025-03-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762326', 'tblTempUsageDetail_20' ) end [2025-03-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762326', 'tblTempVendorCDR_20' ) start [2025-03-25 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762326', 'tblTempVendorCDR_20' ) end [2025-03-25 21:45:18] Production.INFO: ProcessCDR(1,14762326,1,1,2) [2025-03-25 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762326', 'tblTempUsageDetail_20' ) start [2025-03-25 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762326', 'tblTempUsageDetail_20' ) end [2025-03-25 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:45:23] Production.INFO: ==29874== Releasing lock... [2025-03-25 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:45:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-25 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:46:06 [end_date_ymd] => 2025-03-25 21:46:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:46:06' and `end` < '2025-03-25 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-03-25 21:46:18] Production.INFO: count ==1570 [2025-03-25 21:46:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:46:06 - End Time 2025-03-25 21:46:06 [2025-03-25 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762331', 'tblTempUsageDetail_20' ) start [2025-03-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762331', 'tblTempUsageDetail_20' ) end [2025-03-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762331', 'tblTempVendorCDR_20' ) start [2025-03-25 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762331', 'tblTempVendorCDR_20' ) end [2025-03-25 21:46:19] Production.INFO: ProcessCDR(1,14762331,1,1,2) [2025-03-25 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762331', 'tblTempUsageDetail_20' ) start [2025-03-25 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762331', 'tblTempUsageDetail_20' ) end [2025-03-25 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:46:22] Production.INFO: ==29947== Releasing lock... [2025-03-25 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-25 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:47:05 [end_date_ymd] => 2025-03-25 21:47:05 [RateCDR] => 1 ) [2025-03-25 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:47:05' and `end` < '2025-03-25 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:47:18] Production.INFO: count ==1568 [2025-03-25 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:47:05 - End Time 2025-03-25 21:47:05 [2025-03-25 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762336', 'tblTempUsageDetail_20' ) start [2025-03-25 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762336', 'tblTempUsageDetail_20' ) end [2025-03-25 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762336', 'tblTempVendorCDR_20' ) start [2025-03-25 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762336', 'tblTempVendorCDR_20' ) end [2025-03-25 21:47:18] Production.INFO: ProcessCDR(1,14762336,1,1,2) [2025-03-25 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762336', 'tblTempUsageDetail_20' ) start [2025-03-25 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762336', 'tblTempUsageDetail_20' ) end [2025-03-25 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:47:22] Production.INFO: ==30019== Releasing lock... [2025-03-25 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:47:22] Production.INFO: 40 MB #Memory Used# [2025-03-25 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:48:05 [end_date_ymd] => 2025-03-25 21:48:05 [RateCDR] => 1 ) [2025-03-25 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:48:05' and `end` < '2025-03-25 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:48:18] Production.INFO: count ==1572 [2025-03-25 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:48:05 - End Time 2025-03-25 21:48:05 [2025-03-25 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762341', 'tblTempUsageDetail_20' ) start [2025-03-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762341', 'tblTempUsageDetail_20' ) end [2025-03-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762341', 'tblTempVendorCDR_20' ) start [2025-03-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762341', 'tblTempVendorCDR_20' ) end [2025-03-25 21:48:18] Production.INFO: ProcessCDR(1,14762341,1,1,2) [2025-03-25 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762341', 'tblTempUsageDetail_20' ) start [2025-03-25 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762341', 'tblTempUsageDetail_20' ) end [2025-03-25 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:48:22] Production.INFO: ==30103== Releasing lock... [2025-03-25 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-25 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:49:05 [end_date_ymd] => 2025-03-25 21:49:05 [RateCDR] => 1 ) [2025-03-25 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:49:05' and `end` < '2025-03-25 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:49:17] Production.INFO: count ==1574 [2025-03-25 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:49:05 - End Time 2025-03-25 21:49:05 [2025-03-25 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762346', 'tblTempUsageDetail_20' ) start [2025-03-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762346', 'tblTempUsageDetail_20' ) end [2025-03-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762346', 'tblTempVendorCDR_20' ) start [2025-03-25 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762346', 'tblTempVendorCDR_20' ) end [2025-03-25 21:49:18] Production.INFO: ProcessCDR(1,14762346,1,1,2) [2025-03-25 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762346', 'tblTempUsageDetail_20' ) start [2025-03-25 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762346', 'tblTempUsageDetail_20' ) end [2025-03-25 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:49:21] Production.INFO: ==30175== Releasing lock... [2025-03-25 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-25 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:50:06 [end_date_ymd] => 2025-03-25 21:50:06 [RateCDR] => 1 ) [2025-03-25 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:50:06' and `end` < '2025-03-25 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:50:19] Production.INFO: count ==1569 [2025-03-25 21:50:20] Production.ERROR: pbx CDR StartTime 2025-03-25 18:50:06 - End Time 2025-03-25 21:50:06 [2025-03-25 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762352', 'tblTempUsageDetail_20' ) start [2025-03-25 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762352', 'tblTempUsageDetail_20' ) end [2025-03-25 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762352', 'tblTempVendorCDR_20' ) start [2025-03-25 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762352', 'tblTempVendorCDR_20' ) end [2025-03-25 21:50:20] Production.INFO: ProcessCDR(1,14762352,1,1,2) [2025-03-25 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762352', 'tblTempUsageDetail_20' ) start [2025-03-25 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762352', 'tblTempUsageDetail_20' ) end [2025-03-25 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:50:23] Production.INFO: ==30249== Releasing lock... [2025-03-25 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-25 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:51:06 [end_date_ymd] => 2025-03-25 21:51:06 [RateCDR] => 1 ) [2025-03-25 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:51:06' and `end` < '2025-03-25 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:51:18] Production.INFO: count ==1537 [2025-03-25 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:51:06 - End Time 2025-03-25 21:51:06 [2025-03-25 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762357', 'tblTempUsageDetail_20' ) start [2025-03-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762357', 'tblTempUsageDetail_20' ) end [2025-03-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762357', 'tblTempVendorCDR_20' ) start [2025-03-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762357', 'tblTempVendorCDR_20' ) end [2025-03-25 21:51:19] Production.INFO: ProcessCDR(1,14762357,1,1,2) [2025-03-25 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762357', 'tblTempUsageDetail_20' ) start [2025-03-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762357', 'tblTempUsageDetail_20' ) end [2025-03-25 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:51:22] Production.INFO: ==30324== Releasing lock... [2025-03-25 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:51:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:52:05 [end_date_ymd] => 2025-03-25 21:52:05 [RateCDR] => 1 ) [2025-03-25 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:52:05' and `end` < '2025-03-25 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:52:18] Production.INFO: count ==1531 [2025-03-25 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:52:05 - End Time 2025-03-25 21:52:05 [2025-03-25 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762362', 'tblTempUsageDetail_20' ) start [2025-03-25 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762362', 'tblTempUsageDetail_20' ) end [2025-03-25 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762362', 'tblTempVendorCDR_20' ) start [2025-03-25 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762362', 'tblTempVendorCDR_20' ) end [2025-03-25 21:52:19] Production.INFO: ProcessCDR(1,14762362,1,1,2) [2025-03-25 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762362', 'tblTempUsageDetail_20' ) start [2025-03-25 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762362', 'tblTempUsageDetail_20' ) end [2025-03-25 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:52:22] Production.INFO: ==30394== Releasing lock... [2025-03-25 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:53:05 [end_date_ymd] => 2025-03-25 21:53:05 [RateCDR] => 1 ) [2025-03-25 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:53:05' and `end` < '2025-03-25 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:53:18] Production.INFO: count ==1526 [2025-03-25 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:53:05 - End Time 2025-03-25 21:53:05 [2025-03-25 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762367', 'tblTempUsageDetail_20' ) start [2025-03-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762367', 'tblTempUsageDetail_20' ) end [2025-03-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762367', 'tblTempVendorCDR_20' ) start [2025-03-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762367', 'tblTempVendorCDR_20' ) end [2025-03-25 21:53:19] Production.INFO: ProcessCDR(1,14762367,1,1,2) [2025-03-25 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762367', 'tblTempUsageDetail_20' ) start [2025-03-25 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762367', 'tblTempUsageDetail_20' ) end [2025-03-25 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:53:24] Production.INFO: ==30470== Releasing lock... [2025-03-25 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:53:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:54:05 [end_date_ymd] => 2025-03-25 21:54:05 [RateCDR] => 1 ) [2025-03-25 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:54:05' and `end` < '2025-03-25 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:54:18] Production.INFO: count ==1516 [2025-03-25 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:54:05 - End Time 2025-03-25 21:54:05 [2025-03-25 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762372', 'tblTempUsageDetail_20' ) start [2025-03-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762372', 'tblTempUsageDetail_20' ) end [2025-03-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762372', 'tblTempVendorCDR_20' ) start [2025-03-25 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762372', 'tblTempVendorCDR_20' ) end [2025-03-25 21:54:18] Production.INFO: ProcessCDR(1,14762372,1,1,2) [2025-03-25 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762372', 'tblTempUsageDetail_20' ) start [2025-03-25 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762372', 'tblTempUsageDetail_20' ) end [2025-03-25 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:54:23] Production.INFO: ==30581== Releasing lock... [2025-03-25 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:55:05 [end_date_ymd] => 2025-03-25 21:55:05 [RateCDR] => 1 ) [2025-03-25 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:55:05' and `end` < '2025-03-25 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:55:18] Production.INFO: count ==1513 [2025-03-25 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:55:05 - End Time 2025-03-25 21:55:05 [2025-03-25 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762377', 'tblTempUsageDetail_20' ) start [2025-03-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762377', 'tblTempUsageDetail_20' ) end [2025-03-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762377', 'tblTempVendorCDR_20' ) start [2025-03-25 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762377', 'tblTempVendorCDR_20' ) end [2025-03-25 21:55:18] Production.INFO: ProcessCDR(1,14762377,1,1,2) [2025-03-25 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762377', 'tblTempUsageDetail_20' ) start [2025-03-25 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762377', 'tblTempUsageDetail_20' ) end [2025-03-25 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:55:21] Production.INFO: ==30656== Releasing lock... [2025-03-25 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:55:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:56:05 [end_date_ymd] => 2025-03-25 21:56:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 18:56:05' and `end` < '2025-03-25 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-03-25 21:56:17] Production.INFO: count ==1515 [2025-03-25 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:56:05 - End Time 2025-03-25 21:56:05 [2025-03-25 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762382', 'tblTempUsageDetail_20' ) start [2025-03-25 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762382', 'tblTempUsageDetail_20' ) end [2025-03-25 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762382', 'tblTempVendorCDR_20' ) start [2025-03-25 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762382', 'tblTempVendorCDR_20' ) end [2025-03-25 21:56:18] Production.INFO: ProcessCDR(1,14762382,1,1,2) [2025-03-25 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762382', 'tblTempUsageDetail_20' ) start [2025-03-25 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762382', 'tblTempUsageDetail_20' ) end [2025-03-25 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:56:22] Production.INFO: ==30728== Releasing lock... [2025-03-25 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:56:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:57:06 [end_date_ymd] => 2025-03-25 21:57:06 [RateCDR] => 1 ) [2025-03-25 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:57:06' and `end` < '2025-03-25 21: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-03-25 21:57:18] Production.INFO: count ==1494 [2025-03-25 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-25 18:57:06 - End Time 2025-03-25 21:57:06 [2025-03-25 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762387', 'tblTempUsageDetail_20' ) start [2025-03-25 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762387', 'tblTempUsageDetail_20' ) end [2025-03-25 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762387', 'tblTempVendorCDR_20' ) start [2025-03-25 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762387', 'tblTempVendorCDR_20' ) end [2025-03-25 21:57:19] Production.INFO: ProcessCDR(1,14762387,1,1,2) [2025-03-25 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762387', 'tblTempUsageDetail_20' ) start [2025-03-25 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762387', 'tblTempUsageDetail_20' ) end [2025-03-25 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:57:22] Production.INFO: ==30802== Releasing lock... [2025-03-25 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:57:22] Production.INFO: 39 MB #Memory Used# [2025-03-25 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:58:05 [end_date_ymd] => 2025-03-25 21:58:05 [RateCDR] => 1 ) [2025-03-25 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:58:05' and `end` < '2025-03-25 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:58:17] Production.INFO: count ==1494 [2025-03-25 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:58:05 - End Time 2025-03-25 21:58:05 [2025-03-25 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762392', 'tblTempUsageDetail_20' ) start [2025-03-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762392', 'tblTempUsageDetail_20' ) end [2025-03-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762392', 'tblTempVendorCDR_20' ) start [2025-03-25 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762392', 'tblTempVendorCDR_20' ) end [2025-03-25 21:58:18] Production.INFO: ProcessCDR(1,14762392,1,1,2) [2025-03-25 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762392', 'tblTempUsageDetail_20' ) start [2025-03-25 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762392', 'tblTempUsageDetail_20' ) end [2025-03-25 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:58:21] Production.INFO: ==30875== Releasing lock... [2025-03-25 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:58:21] Production.INFO: 39 MB #Memory Used# [2025-03-25 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 18:59:05 [end_date_ymd] => 2025-03-25 21:59:05 [RateCDR] => 1 ) [2025-03-25 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 18:59:05' and `end` < '2025-03-25 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 21:59:18] Production.INFO: count ==1493 [2025-03-25 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 18:59:05 - End Time 2025-03-25 21:59:05 [2025-03-25 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762397', 'tblTempUsageDetail_20' ) start [2025-03-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762397', 'tblTempUsageDetail_20' ) end [2025-03-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762397', 'tblTempVendorCDR_20' ) start [2025-03-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762397', 'tblTempVendorCDR_20' ) end [2025-03-25 21:59:18] Production.INFO: ProcessCDR(1,14762397,1,1,2) [2025-03-25 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762397', 'tblTempUsageDetail_20' ) start [2025-03-25 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762397', 'tblTempUsageDetail_20' ) end [2025-03-25 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 21:59:21] Production.INFO: ==30944== Releasing lock... [2025-03-25 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 21:59:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:00:06 [end_date_ymd] => 2025-03-25 22:00:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 19:00:06' and `end` < '2025-03-25 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:00:19] Production.INFO: count ==1488 [2025-03-25 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:00:06 - End Time 2025-03-25 22:00:06 [2025-03-25 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762403', 'tblTempUsageDetail_20' ) start [2025-03-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762403', 'tblTempUsageDetail_20' ) end [2025-03-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762403', 'tblTempVendorCDR_20' ) start [2025-03-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762403', 'tblTempVendorCDR_20' ) end [2025-03-25 22:00:20] Production.INFO: ProcessCDR(1,14762403,1,1,2) [2025-03-25 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762403', 'tblTempUsageDetail_20' ) start [2025-03-25 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762403', 'tblTempUsageDetail_20' ) end [2025-03-25 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:00:23] Production.INFO: ==31020== Releasing lock... [2025-03-25 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:00:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:01:05 [end_date_ymd] => 2025-03-25 22:01:05 [RateCDR] => 1 ) [2025-03-25 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:01:05' and `end` < '2025-03-25 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:01:18] Production.INFO: count ==1474 [2025-03-25 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:01:05 - End Time 2025-03-25 22:01:05 [2025-03-25 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762408', 'tblTempUsageDetail_20' ) start [2025-03-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762408', 'tblTempUsageDetail_20' ) end [2025-03-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762408', 'tblTempVendorCDR_20' ) start [2025-03-25 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762408', 'tblTempVendorCDR_20' ) end [2025-03-25 22:01:18] Production.INFO: ProcessCDR(1,14762408,1,1,2) [2025-03-25 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762408', 'tblTempUsageDetail_20' ) start [2025-03-25 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762408', 'tblTempUsageDetail_20' ) end [2025-03-25 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:01:22] Production.INFO: ==31109== Releasing lock... [2025-03-25 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:02:06 [end_date_ymd] => 2025-03-25 22:02:06 [RateCDR] => 1 ) [2025-03-25 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:02:06' and `end` < '2025-03-25 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:02:18] Production.INFO: count ==1472 [2025-03-25 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:02:06 - End Time 2025-03-25 22:02:06 [2025-03-25 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762413', 'tblTempUsageDetail_20' ) start [2025-03-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762413', 'tblTempUsageDetail_20' ) end [2025-03-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762413', 'tblTempVendorCDR_20' ) start [2025-03-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762413', 'tblTempVendorCDR_20' ) end [2025-03-25 22:02:19] Production.INFO: ProcessCDR(1,14762413,1,1,2) [2025-03-25 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762413', 'tblTempUsageDetail_20' ) start [2025-03-25 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762413', 'tblTempUsageDetail_20' ) end [2025-03-25 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:02:24] Production.INFO: ==31179== Releasing lock... [2025-03-25 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:02:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:03:05 [end_date_ymd] => 2025-03-25 22:03:05 [RateCDR] => 1 ) [2025-03-25 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:03:05' and `end` < '2025-03-25 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:03:18] Production.INFO: count ==1473 [2025-03-25 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:03:05 - End Time 2025-03-25 22:03:05 [2025-03-25 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762418', 'tblTempUsageDetail_20' ) start [2025-03-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762418', 'tblTempUsageDetail_20' ) end [2025-03-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762418', 'tblTempVendorCDR_20' ) start [2025-03-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762418', 'tblTempVendorCDR_20' ) end [2025-03-25 22:03:18] Production.INFO: ProcessCDR(1,14762418,1,1,2) [2025-03-25 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762418', 'tblTempUsageDetail_20' ) start [2025-03-25 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762418', 'tblTempUsageDetail_20' ) end [2025-03-25 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:03:23] Production.INFO: ==31253== Releasing lock... [2025-03-25 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:03:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:04:06 [end_date_ymd] => 2025-03-25 22:04:06 [RateCDR] => 1 ) [2025-03-25 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:04:06' and `end` < '2025-03-25 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:04:19] Production.INFO: count ==1458 [2025-03-25 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:04:06 - End Time 2025-03-25 22:04:06 [2025-03-25 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762423', 'tblTempUsageDetail_20' ) start [2025-03-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762423', 'tblTempUsageDetail_20' ) end [2025-03-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762423', 'tblTempVendorCDR_20' ) start [2025-03-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762423', 'tblTempVendorCDR_20' ) end [2025-03-25 22:04:19] Production.INFO: ProcessCDR(1,14762423,1,1,2) [2025-03-25 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762423', 'tblTempUsageDetail_20' ) start [2025-03-25 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762423', 'tblTempUsageDetail_20' ) end [2025-03-25 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:04:23] Production.INFO: ==31327== Releasing lock... [2025-03-25 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:04:23] Production.INFO: 39 MB #Memory Used# [2025-03-25 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:05:05 [end_date_ymd] => 2025-03-25 22:05:05 [RateCDR] => 1 ) [2025-03-25 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:05:05' and `end` < '2025-03-25 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:05:18] Production.INFO: count ==1453 [2025-03-25 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:05:05 - End Time 2025-03-25 22:05:05 [2025-03-25 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762428', 'tblTempUsageDetail_20' ) start [2025-03-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762428', 'tblTempUsageDetail_20' ) end [2025-03-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762428', 'tblTempVendorCDR_20' ) start [2025-03-25 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762428', 'tblTempVendorCDR_20' ) end [2025-03-25 22:05:18] Production.INFO: ProcessCDR(1,14762428,1,1,2) [2025-03-25 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762428', 'tblTempUsageDetail_20' ) start [2025-03-25 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762428', 'tblTempUsageDetail_20' ) end [2025-03-25 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:05:23] Production.INFO: ==31398== Releasing lock... [2025-03-25 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-25 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:06:06 [end_date_ymd] => 2025-03-25 22:06:06 [RateCDR] => 1 ) [2025-03-25 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:06:06' and `end` < '2025-03-25 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:06:19] Production.INFO: count ==1449 [2025-03-25 22:06:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:06:06 - End Time 2025-03-25 22:06:06 [2025-03-25 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762433', 'tblTempUsageDetail_20' ) start [2025-03-25 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762433', 'tblTempUsageDetail_20' ) end [2025-03-25 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762433', 'tblTempVendorCDR_20' ) start [2025-03-25 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762433', 'tblTempVendorCDR_20' ) end [2025-03-25 22:06:19] Production.INFO: ProcessCDR(1,14762433,1,1,2) [2025-03-25 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762433', 'tblTempUsageDetail_20' ) start [2025-03-25 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762433', 'tblTempUsageDetail_20' ) end [2025-03-25 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:06:23] Production.INFO: ==31471== Releasing lock... [2025-03-25 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:06:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:07:05 [end_date_ymd] => 2025-03-25 22:07:05 [RateCDR] => 1 ) [2025-03-25 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:07:05' and `end` < '2025-03-25 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:07:18] Production.INFO: count ==1449 [2025-03-25 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:07:05 - End Time 2025-03-25 22:07:05 [2025-03-25 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762438', 'tblTempUsageDetail_20' ) start [2025-03-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762438', 'tblTempUsageDetail_20' ) end [2025-03-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762438', 'tblTempVendorCDR_20' ) start [2025-03-25 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762438', 'tblTempVendorCDR_20' ) end [2025-03-25 22:07:18] Production.INFO: ProcessCDR(1,14762438,1,1,2) [2025-03-25 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762438', 'tblTempUsageDetail_20' ) start [2025-03-25 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762438', 'tblTempUsageDetail_20' ) end [2025-03-25 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:07:23] Production.INFO: ==31551== Releasing lock... [2025-03-25 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:07:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-25 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:08:05 [end_date_ymd] => 2025-03-25 22:08:05 [RateCDR] => 1 ) [2025-03-25 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:08:05' and `end` < '2025-03-25 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:08:18] Production.INFO: count ==1430 [2025-03-25 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:08:05 - End Time 2025-03-25 22:08:05 [2025-03-25 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762443', 'tblTempUsageDetail_20' ) start [2025-03-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762443', 'tblTempUsageDetail_20' ) end [2025-03-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762443', 'tblTempVendorCDR_20' ) start [2025-03-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762443', 'tblTempVendorCDR_20' ) end [2025-03-25 22:08:18] Production.INFO: ProcessCDR(1,14762443,1,1,2) [2025-03-25 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762443', 'tblTempUsageDetail_20' ) start [2025-03-25 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762443', 'tblTempUsageDetail_20' ) end [2025-03-25 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:08:23] Production.INFO: ==31625== Releasing lock... [2025-03-25 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-25 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:09:05 [end_date_ymd] => 2025-03-25 22:09:05 [RateCDR] => 1 ) [2025-03-25 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:09:05' and `end` < '2025-03-25 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:09:18] Production.INFO: count ==1428 [2025-03-25 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:09:05 - End Time 2025-03-25 22:09:05 [2025-03-25 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762448', 'tblTempUsageDetail_20' ) start [2025-03-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762448', 'tblTempUsageDetail_20' ) end [2025-03-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762448', 'tblTempVendorCDR_20' ) start [2025-03-25 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762448', 'tblTempVendorCDR_20' ) end [2025-03-25 22:09:18] Production.INFO: ProcessCDR(1,14762448,1,1,2) [2025-03-25 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762448', 'tblTempUsageDetail_20' ) start [2025-03-25 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762448', 'tblTempUsageDetail_20' ) end [2025-03-25 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:09:22] Production.INFO: ==31696== Releasing lock... [2025-03-25 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:09:22] Production.INFO: 39 MB #Memory Used# [2025-03-25 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:10:06 [end_date_ymd] => 2025-03-25 22:10:06 [RateCDR] => 1 ) [2025-03-25 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:10:06' and `end` < '2025-03-25 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:10:19] Production.INFO: count ==1409 [2025-03-25 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:10:06 - End Time 2025-03-25 22:10:06 [2025-03-25 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762454', 'tblTempUsageDetail_20' ) start [2025-03-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762454', 'tblTempUsageDetail_20' ) end [2025-03-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762454', 'tblTempVendorCDR_20' ) start [2025-03-25 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762454', 'tblTempVendorCDR_20' ) end [2025-03-25 22:10:19] Production.INFO: ProcessCDR(1,14762454,1,1,2) [2025-03-25 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762454', 'tblTempUsageDetail_20' ) start [2025-03-25 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762454', 'tblTempUsageDetail_20' ) end [2025-03-25 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:10:22] Production.INFO: ==31809== Releasing lock... [2025-03-25 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:10:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-25 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:11:05 [end_date_ymd] => 2025-03-25 22:11:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 19:11:05' and `end` < '2025-03-25 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:11:17] Production.INFO: count ==1333 [2025-03-25 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:11:05 - End Time 2025-03-25 22:11:05 [2025-03-25 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762459', 'tblTempUsageDetail_20' ) start [2025-03-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762459', 'tblTempUsageDetail_20' ) end [2025-03-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762459', 'tblTempVendorCDR_20' ) start [2025-03-25 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762459', 'tblTempVendorCDR_20' ) end [2025-03-25 22:11:18] Production.INFO: ProcessCDR(1,14762459,1,1,2) [2025-03-25 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762459', 'tblTempUsageDetail_20' ) start [2025-03-25 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762459', 'tblTempUsageDetail_20' ) end [2025-03-25 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:11:21] Production.INFO: ==31887== Releasing lock... [2025-03-25 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:11:21] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:12:05 [end_date_ymd] => 2025-03-25 22:12:05 [RateCDR] => 1 ) [2025-03-25 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:12:05' and `end` < '2025-03-25 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:12:18] Production.INFO: count ==1329 [2025-03-25 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:12:05 - End Time 2025-03-25 22:12:05 [2025-03-25 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762464', 'tblTempUsageDetail_20' ) start [2025-03-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762464', 'tblTempUsageDetail_20' ) end [2025-03-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762464', 'tblTempVendorCDR_20' ) start [2025-03-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762464', 'tblTempVendorCDR_20' ) end [2025-03-25 22:12:18] Production.INFO: ProcessCDR(1,14762464,1,1,2) [2025-03-25 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762464', 'tblTempUsageDetail_20' ) start [2025-03-25 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762464', 'tblTempUsageDetail_20' ) end [2025-03-25 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:12:23] Production.INFO: ==31956== Releasing lock... [2025-03-25 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:12:23] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:13:05 [end_date_ymd] => 2025-03-25 22:13:05 [RateCDR] => 1 ) [2025-03-25 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:13:05' and `end` < '2025-03-25 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:13:18] Production.INFO: count ==1328 [2025-03-25 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:13:05 - End Time 2025-03-25 22:13:05 [2025-03-25 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762469', 'tblTempUsageDetail_20' ) start [2025-03-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762469', 'tblTempUsageDetail_20' ) end [2025-03-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762469', 'tblTempVendorCDR_20' ) start [2025-03-25 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762469', 'tblTempVendorCDR_20' ) end [2025-03-25 22:13:18] Production.INFO: ProcessCDR(1,14762469,1,1,2) [2025-03-25 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762469', 'tblTempUsageDetail_20' ) start [2025-03-25 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762469', 'tblTempUsageDetail_20' ) end [2025-03-25 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:13:21] Production.INFO: ==32032== Releasing lock... [2025-03-25 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-25 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:14:05 [end_date_ymd] => 2025-03-25 22:14:05 [RateCDR] => 1 ) [2025-03-25 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:14:05' and `end` < '2025-03-25 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:14:18] Production.INFO: count ==1321 [2025-03-25 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:14:05 - End Time 2025-03-25 22:14:05 [2025-03-25 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762474', 'tblTempUsageDetail_20' ) start [2025-03-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762474', 'tblTempUsageDetail_20' ) end [2025-03-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762474', 'tblTempVendorCDR_20' ) start [2025-03-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762474', 'tblTempVendorCDR_20' ) end [2025-03-25 22:14:18] Production.INFO: ProcessCDR(1,14762474,1,1,2) [2025-03-25 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762474', 'tblTempUsageDetail_20' ) start [2025-03-25 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762474', 'tblTempUsageDetail_20' ) end [2025-03-25 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:14:21] Production.INFO: ==32107== Releasing lock... [2025-03-25 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:14:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-25 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:15:05 [end_date_ymd] => 2025-03-25 22:15:05 [RateCDR] => 1 ) [2025-03-25 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:15:05' and `end` < '2025-03-25 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:15:17] Production.INFO: count ==1313 [2025-03-25 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:15:05 - End Time 2025-03-25 22:15:05 [2025-03-25 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762479', 'tblTempUsageDetail_20' ) start [2025-03-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762479', 'tblTempUsageDetail_20' ) end [2025-03-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762479', 'tblTempVendorCDR_20' ) start [2025-03-25 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762479', 'tblTempVendorCDR_20' ) end [2025-03-25 22:15:18] Production.INFO: ProcessCDR(1,14762479,1,1,2) [2025-03-25 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762479', 'tblTempUsageDetail_20' ) start [2025-03-25 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762479', 'tblTempUsageDetail_20' ) end [2025-03-25 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:15:21] Production.INFO: ==32179== Releasing lock... [2025-03-25 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:15:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-25 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:16:06 [end_date_ymd] => 2025-03-25 22:16:06 [RateCDR] => 1 ) [2025-03-25 22:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:16:06' and `end` < '2025-03-25 22: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-03-25 22:16:18] Production.INFO: count ==1315 [2025-03-25 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:16:06 - End Time 2025-03-25 22:16:06 [2025-03-25 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762484', 'tblTempUsageDetail_20' ) start [2025-03-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762484', 'tblTempUsageDetail_20' ) end [2025-03-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762484', 'tblTempVendorCDR_20' ) start [2025-03-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762484', 'tblTempVendorCDR_20' ) end [2025-03-25 22:16:19] Production.INFO: ProcessCDR(1,14762484,1,1,2) [2025-03-25 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762484', 'tblTempUsageDetail_20' ) start [2025-03-25 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762484', 'tblTempUsageDetail_20' ) end [2025-03-25 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:16:22] Production.INFO: ==32251== Releasing lock... [2025-03-25 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-25 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:17:06 [end_date_ymd] => 2025-03-25 22:17:06 [RateCDR] => 1 ) [2025-03-25 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:17:06' and `end` < '2025-03-25 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:17:18] Production.INFO: count ==1310 [2025-03-25 22:17:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:17:06 - End Time 2025-03-25 22:17:06 [2025-03-25 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762489', 'tblTempUsageDetail_20' ) start [2025-03-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762489', 'tblTempUsageDetail_20' ) end [2025-03-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762489', 'tblTempVendorCDR_20' ) start [2025-03-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762489', 'tblTempVendorCDR_20' ) end [2025-03-25 22:17:19] Production.INFO: ProcessCDR(1,14762489,1,1,2) [2025-03-25 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762489', 'tblTempUsageDetail_20' ) start [2025-03-25 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762489', 'tblTempUsageDetail_20' ) end [2025-03-25 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:17:22] Production.INFO: ==32325== Releasing lock... [2025-03-25 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:17:22] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:18:05 [end_date_ymd] => 2025-03-25 22:18:05 [RateCDR] => 1 ) [2025-03-25 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:18:05' and `end` < '2025-03-25 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:18:18] Production.INFO: count ==1301 [2025-03-25 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:18:05 - End Time 2025-03-25 22:18:05 [2025-03-25 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762494', 'tblTempUsageDetail_20' ) start [2025-03-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762494', 'tblTempUsageDetail_20' ) end [2025-03-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762494', 'tblTempVendorCDR_20' ) start [2025-03-25 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762494', 'tblTempVendorCDR_20' ) end [2025-03-25 22:18:18] Production.INFO: ProcessCDR(1,14762494,1,1,2) [2025-03-25 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762494', 'tblTempUsageDetail_20' ) start [2025-03-25 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762494', 'tblTempUsageDetail_20' ) end [2025-03-25 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:18:23] Production.INFO: ==32399== Releasing lock... [2025-03-25 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:18:23] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:19:05 [end_date_ymd] => 2025-03-25 22:19:05 [RateCDR] => 1 ) [2025-03-25 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:19:05' and `end` < '2025-03-25 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:19:18] Production.INFO: count ==1300 [2025-03-25 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:19:05 - End Time 2025-03-25 22:19:05 [2025-03-25 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762499', 'tblTempUsageDetail_20' ) start [2025-03-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762499', 'tblTempUsageDetail_20' ) end [2025-03-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762499', 'tblTempVendorCDR_20' ) start [2025-03-25 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762499', 'tblTempVendorCDR_20' ) end [2025-03-25 22:19:18] Production.INFO: ProcessCDR(1,14762499,1,1,2) [2025-03-25 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762499', 'tblTempUsageDetail_20' ) start [2025-03-25 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762499', 'tblTempUsageDetail_20' ) end [2025-03-25 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:19:21] Production.INFO: ==32475== Releasing lock... [2025-03-25 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:19:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-25 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:20:07 [end_date_ymd] => 2025-03-25 22:20:07 [RateCDR] => 1 ) [2025-03-25 22: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-03-25 19:20:07' and `end` < '2025-03-25 22: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-03-25 22:20:19] Production.INFO: count ==1323 [2025-03-25 22:20:20] Production.ERROR: pbx CDR StartTime 2025-03-25 19:20:07 - End Time 2025-03-25 22:20:07 [2025-03-25 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762505', 'tblTempUsageDetail_20' ) start [2025-03-25 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762505', 'tblTempUsageDetail_20' ) end [2025-03-25 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762505', 'tblTempVendorCDR_20' ) start [2025-03-25 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762505', 'tblTempVendorCDR_20' ) end [2025-03-25 22:20:20] Production.INFO: ProcessCDR(1,14762505,1,1,2) [2025-03-25 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762505', 'tblTempUsageDetail_20' ) start [2025-03-25 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762505', 'tblTempUsageDetail_20' ) end [2025-03-25 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:20:23] Production.INFO: ==32555== Releasing lock... [2025-03-25 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:20:23] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:21:05 [end_date_ymd] => 2025-03-25 22:21:05 [RateCDR] => 1 ) [2025-03-25 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:21:05' and `end` < '2025-03-25 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:21:17] Production.INFO: count ==1314 [2025-03-25 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:21:05 - End Time 2025-03-25 22:21:05 [2025-03-25 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762510', 'tblTempUsageDetail_20' ) start [2025-03-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762510', 'tblTempUsageDetail_20' ) end [2025-03-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762510', 'tblTempVendorCDR_20' ) start [2025-03-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762510', 'tblTempVendorCDR_20' ) end [2025-03-25 22:21:18] Production.INFO: ProcessCDR(1,14762510,1,1,2) [2025-03-25 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762510', 'tblTempUsageDetail_20' ) start [2025-03-25 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762510', 'tblTempUsageDetail_20' ) end [2025-03-25 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:21:21] Production.INFO: ==32628== Releasing lock... [2025-03-25 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:21:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-25 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:22:06 [end_date_ymd] => 2025-03-25 22:22:06 [RateCDR] => 1 ) [2025-03-25 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:22:06' and `end` < '2025-03-25 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:22:19] Production.INFO: count ==1311 [2025-03-25 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:22:06 - End Time 2025-03-25 22:22:06 [2025-03-25 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762515', 'tblTempUsageDetail_20' ) start [2025-03-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762515', 'tblTempUsageDetail_20' ) end [2025-03-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762515', 'tblTempVendorCDR_20' ) start [2025-03-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762515', 'tblTempVendorCDR_20' ) end [2025-03-25 22:22:19] Production.INFO: ProcessCDR(1,14762515,1,1,2) [2025-03-25 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762515', 'tblTempUsageDetail_20' ) start [2025-03-25 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762515', 'tblTempUsageDetail_20' ) end [2025-03-25 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:22:23] Production.INFO: ==32704== Releasing lock... [2025-03-25 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:22:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-25 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:23:05 [end_date_ymd] => 2025-03-25 22:23:05 [RateCDR] => 1 ) [2025-03-25 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:23:05' and `end` < '2025-03-25 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:23:18] Production.INFO: count ==1311 [2025-03-25 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:23:05 - End Time 2025-03-25 22:23:05 [2025-03-25 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762520', 'tblTempUsageDetail_20' ) start [2025-03-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762520', 'tblTempUsageDetail_20' ) end [2025-03-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762520', 'tblTempVendorCDR_20' ) start [2025-03-25 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762520', 'tblTempVendorCDR_20' ) end [2025-03-25 22:23:18] Production.INFO: ProcessCDR(1,14762520,1,1,2) [2025-03-25 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762520', 'tblTempUsageDetail_20' ) start [2025-03-25 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762520', 'tblTempUsageDetail_20' ) end [2025-03-25 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:23:22] Production.INFO: ==318== Releasing lock... [2025-03-25 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:23:22] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:24:06 [end_date_ymd] => 2025-03-25 22:24:06 [RateCDR] => 1 ) [2025-03-25 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:24:06' and `end` < '2025-03-25 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:24:18] Production.INFO: count ==1307 [2025-03-25 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:24:06 - End Time 2025-03-25 22:24:06 [2025-03-25 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762525', 'tblTempUsageDetail_20' ) start [2025-03-25 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762525', 'tblTempUsageDetail_20' ) end [2025-03-25 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762525', 'tblTempVendorCDR_20' ) start [2025-03-25 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762525', 'tblTempVendorCDR_20' ) end [2025-03-25 22:24:19] Production.INFO: ProcessCDR(1,14762525,1,1,2) [2025-03-25 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762525', 'tblTempUsageDetail_20' ) start [2025-03-25 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762525', 'tblTempUsageDetail_20' ) end [2025-03-25 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:24:22] Production.INFO: ==410== Releasing lock... [2025-03-25 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:25:05 [end_date_ymd] => 2025-03-25 22:25:05 [RateCDR] => 1 ) [2025-03-25 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:25:05' and `end` < '2025-03-25 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:25:17] Production.INFO: count ==1311 [2025-03-25 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:25:05 - End Time 2025-03-25 22:25:05 [2025-03-25 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762530', 'tblTempUsageDetail_20' ) start [2025-03-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762530', 'tblTempUsageDetail_20' ) end [2025-03-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762530', 'tblTempVendorCDR_20' ) start [2025-03-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762530', 'tblTempVendorCDR_20' ) end [2025-03-25 22:25:18] Production.INFO: ProcessCDR(1,14762530,1,1,2) [2025-03-25 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762530', 'tblTempUsageDetail_20' ) start [2025-03-25 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762530', 'tblTempUsageDetail_20' ) end [2025-03-25 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:25:21] Production.INFO: ==534== Releasing lock... [2025-03-25 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:25:21] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:26:05 [end_date_ymd] => 2025-03-25 22:26:05 [RateCDR] => 1 ) [2025-03-25 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:26:05' and `end` < '2025-03-25 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:26:17] Production.INFO: count ==1318 [2025-03-25 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:26:05 - End Time 2025-03-25 22:26:05 [2025-03-25 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762535', 'tblTempUsageDetail_20' ) start [2025-03-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762535', 'tblTempUsageDetail_20' ) end [2025-03-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762535', 'tblTempVendorCDR_20' ) start [2025-03-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762535', 'tblTempVendorCDR_20' ) end [2025-03-25 22:26:18] Production.INFO: ProcessCDR(1,14762535,1,1,2) [2025-03-25 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762535', 'tblTempUsageDetail_20' ) start [2025-03-25 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762535', 'tblTempUsageDetail_20' ) end [2025-03-25 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:26:21] Production.INFO: ==620== Releasing lock... [2025-03-25 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:26:21] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:27:05 [end_date_ymd] => 2025-03-25 22:27:05 [RateCDR] => 1 ) [2025-03-25 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:27:05' and `end` < '2025-03-25 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:27:17] Production.INFO: count ==1332 [2025-03-25 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:27:05 - End Time 2025-03-25 22:27:05 [2025-03-25 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762540', 'tblTempUsageDetail_20' ) start [2025-03-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762540', 'tblTempUsageDetail_20' ) end [2025-03-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762540', 'tblTempVendorCDR_20' ) start [2025-03-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762540', 'tblTempVendorCDR_20' ) end [2025-03-25 22:27:18] Production.INFO: ProcessCDR(1,14762540,1,1,2) [2025-03-25 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762540', 'tblTempUsageDetail_20' ) start [2025-03-25 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762540', 'tblTempUsageDetail_20' ) end [2025-03-25 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:27:21] Production.INFO: ==735== Releasing lock... [2025-03-25 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-25 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:28:05 [end_date_ymd] => 2025-03-25 22:28:05 [RateCDR] => 1 ) [2025-03-25 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:28:05' and `end` < '2025-03-25 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:28:18] Production.INFO: count ==1326 [2025-03-25 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:28:05 - End Time 2025-03-25 22:28:05 [2025-03-25 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762545', 'tblTempUsageDetail_20' ) start [2025-03-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762545', 'tblTempUsageDetail_20' ) end [2025-03-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762545', 'tblTempVendorCDR_20' ) start [2025-03-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762545', 'tblTempVendorCDR_20' ) end [2025-03-25 22:28:18] Production.INFO: ProcessCDR(1,14762545,1,1,2) [2025-03-25 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762545', 'tblTempUsageDetail_20' ) start [2025-03-25 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762545', 'tblTempUsageDetail_20' ) end [2025-03-25 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:28:22] Production.INFO: ==812== Releasing lock... [2025-03-25 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:28:22] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:29:05 [end_date_ymd] => 2025-03-25 22:29:05 [RateCDR] => 1 ) [2025-03-25 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:29:05' and `end` < '2025-03-25 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:29:18] Production.INFO: count ==1323 [2025-03-25 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:29:05 - End Time 2025-03-25 22:29:05 [2025-03-25 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762550', 'tblTempUsageDetail_20' ) start [2025-03-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762550', 'tblTempUsageDetail_20' ) end [2025-03-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762550', 'tblTempVendorCDR_20' ) start [2025-03-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762550', 'tblTempVendorCDR_20' ) end [2025-03-25 22:29:18] Production.INFO: ProcessCDR(1,14762550,1,1,2) [2025-03-25 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762550', 'tblTempUsageDetail_20' ) start [2025-03-25 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762550', 'tblTempUsageDetail_20' ) end [2025-03-25 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:29:22] Production.INFO: ==896== Releasing lock... [2025-03-25 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:29:22] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:30:06 [end_date_ymd] => 2025-03-25 22:30:06 [RateCDR] => 1 ) [2025-03-25 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:30:06' and `end` < '2025-03-25 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:30:18] Production.INFO: count ==1310 [2025-03-25 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:30:06 - End Time 2025-03-25 22:30:06 [2025-03-25 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762555', 'tblTempUsageDetail_20' ) start [2025-03-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762555', 'tblTempUsageDetail_20' ) end [2025-03-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762555', 'tblTempVendorCDR_20' ) start [2025-03-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762555', 'tblTempVendorCDR_20' ) end [2025-03-25 22:30:19] Production.INFO: ProcessCDR(1,14762555,1,1,2) [2025-03-25 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762555', 'tblTempUsageDetail_20' ) start [2025-03-25 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762555', 'tblTempUsageDetail_20' ) end [2025-03-25 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:30:22] Production.INFO: ==985== Releasing lock... [2025-03-25 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-25 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:31:05 [end_date_ymd] => 2025-03-25 22:31:05 [RateCDR] => 1 ) [2025-03-25 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:31:05' and `end` < '2025-03-25 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:31:17] Production.INFO: count ==1276 [2025-03-25 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:31:05 - End Time 2025-03-25 22:31:05 [2025-03-25 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762561', 'tblTempUsageDetail_20' ) start [2025-03-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762561', 'tblTempUsageDetail_20' ) end [2025-03-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762561', 'tblTempVendorCDR_20' ) start [2025-03-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762561', 'tblTempVendorCDR_20' ) end [2025-03-25 22:31:18] Production.INFO: ProcessCDR(1,14762561,1,1,2) [2025-03-25 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762561', 'tblTempUsageDetail_20' ) start [2025-03-25 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762561', 'tblTempUsageDetail_20' ) end [2025-03-25 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:31:21] Production.INFO: ==1064== Releasing lock... [2025-03-25 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:31:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:32:05 [end_date_ymd] => 2025-03-25 22:32:05 [RateCDR] => 1 ) [2025-03-25 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:32:05' and `end` < '2025-03-25 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:32:18] Production.INFO: count ==1275 [2025-03-25 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:32:05 - End Time 2025-03-25 22:32:05 [2025-03-25 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762566', 'tblTempUsageDetail_20' ) start [2025-03-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762566', 'tblTempUsageDetail_20' ) end [2025-03-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762566', 'tblTempVendorCDR_20' ) start [2025-03-25 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762566', 'tblTempVendorCDR_20' ) end [2025-03-25 22:32:18] Production.INFO: ProcessCDR(1,14762566,1,1,2) [2025-03-25 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762566', 'tblTempUsageDetail_20' ) start [2025-03-25 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762566', 'tblTempUsageDetail_20' ) end [2025-03-25 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:32:22] Production.INFO: ==1149== Releasing lock... [2025-03-25 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:32:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-25 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:33:05 [end_date_ymd] => 2025-03-25 22:33:05 [RateCDR] => 1 ) [2025-03-25 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:33:05' and `end` < '2025-03-25 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:33:18] Production.INFO: count ==1273 [2025-03-25 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:33:05 - End Time 2025-03-25 22:33:05 [2025-03-25 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762571', 'tblTempUsageDetail_20' ) start [2025-03-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762571', 'tblTempUsageDetail_20' ) end [2025-03-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762571', 'tblTempVendorCDR_20' ) start [2025-03-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762571', 'tblTempVendorCDR_20' ) end [2025-03-25 22:33:18] Production.INFO: ProcessCDR(1,14762571,1,1,2) [2025-03-25 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762571', 'tblTempUsageDetail_20' ) start [2025-03-25 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762571', 'tblTempUsageDetail_20' ) end [2025-03-25 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:33:22] Production.INFO: ==1234== Releasing lock... [2025-03-25 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:33:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:34:05 [end_date_ymd] => 2025-03-25 22:34:05 [RateCDR] => 1 ) [2025-03-25 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:34:05' and `end` < '2025-03-25 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:34:18] Production.INFO: count ==1258 [2025-03-25 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:34:05 - End Time 2025-03-25 22:34:05 [2025-03-25 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762576', 'tblTempUsageDetail_20' ) start [2025-03-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762576', 'tblTempUsageDetail_20' ) end [2025-03-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762576', 'tblTempVendorCDR_20' ) start [2025-03-25 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762576', 'tblTempVendorCDR_20' ) end [2025-03-25 22:34:18] Production.INFO: ProcessCDR(1,14762576,1,1,2) [2025-03-25 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762576', 'tblTempUsageDetail_20' ) start [2025-03-25 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762576', 'tblTempUsageDetail_20' ) end [2025-03-25 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:34:22] Production.INFO: ==1328== Releasing lock... [2025-03-25 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:34:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:35:06 [end_date_ymd] => 2025-03-25 22:35:06 [RateCDR] => 1 ) [2025-03-25 22:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:35:06' and `end` < '2025-03-25 22:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:35:19] Production.INFO: count ==1253 [2025-03-25 22:35:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:35:06 - End Time 2025-03-25 22:35:06 [2025-03-25 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762581', 'tblTempUsageDetail_20' ) start [2025-03-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762581', 'tblTempUsageDetail_20' ) end [2025-03-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762581', 'tblTempVendorCDR_20' ) start [2025-03-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762581', 'tblTempVendorCDR_20' ) end [2025-03-25 22:35:19] Production.INFO: ProcessCDR(1,14762581,1,1,2) [2025-03-25 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762581', 'tblTempUsageDetail_20' ) start [2025-03-25 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762581', 'tblTempUsageDetail_20' ) end [2025-03-25 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:35:22] Production.INFO: ==1408== Releasing lock... [2025-03-25 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-25 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:36:05 [end_date_ymd] => 2025-03-25 22:36:05 [RateCDR] => 1 ) [2025-03-25 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:36:05' and `end` < '2025-03-25 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:36:18] Production.INFO: count ==1244 [2025-03-25 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:36:05 - End Time 2025-03-25 22:36:05 [2025-03-25 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762586', 'tblTempUsageDetail_20' ) start [2025-03-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762586', 'tblTempUsageDetail_20' ) end [2025-03-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762586', 'tblTempVendorCDR_20' ) start [2025-03-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762586', 'tblTempVendorCDR_20' ) end [2025-03-25 22:36:18] Production.INFO: ProcessCDR(1,14762586,1,1,2) [2025-03-25 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762586', 'tblTempUsageDetail_20' ) start [2025-03-25 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762586', 'tblTempUsageDetail_20' ) end [2025-03-25 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:36:21] Production.INFO: ==1487== Releasing lock... [2025-03-25 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:36:21] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:37:05 [end_date_ymd] => 2025-03-25 22:37:05 [RateCDR] => 1 ) [2025-03-25 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:37:05' and `end` < '2025-03-25 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:37:18] Production.INFO: count ==1240 [2025-03-25 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:37:05 - End Time 2025-03-25 22:37:05 [2025-03-25 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762591', 'tblTempUsageDetail_20' ) start [2025-03-25 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762591', 'tblTempUsageDetail_20' ) end [2025-03-25 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762591', 'tblTempVendorCDR_20' ) start [2025-03-25 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762591', 'tblTempVendorCDR_20' ) end [2025-03-25 22:37:18] Production.INFO: ProcessCDR(1,14762591,1,1,2) [2025-03-25 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762591', 'tblTempUsageDetail_20' ) start [2025-03-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762591', 'tblTempUsageDetail_20' ) end [2025-03-25 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:37:22] Production.INFO: ==1606== Releasing lock... [2025-03-25 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:37:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:38:05 [end_date_ymd] => 2025-03-25 22:38:05 [RateCDR] => 1 ) [2025-03-25 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:38:05' and `end` < '2025-03-25 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:38:18] Production.INFO: count ==1238 [2025-03-25 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:38:05 - End Time 2025-03-25 22:38:05 [2025-03-25 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762596', 'tblTempUsageDetail_20' ) start [2025-03-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762596', 'tblTempUsageDetail_20' ) end [2025-03-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762596', 'tblTempVendorCDR_20' ) start [2025-03-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762596', 'tblTempVendorCDR_20' ) end [2025-03-25 22:38:18] Production.INFO: ProcessCDR(1,14762596,1,1,2) [2025-03-25 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762596', 'tblTempUsageDetail_20' ) start [2025-03-25 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762596', 'tblTempUsageDetail_20' ) end [2025-03-25 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:38:21] Production.INFO: ==1685== Releasing lock... [2025-03-25 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:38:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:39:05 [end_date_ymd] => 2025-03-25 22:39:05 [RateCDR] => 1 ) [2025-03-25 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:39:05' and `end` < '2025-03-25 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:39:18] Production.INFO: count ==1243 [2025-03-25 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:39:05 - End Time 2025-03-25 22:39:05 [2025-03-25 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762601', 'tblTempUsageDetail_20' ) start [2025-03-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762601', 'tblTempUsageDetail_20' ) end [2025-03-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762601', 'tblTempVendorCDR_20' ) start [2025-03-25 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762601', 'tblTempVendorCDR_20' ) end [2025-03-25 22:39:18] Production.INFO: ProcessCDR(1,14762601,1,1,2) [2025-03-25 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762601', 'tblTempUsageDetail_20' ) start [2025-03-25 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762601', 'tblTempUsageDetail_20' ) end [2025-03-25 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:39:22] Production.INFO: ==1765== Releasing lock... [2025-03-25 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:39:22] Production.INFO: 38 MB #Memory Used# [2025-03-25 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:40:05 [end_date_ymd] => 2025-03-25 22:40:05 [RateCDR] => 1 ) [2025-03-25 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:40:05' and `end` < '2025-03-25 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:40:18] Production.INFO: count ==1245 [2025-03-25 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:40:05 - End Time 2025-03-25 22:40:05 [2025-03-25 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762607', 'tblTempUsageDetail_20' ) start [2025-03-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762607', 'tblTempUsageDetail_20' ) end [2025-03-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762607', 'tblTempVendorCDR_20' ) start [2025-03-25 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762607', 'tblTempVendorCDR_20' ) end [2025-03-25 22:40:18] Production.INFO: ProcessCDR(1,14762607,1,1,2) [2025-03-25 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762607', 'tblTempUsageDetail_20' ) start [2025-03-25 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762607', 'tblTempUsageDetail_20' ) end [2025-03-25 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:40:21] Production.INFO: ==1847== Releasing lock... [2025-03-25 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:40:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-25 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:41:06 [end_date_ymd] => 2025-03-25 22:41:06 [RateCDR] => 1 ) [2025-03-25 22:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:41:06' and `end` < '2025-03-25 22: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-03-25 22:41:18] Production.INFO: count ==1172 [2025-03-25 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:41:06 - End Time 2025-03-25 22:41:06 [2025-03-25 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762612', 'tblTempUsageDetail_20' ) start [2025-03-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762612', 'tblTempUsageDetail_20' ) end [2025-03-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762612', 'tblTempVendorCDR_20' ) start [2025-03-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762612', 'tblTempVendorCDR_20' ) end [2025-03-25 22:41:18] Production.INFO: ProcessCDR(1,14762612,1,1,2) [2025-03-25 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762612', 'tblTempUsageDetail_20' ) start [2025-03-25 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762612', 'tblTempUsageDetail_20' ) end [2025-03-25 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:41:22] Production.INFO: ==1969== Releasing lock... [2025-03-25 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:41:22] Production.INFO: 37 MB #Memory Used# [2025-03-25 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:42:05 [end_date_ymd] => 2025-03-25 22:42:05 [RateCDR] => 1 ) [2025-03-25 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:42:05' and `end` < '2025-03-25 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:42:18] Production.INFO: count ==1162 [2025-03-25 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:42:05 - End Time 2025-03-25 22:42:05 [2025-03-25 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762617', 'tblTempUsageDetail_20' ) start [2025-03-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762617', 'tblTempUsageDetail_20' ) end [2025-03-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762617', 'tblTempVendorCDR_20' ) start [2025-03-25 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762617', 'tblTempVendorCDR_20' ) end [2025-03-25 22:42:18] Production.INFO: ProcessCDR(1,14762617,1,1,2) [2025-03-25 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762617', 'tblTempUsageDetail_20' ) start [2025-03-25 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762617', 'tblTempUsageDetail_20' ) end [2025-03-25 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:42:21] Production.INFO: ==2050== Releasing lock... [2025-03-25 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:42:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:43:05 [end_date_ymd] => 2025-03-25 22:43:05 [RateCDR] => 1 ) [2025-03-25 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:43:05' and `end` < '2025-03-25 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:43:18] Production.INFO: count ==1162 [2025-03-25 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:43:05 - End Time 2025-03-25 22:43:05 [2025-03-25 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762622', 'tblTempUsageDetail_20' ) start [2025-03-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762622', 'tblTempUsageDetail_20' ) end [2025-03-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762622', 'tblTempVendorCDR_20' ) start [2025-03-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762622', 'tblTempVendorCDR_20' ) end [2025-03-25 22:43:18] Production.INFO: ProcessCDR(1,14762622,1,1,2) [2025-03-25 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762622', 'tblTempUsageDetail_20' ) start [2025-03-25 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762622', 'tblTempUsageDetail_20' ) end [2025-03-25 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:43:22] Production.INFO: ==2129== Releasing lock... [2025-03-25 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:44:05 [end_date_ymd] => 2025-03-25 22:44:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 19:44:05' and `end` < '2025-03-25 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-03-25 22:44:17] Production.INFO: count ==1152 [2025-03-25 22:44:17] Production.ERROR: pbx CDR StartTime 2025-03-25 19:44:05 - End Time 2025-03-25 22:44:05 [2025-03-25 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762627', 'tblTempUsageDetail_20' ) start [2025-03-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762627', 'tblTempUsageDetail_20' ) end [2025-03-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762627', 'tblTempVendorCDR_20' ) start [2025-03-25 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762627', 'tblTempVendorCDR_20' ) end [2025-03-25 22:44:18] Production.INFO: ProcessCDR(1,14762627,1,1,2) [2025-03-25 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762627', 'tblTempUsageDetail_20' ) start [2025-03-25 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762627', 'tblTempUsageDetail_20' ) end [2025-03-25 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:44:21] Production.INFO: ==2209== Releasing lock... [2025-03-25 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:44:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:45:06 [end_date_ymd] => 2025-03-25 22:45:06 [RateCDR] => 1 ) [2025-03-25 22:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:45:06' and `end` < '2025-03-25 22:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:45:18] Production.INFO: count ==1159 [2025-03-25 22:45:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:45:06 - End Time 2025-03-25 22:45:06 [2025-03-25 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762632', 'tblTempUsageDetail_20' ) start [2025-03-25 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762632', 'tblTempUsageDetail_20' ) end [2025-03-25 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762632', 'tblTempVendorCDR_20' ) start [2025-03-25 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762632', 'tblTempVendorCDR_20' ) end [2025-03-25 22:45:19] Production.INFO: ProcessCDR(1,14762632,1,1,2) [2025-03-25 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762632', 'tblTempUsageDetail_20' ) start [2025-03-25 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762632', 'tblTempUsageDetail_20' ) end [2025-03-25 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:45:22] Production.INFO: ==2290== Releasing lock... [2025-03-25 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:46:05 [end_date_ymd] => 2025-03-25 22:46:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 19:46:05' and `end` < '2025-03-25 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-03-25 22:46:17] Production.INFO: count ==1163 [2025-03-25 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:46:05 - End Time 2025-03-25 22:46:05 [2025-03-25 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762637', 'tblTempUsageDetail_20' ) start [2025-03-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762637', 'tblTempUsageDetail_20' ) end [2025-03-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762637', 'tblTempVendorCDR_20' ) start [2025-03-25 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762637', 'tblTempVendorCDR_20' ) end [2025-03-25 22:46:18] Production.INFO: ProcessCDR(1,14762637,1,1,2) [2025-03-25 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762637', 'tblTempUsageDetail_20' ) start [2025-03-25 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762637', 'tblTempUsageDetail_20' ) end [2025-03-25 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:46:23] Production.INFO: ==2375== Releasing lock... [2025-03-25 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:46:23] Production.INFO: 37 MB #Memory Used# [2025-03-25 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:47:05 [end_date_ymd] => 2025-03-25 22:47:05 [RateCDR] => 1 ) [2025-03-25 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:47:05' and `end` < '2025-03-25 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:47:18] Production.INFO: count ==1160 [2025-03-25 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:47:05 - End Time 2025-03-25 22:47:05 [2025-03-25 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762642', 'tblTempUsageDetail_20' ) start [2025-03-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762642', 'tblTempUsageDetail_20' ) end [2025-03-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762642', 'tblTempVendorCDR_20' ) start [2025-03-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762642', 'tblTempVendorCDR_20' ) end [2025-03-25 22:47:18] Production.INFO: ProcessCDR(1,14762642,1,1,2) [2025-03-25 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762642', 'tblTempUsageDetail_20' ) start [2025-03-25 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762642', 'tblTempUsageDetail_20' ) end [2025-03-25 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:47:21] Production.INFO: ==2459== Releasing lock... [2025-03-25 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:47:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:48:06 [end_date_ymd] => 2025-03-25 22:48:06 [RateCDR] => 1 ) [2025-03-25 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:48:06' and `end` < '2025-03-25 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:48:18] Production.INFO: count ==1159 [2025-03-25 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-25 19:48:06 - End Time 2025-03-25 22:48:06 [2025-03-25 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762647', 'tblTempUsageDetail_20' ) start [2025-03-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762647', 'tblTempUsageDetail_20' ) end [2025-03-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762647', 'tblTempVendorCDR_20' ) start [2025-03-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762647', 'tblTempVendorCDR_20' ) end [2025-03-25 22:48:19] Production.INFO: ProcessCDR(1,14762647,1,1,2) [2025-03-25 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762647', 'tblTempUsageDetail_20' ) start [2025-03-25 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762647', 'tblTempUsageDetail_20' ) end [2025-03-25 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:48:22] Production.INFO: ==2542== Releasing lock... [2025-03-25 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:49:05 [end_date_ymd] => 2025-03-25 22:49:05 [RateCDR] => 1 ) [2025-03-25 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:49:05' and `end` < '2025-03-25 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:49:18] Production.INFO: count ==1162 [2025-03-25 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:49:05 - End Time 2025-03-25 22:49:05 [2025-03-25 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762652', 'tblTempUsageDetail_20' ) start [2025-03-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762652', 'tblTempUsageDetail_20' ) end [2025-03-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762652', 'tblTempVendorCDR_20' ) start [2025-03-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762652', 'tblTempVendorCDR_20' ) end [2025-03-25 22:49:18] Production.INFO: ProcessCDR(1,14762652,1,1,2) [2025-03-25 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762652', 'tblTempUsageDetail_20' ) start [2025-03-25 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762652', 'tblTempUsageDetail_20' ) end [2025-03-25 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:49:21] Production.INFO: ==2623== Releasing lock... [2025-03-25 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:49:21] Production.INFO: 37 MB #Memory Used# [2025-03-25 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:50:06 [end_date_ymd] => 2025-03-25 22:50:06 [RateCDR] => 1 ) [2025-03-25 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:50:06' and `end` < '2025-03-25 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:50:19] Production.INFO: count ==1154 [2025-03-25 22:50:20] Production.ERROR: pbx CDR StartTime 2025-03-25 19:50:06 - End Time 2025-03-25 22:50:06 [2025-03-25 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762658', 'tblTempUsageDetail_20' ) start [2025-03-25 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762658', 'tblTempUsageDetail_20' ) end [2025-03-25 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762658', 'tblTempVendorCDR_20' ) start [2025-03-25 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762658', 'tblTempVendorCDR_20' ) end [2025-03-25 22:50:20] Production.INFO: ProcessCDR(1,14762658,1,1,2) [2025-03-25 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762658', 'tblTempUsageDetail_20' ) start [2025-03-25 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762658', 'tblTempUsageDetail_20' ) end [2025-03-25 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:50:23] Production.INFO: ==2704== Releasing lock... [2025-03-25 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:51:05 [end_date_ymd] => 2025-03-25 22:51:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 19:51:05' and `end` < '2025-03-25 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-03-25 22:51:17] Production.INFO: count ==1153 [2025-03-25 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:51:05 - End Time 2025-03-25 22:51:05 [2025-03-25 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762663', 'tblTempUsageDetail_20' ) start [2025-03-25 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762663', 'tblTempUsageDetail_20' ) end [2025-03-25 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762663', 'tblTempVendorCDR_20' ) start [2025-03-25 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762663', 'tblTempVendorCDR_20' ) end [2025-03-25 22:51:18] Production.INFO: ProcessCDR(1,14762663,1,1,2) [2025-03-25 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762663', 'tblTempUsageDetail_20' ) start [2025-03-25 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762663', 'tblTempUsageDetail_20' ) end [2025-03-25 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:51:22] Production.INFO: ==2786== Releasing lock... [2025-03-25 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:52:06 [end_date_ymd] => 2025-03-25 22:52:06 [RateCDR] => 1 ) [2025-03-25 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:52:06' and `end` < '2025-03-25 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:52:18] Production.INFO: count ==1153 [2025-03-25 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:52:06 - End Time 2025-03-25 22:52:06 [2025-03-25 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762668', 'tblTempUsageDetail_20' ) start [2025-03-25 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762668', 'tblTempUsageDetail_20' ) end [2025-03-25 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762668', 'tblTempVendorCDR_20' ) start [2025-03-25 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762668', 'tblTempVendorCDR_20' ) end [2025-03-25 22:52:19] Production.INFO: ProcessCDR(1,14762668,1,1,2) [2025-03-25 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762668', 'tblTempUsageDetail_20' ) start [2025-03-25 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762668', 'tblTempUsageDetail_20' ) end [2025-03-25 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:52:22] Production.INFO: ==2865== Releasing lock... [2025-03-25 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-25 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:53:05 [end_date_ymd] => 2025-03-25 22:53:05 [RateCDR] => 1 ) [2025-03-25 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:53:05' and `end` < '2025-03-25 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:53:17] Production.INFO: count ==1123 [2025-03-25 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:53:05 - End Time 2025-03-25 22:53:05 [2025-03-25 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762673', 'tblTempUsageDetail_20' ) start [2025-03-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762673', 'tblTempUsageDetail_20' ) end [2025-03-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762673', 'tblTempVendorCDR_20' ) start [2025-03-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762673', 'tblTempVendorCDR_20' ) end [2025-03-25 22:53:18] Production.INFO: ProcessCDR(1,14762673,1,1,2) [2025-03-25 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762673', 'tblTempUsageDetail_20' ) start [2025-03-25 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762673', 'tblTempUsageDetail_20' ) end [2025-03-25 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:53:21] Production.INFO: ==2942== Releasing lock... [2025-03-25 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:53:21] Production.INFO: 37 MB #Memory Used# [2025-03-25 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:54:05 [end_date_ymd] => 2025-03-25 22:54:05 [RateCDR] => 1 ) [2025-03-25 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:54:05' and `end` < '2025-03-25 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:54:18] Production.INFO: count ==1123 [2025-03-25 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:54:05 - End Time 2025-03-25 22:54:05 [2025-03-25 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762678', 'tblTempUsageDetail_20' ) start [2025-03-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762678', 'tblTempUsageDetail_20' ) end [2025-03-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762678', 'tblTempVendorCDR_20' ) start [2025-03-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762678', 'tblTempVendorCDR_20' ) end [2025-03-25 22:54:18] Production.INFO: ProcessCDR(1,14762678,1,1,2) [2025-03-25 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762678', 'tblTempUsageDetail_20' ) start [2025-03-25 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762678', 'tblTempUsageDetail_20' ) end [2025-03-25 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:54:22] Production.INFO: ==3027== Releasing lock... [2025-03-25 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:54:22] Production.INFO: 37 MB #Memory Used# [2025-03-25 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:55:05 [end_date_ymd] => 2025-03-25 22:55:05 [RateCDR] => 1 ) [2025-03-25 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:55:05' and `end` < '2025-03-25 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:55:18] Production.INFO: count ==1124 [2025-03-25 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:55:05 - End Time 2025-03-25 22:55:05 [2025-03-25 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762683', 'tblTempUsageDetail_20' ) start [2025-03-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762683', 'tblTempUsageDetail_20' ) end [2025-03-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762683', 'tblTempVendorCDR_20' ) start [2025-03-25 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762683', 'tblTempVendorCDR_20' ) end [2025-03-25 22:55:18] Production.INFO: ProcessCDR(1,14762683,1,1,2) [2025-03-25 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762683', 'tblTempUsageDetail_20' ) start [2025-03-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762683', 'tblTempUsageDetail_20' ) end [2025-03-25 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:55:22] Production.INFO: ==3106== Releasing lock... [2025-03-25 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:55:22] Production.INFO: 37 MB #Memory Used# [2025-03-25 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:56:05 [end_date_ymd] => 2025-03-25 22:56:05 [RateCDR] => 1 ) [2025-03-25 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:56:05' and `end` < '2025-03-25 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:56:18] Production.INFO: count ==1123 [2025-03-25 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:56:05 - End Time 2025-03-25 22:56:05 [2025-03-25 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762688', 'tblTempUsageDetail_20' ) start [2025-03-25 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762688', 'tblTempUsageDetail_20' ) end [2025-03-25 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762688', 'tblTempVendorCDR_20' ) start [2025-03-25 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762688', 'tblTempVendorCDR_20' ) end [2025-03-25 22:56:18] Production.INFO: ProcessCDR(1,14762688,1,1,2) [2025-03-25 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762688', 'tblTempUsageDetail_20' ) start [2025-03-25 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762688', 'tblTempUsageDetail_20' ) end [2025-03-25 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:56:21] Production.INFO: ==3226== Releasing lock... [2025-03-25 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:56:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:57:05 [end_date_ymd] => 2025-03-25 22:57:05 [RateCDR] => 1 ) [2025-03-25 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:57:05' and `end` < '2025-03-25 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:57:17] Production.INFO: count ==1107 [2025-03-25 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:57:05 - End Time 2025-03-25 22:57:05 [2025-03-25 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762693', 'tblTempUsageDetail_20' ) start [2025-03-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762693', 'tblTempUsageDetail_20' ) end [2025-03-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762693', 'tblTempVendorCDR_20' ) start [2025-03-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762693', 'tblTempVendorCDR_20' ) end [2025-03-25 22:57:18] Production.INFO: ProcessCDR(1,14762693,1,1,2) [2025-03-25 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762693', 'tblTempUsageDetail_20' ) start [2025-03-25 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762693', 'tblTempUsageDetail_20' ) end [2025-03-25 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:57:21] Production.INFO: ==3310== Releasing lock... [2025-03-25 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:57:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:58:05 [end_date_ymd] => 2025-03-25 22:58:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 19:58:05' and `end` < '2025-03-25 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-03-25 22:58:18] Production.INFO: count ==1101 [2025-03-25 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:58:05 - End Time 2025-03-25 22:58:05 [2025-03-25 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762698', 'tblTempUsageDetail_20' ) start [2025-03-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762698', 'tblTempUsageDetail_20' ) end [2025-03-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762698', 'tblTempVendorCDR_20' ) start [2025-03-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762698', 'tblTempVendorCDR_20' ) end [2025-03-25 22:58:18] Production.INFO: ProcessCDR(1,14762698,1,1,2) [2025-03-25 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762698', 'tblTempUsageDetail_20' ) start [2025-03-25 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762698', 'tblTempUsageDetail_20' ) end [2025-03-25 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:58:21] Production.INFO: ==3392== Releasing lock... [2025-03-25 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:58:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 19:59:05 [end_date_ymd] => 2025-03-25 22:59:05 [RateCDR] => 1 ) [2025-03-25 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 19:59:05' and `end` < '2025-03-25 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 22:59:17] Production.INFO: count ==1101 [2025-03-25 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 19:59:05 - End Time 2025-03-25 22:59:05 [2025-03-25 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762703', 'tblTempUsageDetail_20' ) start [2025-03-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762703', 'tblTempUsageDetail_20' ) end [2025-03-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762703', 'tblTempVendorCDR_20' ) start [2025-03-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762703', 'tblTempVendorCDR_20' ) end [2025-03-25 22:59:18] Production.INFO: ProcessCDR(1,14762703,1,1,2) [2025-03-25 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762703', 'tblTempUsageDetail_20' ) start [2025-03-25 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762703', 'tblTempUsageDetail_20' ) end [2025-03-25 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 22:59:21] Production.INFO: ==3468== Releasing lock... [2025-03-25 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 22:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:00:07 [end_date_ymd] => 2025-03-25 23:00:07 [RateCDR] => 1 ) [2025-03-25 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:00:07' and `end` < '2025-03-25 23: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-03-25 23:00:19] Production.INFO: count ==1095 [2025-03-25 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:00:07 - End Time 2025-03-25 23:00:07 [2025-03-25 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762709', 'tblTempUsageDetail_20' ) start [2025-03-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762709', 'tblTempUsageDetail_20' ) end [2025-03-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762709', 'tblTempVendorCDR_20' ) start [2025-03-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762709', 'tblTempVendorCDR_20' ) end [2025-03-25 23:00:20] Production.INFO: ProcessCDR(1,14762709,1,1,2) [2025-03-25 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762709', 'tblTempUsageDetail_20' ) start [2025-03-25 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762709', 'tblTempUsageDetail_20' ) end [2025-03-25 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:00:23] Production.INFO: ==3556== Releasing lock... [2025-03-25 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:00:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:01:05 [end_date_ymd] => 2025-03-25 23:01:05 [RateCDR] => 1 ) [2025-03-25 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:01:05' and `end` < '2025-03-25 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:01:17] Production.INFO: count ==1066 [2025-03-25 23:01:17] Production.ERROR: pbx CDR StartTime 2025-03-25 20:01:05 - End Time 2025-03-25 23:01:05 [2025-03-25 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762714', 'tblTempUsageDetail_20' ) start [2025-03-25 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762714', 'tblTempUsageDetail_20' ) end [2025-03-25 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762714', 'tblTempVendorCDR_20' ) start [2025-03-25 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762714', 'tblTempVendorCDR_20' ) end [2025-03-25 23:01:17] Production.INFO: ProcessCDR(1,14762714,1,1,2) [2025-03-25 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762714', 'tblTempUsageDetail_20' ) start [2025-03-25 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762714', 'tblTempUsageDetail_20' ) end [2025-03-25 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:01:21] Production.INFO: ==3727== Releasing lock... [2025-03-25 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:01:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:02:05 [end_date_ymd] => 2025-03-25 23:02:05 [RateCDR] => 1 ) [2025-03-25 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:02:05' and `end` < '2025-03-25 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:02:18] Production.INFO: count ==1066 [2025-03-25 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:02:05 - End Time 2025-03-25 23:02:05 [2025-03-25 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762719', 'tblTempUsageDetail_20' ) start [2025-03-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762719', 'tblTempUsageDetail_20' ) end [2025-03-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762719', 'tblTempVendorCDR_20' ) start [2025-03-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762719', 'tblTempVendorCDR_20' ) end [2025-03-25 23:02:18] Production.INFO: ProcessCDR(1,14762719,1,1,2) [2025-03-25 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762719', 'tblTempUsageDetail_20' ) start [2025-03-25 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762719', 'tblTempUsageDetail_20' ) end [2025-03-25 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:02:23] Production.INFO: ==3808== Releasing lock... [2025-03-25 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:02:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:03:05 [end_date_ymd] => 2025-03-25 23:03:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:03:05' and `end` < '2025-03-25 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-03-25 23:03:18] Production.INFO: count ==1067 [2025-03-25 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:03:05 - End Time 2025-03-25 23:03:05 [2025-03-25 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762724', 'tblTempUsageDetail_20' ) start [2025-03-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762724', 'tblTempUsageDetail_20' ) end [2025-03-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762724', 'tblTempVendorCDR_20' ) start [2025-03-25 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762724', 'tblTempVendorCDR_20' ) end [2025-03-25 23:03:18] Production.INFO: ProcessCDR(1,14762724,1,1,2) [2025-03-25 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762724', 'tblTempUsageDetail_20' ) start [2025-03-25 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762724', 'tblTempUsageDetail_20' ) end [2025-03-25 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:03:23] Production.INFO: ==3890== Releasing lock... [2025-03-25 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:03:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:04:05 [end_date_ymd] => 2025-03-25 23:04:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:04:05' and `end` < '2025-03-25 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:04:18] Production.INFO: count ==1062 [2025-03-25 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:04:05 - End Time 2025-03-25 23:04:05 [2025-03-25 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762729', 'tblTempUsageDetail_20' ) start [2025-03-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762729', 'tblTempUsageDetail_20' ) end [2025-03-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762729', 'tblTempVendorCDR_20' ) start [2025-03-25 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762729', 'tblTempVendorCDR_20' ) end [2025-03-25 23:04:18] Production.INFO: ProcessCDR(1,14762729,1,1,2) [2025-03-25 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762729', 'tblTempUsageDetail_20' ) start [2025-03-25 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762729', 'tblTempUsageDetail_20' ) end [2025-03-25 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:04:21] Production.INFO: ==3970== Releasing lock... [2025-03-25 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:04:21] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:05:06 [end_date_ymd] => 2025-03-25 23:05:06 [RateCDR] => 1 ) [2025-03-25 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:05:06' and `end` < '2025-03-25 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:05:18] Production.INFO: count ==1059 [2025-03-25 23:05:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:05:06 - End Time 2025-03-25 23:05:06 [2025-03-25 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762734', 'tblTempUsageDetail_20' ) start [2025-03-25 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762734', 'tblTempUsageDetail_20' ) end [2025-03-25 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762734', 'tblTempVendorCDR_20' ) start [2025-03-25 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762734', 'tblTempVendorCDR_20' ) end [2025-03-25 23:05:19] Production.INFO: ProcessCDR(1,14762734,1,1,2) [2025-03-25 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762734', 'tblTempUsageDetail_20' ) start [2025-03-25 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762734', 'tblTempUsageDetail_20' ) end [2025-03-25 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:05:22] Production.INFO: ==4140== Releasing lock... [2025-03-25 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:06:05 [end_date_ymd] => 2025-03-25 23:06:05 [RateCDR] => 1 ) [2025-03-25 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:06:05' and `end` < '2025-03-25 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:06:18] Production.INFO: count ==1045 [2025-03-25 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:06:05 - End Time 2025-03-25 23:06:05 [2025-03-25 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762739', 'tblTempUsageDetail_20' ) start [2025-03-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762739', 'tblTempUsageDetail_20' ) end [2025-03-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762739', 'tblTempVendorCDR_20' ) start [2025-03-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762739', 'tblTempVendorCDR_20' ) end [2025-03-25 23:06:18] Production.INFO: ProcessCDR(1,14762739,1,1,2) [2025-03-25 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762739', 'tblTempUsageDetail_20' ) start [2025-03-25 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762739', 'tblTempUsageDetail_20' ) end [2025-03-25 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:06:21] Production.INFO: ==4217== Releasing lock... [2025-03-25 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:06:21] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:07:06 [end_date_ymd] => 2025-03-25 23:07:06 [RateCDR] => 1 ) [2025-03-25 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:07:06' and `end` < '2025-03-25 23: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-03-25 23:07:18] Production.INFO: count ==1052 [2025-03-25 23:07:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:07:06 - End Time 2025-03-25 23:07:06 [2025-03-25 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762744', 'tblTempUsageDetail_20' ) start [2025-03-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762744', 'tblTempUsageDetail_20' ) end [2025-03-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762744', 'tblTempVendorCDR_20' ) start [2025-03-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762744', 'tblTempVendorCDR_20' ) end [2025-03-25 23:07:19] Production.INFO: ProcessCDR(1,14762744,1,1,2) [2025-03-25 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762744', 'tblTempUsageDetail_20' ) start [2025-03-25 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762744', 'tblTempUsageDetail_20' ) end [2025-03-25 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:07:22] Production.INFO: ==4293== Releasing lock... [2025-03-25 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:08:05 [end_date_ymd] => 2025-03-25 23:08:05 [RateCDR] => 1 ) [2025-03-25 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:08:05' and `end` < '2025-03-25 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:08:17] Production.INFO: count ==1046 [2025-03-25 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:08:05 - End Time 2025-03-25 23:08:05 [2025-03-25 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762749', 'tblTempUsageDetail_20' ) start [2025-03-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762749', 'tblTempUsageDetail_20' ) end [2025-03-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762749', 'tblTempVendorCDR_20' ) start [2025-03-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762749', 'tblTempVendorCDR_20' ) end [2025-03-25 23:08:18] Production.INFO: ProcessCDR(1,14762749,1,1,2) [2025-03-25 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762749', 'tblTempUsageDetail_20' ) start [2025-03-25 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762749', 'tblTempUsageDetail_20' ) end [2025-03-25 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:08:21] Production.INFO: ==4453== Releasing lock... [2025-03-25 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:08:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:09:06 [end_date_ymd] => 2025-03-25 23:09:06 [RateCDR] => 1 ) [2025-03-25 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:09:06' and `end` < '2025-03-25 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:09:18] Production.INFO: count ==1043 [2025-03-25 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:09:06 - End Time 2025-03-25 23:09:06 [2025-03-25 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762754', 'tblTempUsageDetail_20' ) start [2025-03-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762754', 'tblTempUsageDetail_20' ) end [2025-03-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762754', 'tblTempVendorCDR_20' ) start [2025-03-25 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762754', 'tblTempVendorCDR_20' ) end [2025-03-25 23:09:18] Production.INFO: ProcessCDR(1,14762754,1,1,2) [2025-03-25 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762754', 'tblTempUsageDetail_20' ) start [2025-03-25 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762754', 'tblTempUsageDetail_20' ) end [2025-03-25 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:09:23] Production.INFO: ==4532== Releasing lock... [2025-03-25 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:09:23] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:10:06 [end_date_ymd] => 2025-03-25 23:10:06 [RateCDR] => 1 ) [2025-03-25 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:10:06' and `end` < '2025-03-25 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:10:19] Production.INFO: count ==1045 [2025-03-25 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:10:06 - End Time 2025-03-25 23:10:06 [2025-03-25 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762760', 'tblTempUsageDetail_20' ) start [2025-03-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762760', 'tblTempUsageDetail_20' ) end [2025-03-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762760', 'tblTempVendorCDR_20' ) start [2025-03-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762760', 'tblTempVendorCDR_20' ) end [2025-03-25 23:10:19] Production.INFO: ProcessCDR(1,14762760,1,1,2) [2025-03-25 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762760', 'tblTempUsageDetail_20' ) start [2025-03-25 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762760', 'tblTempUsageDetail_20' ) end [2025-03-25 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:10:24] Production.INFO: ==4618== Releasing lock... [2025-03-25 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:10:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:11:05 [end_date_ymd] => 2025-03-25 23:11:05 [RateCDR] => 1 ) [2025-03-25 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:11:05' and `end` < '2025-03-25 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:11:18] Production.INFO: count ==1050 [2025-03-25 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:11:05 - End Time 2025-03-25 23:11:05 [2025-03-25 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762765', 'tblTempUsageDetail_20' ) start [2025-03-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762765', 'tblTempUsageDetail_20' ) end [2025-03-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762765', 'tblTempVendorCDR_20' ) start [2025-03-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762765', 'tblTempVendorCDR_20' ) end [2025-03-25 23:11:18] Production.INFO: ProcessCDR(1,14762765,1,1,2) [2025-03-25 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762765', 'tblTempUsageDetail_20' ) start [2025-03-25 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762765', 'tblTempUsageDetail_20' ) end [2025-03-25 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:11:23] Production.INFO: ==4704== Releasing lock... [2025-03-25 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:11:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:12:05 [end_date_ymd] => 2025-03-25 23:12:05 [RateCDR] => 1 ) [2025-03-25 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:12:05' and `end` < '2025-03-25 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:12:17] Production.INFO: count ==1049 [2025-03-25 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:12:05 - End Time 2025-03-25 23:12:05 [2025-03-25 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762770', 'tblTempUsageDetail_20' ) start [2025-03-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762770', 'tblTempUsageDetail_20' ) end [2025-03-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762770', 'tblTempVendorCDR_20' ) start [2025-03-25 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762770', 'tblTempVendorCDR_20' ) end [2025-03-25 23:12:18] Production.INFO: ProcessCDR(1,14762770,1,1,2) [2025-03-25 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762770', 'tblTempUsageDetail_20' ) start [2025-03-25 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762770', 'tblTempUsageDetail_20' ) end [2025-03-25 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:12:21] Production.INFO: ==4901== Releasing lock... [2025-03-25 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:13:06 [end_date_ymd] => 2025-03-25 23:13:06 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:13:06' and `end` < '2025-03-25 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-03-25 23:13:18] Production.INFO: count ==1058 [2025-03-25 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:13:06 - End Time 2025-03-25 23:13:06 [2025-03-25 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762775', 'tblTempUsageDetail_20' ) start [2025-03-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762775', 'tblTempUsageDetail_20' ) end [2025-03-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762775', 'tblTempVendorCDR_20' ) start [2025-03-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762775', 'tblTempVendorCDR_20' ) end [2025-03-25 23:13:18] Production.INFO: ProcessCDR(1,14762775,1,1,2) [2025-03-25 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762775', 'tblTempUsageDetail_20' ) start [2025-03-25 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762775', 'tblTempUsageDetail_20' ) end [2025-03-25 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:13:23] Production.INFO: ==4981== Releasing lock... [2025-03-25 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:13:23] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:14:05 [end_date_ymd] => 2025-03-25 23:14:05 [RateCDR] => 1 ) [2025-03-25 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:14:05' and `end` < '2025-03-25 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:14:18] Production.INFO: count ==1062 [2025-03-25 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:14:05 - End Time 2025-03-25 23:14:05 [2025-03-25 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762780', 'tblTempUsageDetail_20' ) start [2025-03-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762780', 'tblTempUsageDetail_20' ) end [2025-03-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762780', 'tblTempVendorCDR_20' ) start [2025-03-25 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762780', 'tblTempVendorCDR_20' ) end [2025-03-25 23:14:18] Production.INFO: ProcessCDR(1,14762780,1,1,2) [2025-03-25 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762780', 'tblTempUsageDetail_20' ) start [2025-03-25 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762780', 'tblTempUsageDetail_20' ) end [2025-03-25 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:14:22] Production.INFO: ==5061== Releasing lock... [2025-03-25 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:15:05 [end_date_ymd] => 2025-03-25 23:15:05 [RateCDR] => 1 ) [2025-03-25 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:15:05' and `end` < '2025-03-25 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:15:18] Production.INFO: count ==1062 [2025-03-25 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:15:05 - End Time 2025-03-25 23:15:05 [2025-03-25 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762785', 'tblTempUsageDetail_20' ) start [2025-03-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762785', 'tblTempUsageDetail_20' ) end [2025-03-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762785', 'tblTempVendorCDR_20' ) start [2025-03-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762785', 'tblTempVendorCDR_20' ) end [2025-03-25 23:15:18] Production.INFO: ProcessCDR(1,14762785,1,1,2) [2025-03-25 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762785', 'tblTempUsageDetail_20' ) start [2025-03-25 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762785', 'tblTempUsageDetail_20' ) end [2025-03-25 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:15:23] Production.INFO: ==5221== Releasing lock... [2025-03-25 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:15:23] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:16:05 [end_date_ymd] => 2025-03-25 23:16:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:16:05' and `end` < '2025-03-25 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-03-25 23:16:17] Production.INFO: count ==1047 [2025-03-25 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:16:05 - End Time 2025-03-25 23:16:05 [2025-03-25 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762790', 'tblTempUsageDetail_20' ) start [2025-03-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762790', 'tblTempUsageDetail_20' ) end [2025-03-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762790', 'tblTempVendorCDR_20' ) start [2025-03-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762790', 'tblTempVendorCDR_20' ) end [2025-03-25 23:16:18] Production.INFO: ProcessCDR(1,14762790,1,1,2) [2025-03-25 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762790', 'tblTempUsageDetail_20' ) start [2025-03-25 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762790', 'tblTempUsageDetail_20' ) end [2025-03-25 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:16:23] Production.INFO: ==5306== Releasing lock... [2025-03-25 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:17:05 [end_date_ymd] => 2025-03-25 23:17:05 [RateCDR] => 1 ) [2025-03-25 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:17:05' and `end` < '2025-03-25 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:17:18] Production.INFO: count ==1046 [2025-03-25 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:17:05 - End Time 2025-03-25 23:17:05 [2025-03-25 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762795', 'tblTempUsageDetail_20' ) start [2025-03-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762795', 'tblTempUsageDetail_20' ) end [2025-03-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762795', 'tblTempVendorCDR_20' ) start [2025-03-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762795', 'tblTempVendorCDR_20' ) end [2025-03-25 23:17:18] Production.INFO: ProcessCDR(1,14762795,1,1,2) [2025-03-25 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762795', 'tblTempUsageDetail_20' ) start [2025-03-25 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762795', 'tblTempUsageDetail_20' ) end [2025-03-25 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:17:23] Production.INFO: ==5387== Releasing lock... [2025-03-25 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:17:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:18:05 [end_date_ymd] => 2025-03-25 23:18:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:18:05' and `end` < '2025-03-25 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-03-25 23:18:18] Production.INFO: count ==1037 [2025-03-25 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:18:05 - End Time 2025-03-25 23:18:05 [2025-03-25 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762800', 'tblTempUsageDetail_20' ) start [2025-03-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762800', 'tblTempUsageDetail_20' ) end [2025-03-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762800', 'tblTempVendorCDR_20' ) start [2025-03-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762800', 'tblTempVendorCDR_20' ) end [2025-03-25 23:18:18] Production.INFO: ProcessCDR(1,14762800,1,1,2) [2025-03-25 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762800', 'tblTempUsageDetail_20' ) start [2025-03-25 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762800', 'tblTempUsageDetail_20' ) end [2025-03-25 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:18:22] Production.INFO: ==5470== Releasing lock... [2025-03-25 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:19:06 [end_date_ymd] => 2025-03-25 23:19:06 [RateCDR] => 1 ) [2025-03-25 23:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:19:06' and `end` < '2025-03-25 23:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:19:18] Production.INFO: count ==1048 [2025-03-25 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:19:06 - End Time 2025-03-25 23:19:06 [2025-03-25 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762805', 'tblTempUsageDetail_20' ) start [2025-03-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762805', 'tblTempUsageDetail_20' ) end [2025-03-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762805', 'tblTempVendorCDR_20' ) start [2025-03-25 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762805', 'tblTempVendorCDR_20' ) end [2025-03-25 23:19:18] Production.INFO: ProcessCDR(1,14762805,1,1,2) [2025-03-25 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762805', 'tblTempUsageDetail_20' ) start [2025-03-25 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762805', 'tblTempUsageDetail_20' ) end [2025-03-25 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:19:22] Production.INFO: ==5550== Releasing lock... [2025-03-25 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:19:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:20:05 [end_date_ymd] => 2025-03-25 23:20:05 [RateCDR] => 1 ) [2025-03-25 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:20:05' and `end` < '2025-03-25 23: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-03-25 23:20:18] Production.INFO: count ==1021 [2025-03-25 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:20:05 - End Time 2025-03-25 23:20:05 [2025-03-25 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762811', 'tblTempUsageDetail_20' ) start [2025-03-25 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762811', 'tblTempUsageDetail_20' ) end [2025-03-25 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762811', 'tblTempVendorCDR_20' ) start [2025-03-25 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762811', 'tblTempVendorCDR_20' ) end [2025-03-25 23:20:18] Production.INFO: ProcessCDR(1,14762811,1,1,2) [2025-03-25 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762811', 'tblTempUsageDetail_20' ) start [2025-03-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762811', 'tblTempUsageDetail_20' ) end [2025-03-25 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:20:22] Production.INFO: ==5632== Releasing lock... [2025-03-25 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:20:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:21:05 [end_date_ymd] => 2025-03-25 23:21:05 [RateCDR] => 1 ) [2025-03-25 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:21:05' and `end` < '2025-03-25 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:21:18] Production.INFO: count ==1013 [2025-03-25 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:21:05 - End Time 2025-03-25 23:21:05 [2025-03-25 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762816', 'tblTempUsageDetail_20' ) start [2025-03-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762816', 'tblTempUsageDetail_20' ) end [2025-03-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762816', 'tblTempVendorCDR_20' ) start [2025-03-25 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762816', 'tblTempVendorCDR_20' ) end [2025-03-25 23:21:18] Production.INFO: ProcessCDR(1,14762816,1,1,2) [2025-03-25 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762816', 'tblTempUsageDetail_20' ) start [2025-03-25 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762816', 'tblTempUsageDetail_20' ) end [2025-03-25 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:21:23] Production.INFO: ==5716== Releasing lock... [2025-03-25 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:21:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:22:05 [end_date_ymd] => 2025-03-25 23:22:05 [RateCDR] => 1 ) [2025-03-25 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:22:05' and `end` < '2025-03-25 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:22:17] Production.INFO: count ==1028 [2025-03-25 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:22:05 - End Time 2025-03-25 23:22:05 [2025-03-25 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762821', 'tblTempUsageDetail_20' ) start [2025-03-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762821', 'tblTempUsageDetail_20' ) end [2025-03-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762821', 'tblTempVendorCDR_20' ) start [2025-03-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762821', 'tblTempVendorCDR_20' ) end [2025-03-25 23:22:18] Production.INFO: ProcessCDR(1,14762821,1,1,2) [2025-03-25 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762821', 'tblTempUsageDetail_20' ) start [2025-03-25 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762821', 'tblTempUsageDetail_20' ) end [2025-03-25 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:22:21] Production.INFO: ==5797== Releasing lock... [2025-03-25 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:22:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:23:05 [end_date_ymd] => 2025-03-25 23:23:05 [RateCDR] => 1 ) [2025-03-25 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:23:05' and `end` < '2025-03-25 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:23:18] Production.INFO: count ==1013 [2025-03-25 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:23:05 - End Time 2025-03-25 23:23:05 [2025-03-25 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762826', 'tblTempUsageDetail_20' ) start [2025-03-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762826', 'tblTempUsageDetail_20' ) end [2025-03-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762826', 'tblTempVendorCDR_20' ) start [2025-03-25 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762826', 'tblTempVendorCDR_20' ) end [2025-03-25 23:23:18] Production.INFO: ProcessCDR(1,14762826,1,1,2) [2025-03-25 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762826', 'tblTempUsageDetail_20' ) start [2025-03-25 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762826', 'tblTempUsageDetail_20' ) end [2025-03-25 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:23:21] Production.INFO: ==5882== Releasing lock... [2025-03-25 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:23:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:24:05 [end_date_ymd] => 2025-03-25 23:24:05 [RateCDR] => 1 ) [2025-03-25 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:24:05' and `end` < '2025-03-25 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:24:18] Production.INFO: count ==1016 [2025-03-25 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:24:05 - End Time 2025-03-25 23:24:05 [2025-03-25 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762831', 'tblTempUsageDetail_20' ) start [2025-03-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762831', 'tblTempUsageDetail_20' ) end [2025-03-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762831', 'tblTempVendorCDR_20' ) start [2025-03-25 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762831', 'tblTempVendorCDR_20' ) end [2025-03-25 23:24:18] Production.INFO: ProcessCDR(1,14762831,1,1,2) [2025-03-25 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762831', 'tblTempUsageDetail_20' ) start [2025-03-25 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762831', 'tblTempUsageDetail_20' ) end [2025-03-25 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:24:23] Production.INFO: ==5963== Releasing lock... [2025-03-25 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:24:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:25:06 [end_date_ymd] => 2025-03-25 23:25:06 [RateCDR] => 1 ) [2025-03-25 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:25:06' and `end` < '2025-03-25 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:25:18] Production.INFO: count ==1017 [2025-03-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:25:06 - End Time 2025-03-25 23:25:06 [2025-03-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762836', 'tblTempUsageDetail_20' ) start [2025-03-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762836', 'tblTempUsageDetail_20' ) end [2025-03-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762836', 'tblTempVendorCDR_20' ) start [2025-03-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762836', 'tblTempVendorCDR_20' ) end [2025-03-25 23:25:18] Production.INFO: ProcessCDR(1,14762836,1,1,2) [2025-03-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762836', 'tblTempUsageDetail_20' ) start [2025-03-25 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762836', 'tblTempUsageDetail_20' ) end [2025-03-25 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:25:22] Production.INFO: ==6050== Releasing lock... [2025-03-25 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:25:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:26:06 [end_date_ymd] => 2025-03-25 23:26:06 [RateCDR] => 1 ) [2025-03-25 23: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-03-25 20:26:06' and `end` < '2025-03-25 23: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-03-25 23:26:18] Production.INFO: count ==1008 [2025-03-25 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:26:06 - End Time 2025-03-25 23:26:06 [2025-03-25 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762841', 'tblTempUsageDetail_20' ) start [2025-03-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762841', 'tblTempUsageDetail_20' ) end [2025-03-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762841', 'tblTempVendorCDR_20' ) start [2025-03-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762841', 'tblTempVendorCDR_20' ) end [2025-03-25 23:26:18] Production.INFO: ProcessCDR(1,14762841,1,1,2) [2025-03-25 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762841', 'tblTempUsageDetail_20' ) start [2025-03-25 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762841', 'tblTempUsageDetail_20' ) end [2025-03-25 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:26:22] Production.INFO: ==6141== Releasing lock... [2025-03-25 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:26:22] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:27:05 [end_date_ymd] => 2025-03-25 23:27:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:27:05' and `end` < '2025-03-25 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-03-25 23:27:17] Production.INFO: count ==1011 [2025-03-25 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:27:05 - End Time 2025-03-25 23:27:05 [2025-03-25 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762846', 'tblTempUsageDetail_20' ) start [2025-03-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762846', 'tblTempUsageDetail_20' ) end [2025-03-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762846', 'tblTempVendorCDR_20' ) start [2025-03-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762846', 'tblTempVendorCDR_20' ) end [2025-03-25 23:27:18] Production.INFO: ProcessCDR(1,14762846,1,1,2) [2025-03-25 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762846', 'tblTempUsageDetail_20' ) start [2025-03-25 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762846', 'tblTempUsageDetail_20' ) end [2025-03-25 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:27:21] Production.INFO: ==6266== Releasing lock... [2025-03-25 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:27:21] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:28:06 [end_date_ymd] => 2025-03-25 23:28:06 [RateCDR] => 1 ) [2025-03-25 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:28:06' and `end` < '2025-03-25 23: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-03-25 23:28:18] Production.INFO: count ==1014 [2025-03-25 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:28:06 - End Time 2025-03-25 23:28:06 [2025-03-25 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762851', 'tblTempUsageDetail_20' ) start [2025-03-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762851', 'tblTempUsageDetail_20' ) end [2025-03-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762851', 'tblTempVendorCDR_20' ) start [2025-03-25 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762851', 'tblTempVendorCDR_20' ) end [2025-03-25 23:28:18] Production.INFO: ProcessCDR(1,14762851,1,1,2) [2025-03-25 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762851', 'tblTempUsageDetail_20' ) start [2025-03-25 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762851', 'tblTempUsageDetail_20' ) end [2025-03-25 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:28:22] Production.INFO: ==6350== Releasing lock... [2025-03-25 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:28:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:29:05 [end_date_ymd] => 2025-03-25 23:29:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:29:05' and `end` < '2025-03-25 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-03-25 23:29:18] Production.INFO: count ==1016 [2025-03-25 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:29:05 - End Time 2025-03-25 23:29:05 [2025-03-25 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762856', 'tblTempUsageDetail_20' ) start [2025-03-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762856', 'tblTempUsageDetail_20' ) end [2025-03-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762856', 'tblTempVendorCDR_20' ) start [2025-03-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762856', 'tblTempVendorCDR_20' ) end [2025-03-25 23:29:18] Production.INFO: ProcessCDR(1,14762856,1,1,2) [2025-03-25 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762856', 'tblTempUsageDetail_20' ) start [2025-03-25 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762856', 'tblTempUsageDetail_20' ) end [2025-03-25 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:29:22] Production.INFO: ==6429== Releasing lock... [2025-03-25 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:29:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:30:07 [end_date_ymd] => 2025-03-25 23:30:07 [RateCDR] => 1 ) [2025-03-25 23:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:30:07' and `end` < '2025-03-25 23:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:30:19] Production.INFO: count ==1023 [2025-03-25 23:30:20] Production.ERROR: pbx CDR StartTime 2025-03-25 20:30:07 - End Time 2025-03-25 23:30:07 [2025-03-25 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762862', 'tblTempUsageDetail_20' ) start [2025-03-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762862', 'tblTempUsageDetail_20' ) end [2025-03-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762862', 'tblTempVendorCDR_20' ) start [2025-03-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762862', 'tblTempVendorCDR_20' ) end [2025-03-25 23:30:20] Production.INFO: ProcessCDR(1,14762862,1,1,2) [2025-03-25 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762862', 'tblTempUsageDetail_20' ) start [2025-03-25 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762862', 'tblTempUsageDetail_20' ) end [2025-03-25 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:30:23] Production.INFO: ==6517== Releasing lock... [2025-03-25 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:30:23] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:31:05 [end_date_ymd] => 2025-03-25 23:31:05 [RateCDR] => 1 ) [2025-03-25 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:31:05' and `end` < '2025-03-25 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:31:18] Production.INFO: count ==1018 [2025-03-25 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:31:05 - End Time 2025-03-25 23:31:05 [2025-03-25 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762867', 'tblTempUsageDetail_20' ) start [2025-03-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762867', 'tblTempUsageDetail_20' ) end [2025-03-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762867', 'tblTempVendorCDR_20' ) start [2025-03-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762867', 'tblTempVendorCDR_20' ) end [2025-03-25 23:31:18] Production.INFO: ProcessCDR(1,14762867,1,1,2) [2025-03-25 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762867', 'tblTempUsageDetail_20' ) start [2025-03-25 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762867', 'tblTempUsageDetail_20' ) end [2025-03-25 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:31:22] Production.INFO: ==6609== Releasing lock... [2025-03-25 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:31:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-25 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:32:05 [end_date_ymd] => 2025-03-25 23:32:05 [RateCDR] => 1 ) [2025-03-25 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:32:05' and `end` < '2025-03-25 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:32:18] Production.INFO: count ==1018 [2025-03-25 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:32:05 - End Time 2025-03-25 23:32:05 [2025-03-25 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762872', 'tblTempUsageDetail_20' ) start [2025-03-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762872', 'tblTempUsageDetail_20' ) end [2025-03-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762872', 'tblTempVendorCDR_20' ) start [2025-03-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762872', 'tblTempVendorCDR_20' ) end [2025-03-25 23:32:18] Production.INFO: ProcessCDR(1,14762872,1,1,2) [2025-03-25 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762872', 'tblTempUsageDetail_20' ) start [2025-03-25 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762872', 'tblTempUsageDetail_20' ) end [2025-03-25 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:32:21] Production.INFO: ==6707== Releasing lock... [2025-03-25 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:32:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-25 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:33:05 [end_date_ymd] => 2025-03-25 23:33:05 [RateCDR] => 1 ) [2025-03-25 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:33:05' and `end` < '2025-03-25 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:33:18] Production.INFO: count ==1012 [2025-03-25 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:33:05 - End Time 2025-03-25 23:33:05 [2025-03-25 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762877', 'tblTempUsageDetail_20' ) start [2025-03-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762877', 'tblTempUsageDetail_20' ) end [2025-03-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762877', 'tblTempVendorCDR_20' ) start [2025-03-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762877', 'tblTempVendorCDR_20' ) end [2025-03-25 23:33:18] Production.INFO: ProcessCDR(1,14762877,1,1,2) [2025-03-25 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762877', 'tblTempUsageDetail_20' ) start [2025-03-25 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762877', 'tblTempUsageDetail_20' ) end [2025-03-25 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:33:21] Production.INFO: ==6802== Releasing lock... [2025-03-25 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:33:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:34:05 [end_date_ymd] => 2025-03-25 23:34:05 [RateCDR] => 1 ) [2025-03-25 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:34:05' and `end` < '2025-03-25 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:34:18] Production.INFO: count ==990 [2025-03-25 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:34:05 - End Time 2025-03-25 23:34:05 [2025-03-25 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762882', 'tblTempUsageDetail_20' ) start [2025-03-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762882', 'tblTempUsageDetail_20' ) end [2025-03-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762882', 'tblTempVendorCDR_20' ) start [2025-03-25 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762882', 'tblTempVendorCDR_20' ) end [2025-03-25 23:34:18] Production.INFO: ProcessCDR(1,14762882,1,1,2) [2025-03-25 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762882', 'tblTempUsageDetail_20' ) start [2025-03-25 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762882', 'tblTempUsageDetail_20' ) end [2025-03-25 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:34:22] Production.INFO: ==6894== Releasing lock... [2025-03-25 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:35:05 [end_date_ymd] => 2025-03-25 23:35:05 [RateCDR] => 1 ) [2025-03-25 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:35:05' and `end` < '2025-03-25 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:35:17] Production.INFO: count ==979 [2025-03-25 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:35:05 - End Time 2025-03-25 23:35:05 [2025-03-25 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762887', 'tblTempUsageDetail_20' ) start [2025-03-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762887', 'tblTempUsageDetail_20' ) end [2025-03-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762887', 'tblTempVendorCDR_20' ) start [2025-03-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762887', 'tblTempVendorCDR_20' ) end [2025-03-25 23:35:18] Production.INFO: ProcessCDR(1,14762887,1,1,2) [2025-03-25 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762887', 'tblTempUsageDetail_20' ) start [2025-03-25 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762887', 'tblTempUsageDetail_20' ) end [2025-03-25 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:35:21] Production.INFO: ==6979== Releasing lock... [2025-03-25 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:35:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:36:05 [end_date_ymd] => 2025-03-25 23:36:05 [RateCDR] => 1 ) [2025-03-25 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:36:05' and `end` < '2025-03-25 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:36:18] Production.INFO: count ==966 [2025-03-25 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:36:05 - End Time 2025-03-25 23:36:05 [2025-03-25 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762892', 'tblTempUsageDetail_20' ) start [2025-03-25 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762892', 'tblTempUsageDetail_20' ) end [2025-03-25 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762892', 'tblTempVendorCDR_20' ) start [2025-03-25 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762892', 'tblTempVendorCDR_20' ) end [2025-03-25 23:36:18] Production.INFO: ProcessCDR(1,14762892,1,1,2) [2025-03-25 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762892', 'tblTempUsageDetail_20' ) start [2025-03-25 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762892', 'tblTempUsageDetail_20' ) end [2025-03-25 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:36:21] Production.INFO: ==7056== Releasing lock... [2025-03-25 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:37:05 [end_date_ymd] => 2025-03-25 23:37:05 [RateCDR] => 1 ) [2025-03-25 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:37:05' and `end` < '2025-03-25 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:37:18] Production.INFO: count ==964 [2025-03-25 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:37:05 - End Time 2025-03-25 23:37:05 [2025-03-25 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762897', 'tblTempUsageDetail_20' ) start [2025-03-25 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762897', 'tblTempUsageDetail_20' ) end [2025-03-25 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762897', 'tblTempVendorCDR_20' ) start [2025-03-25 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762897', 'tblTempVendorCDR_20' ) end [2025-03-25 23:37:18] Production.INFO: ProcessCDR(1,14762897,1,1,2) [2025-03-25 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762897', 'tblTempUsageDetail_20' ) start [2025-03-25 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762897', 'tblTempUsageDetail_20' ) end [2025-03-25 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:37:22] Production.INFO: ==7130== Releasing lock... [2025-03-25 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:37:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:38:06 [end_date_ymd] => 2025-03-25 23:38:06 [RateCDR] => 1 ) [2025-03-25 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:38:06' and `end` < '2025-03-25 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:38:18] Production.INFO: count ==964 [2025-03-25 23:38:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:38:06 - End Time 2025-03-25 23:38:06 [2025-03-25 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762902', 'tblTempUsageDetail_20' ) start [2025-03-25 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762902', 'tblTempUsageDetail_20' ) end [2025-03-25 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762902', 'tblTempVendorCDR_20' ) start [2025-03-25 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762902', 'tblTempVendorCDR_20' ) end [2025-03-25 23:38:19] Production.INFO: ProcessCDR(1,14762902,1,1,2) [2025-03-25 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762902', 'tblTempUsageDetail_20' ) start [2025-03-25 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762902', 'tblTempUsageDetail_20' ) end [2025-03-25 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:38:22] Production.INFO: ==7209== Releasing lock... [2025-03-25 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:38:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:39:05 [end_date_ymd] => 2025-03-25 23:39:05 [RateCDR] => 1 ) [2025-03-25 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:39:05' and `end` < '2025-03-25 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:39:18] Production.INFO: count ==967 [2025-03-25 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:39:05 - End Time 2025-03-25 23:39:05 [2025-03-25 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762907', 'tblTempUsageDetail_20' ) start [2025-03-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762907', 'tblTempUsageDetail_20' ) end [2025-03-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762907', 'tblTempVendorCDR_20' ) start [2025-03-25 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762907', 'tblTempVendorCDR_20' ) end [2025-03-25 23:39:18] Production.INFO: ProcessCDR(1,14762907,1,1,2) [2025-03-25 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762907', 'tblTempUsageDetail_20' ) start [2025-03-25 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762907', 'tblTempUsageDetail_20' ) end [2025-03-25 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:39:21] Production.INFO: ==7287== Releasing lock... [2025-03-25 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:39:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:40:06 [end_date_ymd] => 2025-03-25 23:40:06 [RateCDR] => 1 ) [2025-03-25 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:40:06' and `end` < '2025-03-25 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:40:18] Production.INFO: count ==965 [2025-03-25 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:40:06 - End Time 2025-03-25 23:40:06 [2025-03-25 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762912', 'tblTempUsageDetail_20' ) start [2025-03-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762912', 'tblTempUsageDetail_20' ) end [2025-03-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762912', 'tblTempVendorCDR_20' ) start [2025-03-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762912', 'tblTempVendorCDR_20' ) end [2025-03-25 23:40:19] Production.INFO: ProcessCDR(1,14762912,1,1,2) [2025-03-25 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762912', 'tblTempUsageDetail_20' ) start [2025-03-25 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762912', 'tblTempUsageDetail_20' ) end [2025-03-25 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:40:22] Production.INFO: ==7364== Releasing lock... [2025-03-25 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:41:05 [end_date_ymd] => 2025-03-25 23:41:05 [RateCDR] => 1 ) [2025-03-25 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:41:05' and `end` < '2025-03-25 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:41:17] Production.INFO: count ==965 [2025-03-25 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:41:05 - End Time 2025-03-25 23:41:05 [2025-03-25 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762918', 'tblTempUsageDetail_20' ) start [2025-03-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762918', 'tblTempUsageDetail_20' ) end [2025-03-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762918', 'tblTempVendorCDR_20' ) start [2025-03-25 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762918', 'tblTempVendorCDR_20' ) end [2025-03-25 23:41:18] Production.INFO: ProcessCDR(1,14762918,1,1,2) [2025-03-25 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762918', 'tblTempUsageDetail_20' ) start [2025-03-25 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762918', 'tblTempUsageDetail_20' ) end [2025-03-25 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:41:23] Production.INFO: ==7449== Releasing lock... [2025-03-25 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:41:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:42:05 [end_date_ymd] => 2025-03-25 23:42:05 [RateCDR] => 1 ) [2025-03-25 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-03-25 20:42:05' and `end` < '2025-03-25 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:42:18] Production.INFO: count ==945 [2025-03-25 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:42:05 - End Time 2025-03-25 23:42:05 [2025-03-25 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762923', 'tblTempUsageDetail_20' ) start [2025-03-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762923', 'tblTempUsageDetail_20' ) end [2025-03-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762923', 'tblTempVendorCDR_20' ) start [2025-03-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762923', 'tblTempVendorCDR_20' ) end [2025-03-25 23:42:18] Production.INFO: ProcessCDR(1,14762923,1,1,2) [2025-03-25 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762923', 'tblTempUsageDetail_20' ) start [2025-03-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762923', 'tblTempUsageDetail_20' ) end [2025-03-25 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:42:21] Production.INFO: ==7565== Releasing lock... [2025-03-25 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:42:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:43:05 [end_date_ymd] => 2025-03-25 23:43:05 [RateCDR] => 1 ) [2025-03-25 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:43:05' and `end` < '2025-03-25 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:43:17] Production.INFO: count ==944 [2025-03-25 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:43:05 - End Time 2025-03-25 23:43:05 [2025-03-25 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762928', 'tblTempUsageDetail_20' ) start [2025-03-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762928', 'tblTempUsageDetail_20' ) end [2025-03-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762928', 'tblTempVendorCDR_20' ) start [2025-03-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762928', 'tblTempVendorCDR_20' ) end [2025-03-25 23:43:18] Production.INFO: ProcessCDR(1,14762928,1,1,2) [2025-03-25 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762928', 'tblTempUsageDetail_20' ) start [2025-03-25 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762928', 'tblTempUsageDetail_20' ) end [2025-03-25 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:43:21] Production.INFO: ==7637== Releasing lock... [2025-03-25 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:43:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:44:06 [end_date_ymd] => 2025-03-25 23:44:06 [RateCDR] => 1 ) [2025-03-25 23:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:44:06' and `end` < '2025-03-25 23:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:44:18] Production.INFO: count ==944 [2025-03-25 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:44:06 - End Time 2025-03-25 23:44:06 [2025-03-25 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762933', 'tblTempUsageDetail_20' ) start [2025-03-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762933', 'tblTempUsageDetail_20' ) end [2025-03-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762933', 'tblTempVendorCDR_20' ) start [2025-03-25 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762933', 'tblTempVendorCDR_20' ) end [2025-03-25 23:44:18] Production.INFO: ProcessCDR(1,14762933,1,1,2) [2025-03-25 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762933', 'tblTempUsageDetail_20' ) start [2025-03-25 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762933', 'tblTempUsageDetail_20' ) end [2025-03-25 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:44:22] Production.INFO: ==7718== Releasing lock... [2025-03-25 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:44:22] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:45:06 [end_date_ymd] => 2025-03-25 23:45:06 [RateCDR] => 1 ) [2025-03-25 23:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:45:06' and `end` < '2025-03-25 23:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:45:18] Production.INFO: count ==947 [2025-03-25 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:45:06 - End Time 2025-03-25 23:45:06 [2025-03-25 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762938', 'tblTempUsageDetail_20' ) start [2025-03-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762938', 'tblTempUsageDetail_20' ) end [2025-03-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762938', 'tblTempVendorCDR_20' ) start [2025-03-25 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762938', 'tblTempVendorCDR_20' ) end [2025-03-25 23:45:19] Production.INFO: ProcessCDR(1,14762938,1,1,2) [2025-03-25 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762938', 'tblTempUsageDetail_20' ) start [2025-03-25 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762938', 'tblTempUsageDetail_20' ) end [2025-03-25 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:45:22] Production.INFO: ==7795== Releasing lock... [2025-03-25 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:45:22] Production.INFO: 36 MB #Memory Used# [2025-03-25 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:46:06 [end_date_ymd] => 2025-03-25 23:46:06 [RateCDR] => 1 ) [2025-03-25 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:46:06' and `end` < '2025-03-25 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:46:18] Production.INFO: count ==949 [2025-03-25 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:46:06 - End Time 2025-03-25 23:46:06 [2025-03-25 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762943', 'tblTempUsageDetail_20' ) start [2025-03-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762943', 'tblTempUsageDetail_20' ) end [2025-03-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762943', 'tblTempVendorCDR_20' ) start [2025-03-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762943', 'tblTempVendorCDR_20' ) end [2025-03-25 23:46:18] Production.INFO: ProcessCDR(1,14762943,1,1,2) [2025-03-25 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762943', 'tblTempUsageDetail_20' ) start [2025-03-25 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762943', 'tblTempUsageDetail_20' ) end [2025-03-25 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:46:22] Production.INFO: ==7871== Releasing lock... [2025-03-25 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:47:05 [end_date_ymd] => 2025-03-25 23:47:05 [RateCDR] => 1 ) [2025-03-25 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:47:05' and `end` < '2025-03-25 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:47:18] Production.INFO: count ==953 [2025-03-25 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:47:05 - End Time 2025-03-25 23:47:05 [2025-03-25 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762948', 'tblTempUsageDetail_20' ) start [2025-03-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762948', 'tblTempUsageDetail_20' ) end [2025-03-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762948', 'tblTempVendorCDR_20' ) start [2025-03-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762948', 'tblTempVendorCDR_20' ) end [2025-03-25 23:47:18] Production.INFO: ProcessCDR(1,14762948,1,1,2) [2025-03-25 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762948', 'tblTempUsageDetail_20' ) start [2025-03-25 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762948', 'tblTempUsageDetail_20' ) end [2025-03-25 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:47:23] Production.INFO: ==7945== Releasing lock... [2025-03-25 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:47:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-25 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:48:05 [end_date_ymd] => 2025-03-25 23:48:05 [RateCDR] => 1 ) [2025-03-25 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:48:05' and `end` < '2025-03-25 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:48:18] Production.INFO: count ==948 [2025-03-25 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:48:05 - End Time 2025-03-25 23:48:05 [2025-03-25 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762953', 'tblTempUsageDetail_20' ) start [2025-03-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762953', 'tblTempUsageDetail_20' ) end [2025-03-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762953', 'tblTempVendorCDR_20' ) start [2025-03-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762953', 'tblTempVendorCDR_20' ) end [2025-03-25 23:48:18] Production.INFO: ProcessCDR(1,14762953,1,1,2) [2025-03-25 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762953', 'tblTempUsageDetail_20' ) start [2025-03-25 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762953', 'tblTempUsageDetail_20' ) end [2025-03-25 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:48:22] Production.INFO: ==8024== Releasing lock... [2025-03-25 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:48:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:49:05 [end_date_ymd] => 2025-03-25 23:49:05 [RateCDR] => 1 ) [2025-03-25 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:49:05' and `end` < '2025-03-25 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:49:18] Production.INFO: count ==946 [2025-03-25 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:49:05 - End Time 2025-03-25 23:49:05 [2025-03-25 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762958', 'tblTempUsageDetail_20' ) start [2025-03-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762958', 'tblTempUsageDetail_20' ) end [2025-03-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762958', 'tblTempVendorCDR_20' ) start [2025-03-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762958', 'tblTempVendorCDR_20' ) end [2025-03-25 23:49:18] Production.INFO: ProcessCDR(1,14762958,1,1,2) [2025-03-25 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762958', 'tblTempUsageDetail_20' ) start [2025-03-25 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762958', 'tblTempUsageDetail_20' ) end [2025-03-25 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:49:22] Production.INFO: ==8098== Releasing lock... [2025-03-25 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:49:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-25 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:50:06 [end_date_ymd] => 2025-03-25 23:50:06 [RateCDR] => 1 ) [2025-03-25 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:50:06' and `end` < '2025-03-25 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:50:18] Production.INFO: count ==943 [2025-03-25 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:50:06 - End Time 2025-03-25 23:50:06 [2025-03-25 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762964', 'tblTempUsageDetail_20' ) start [2025-03-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762964', 'tblTempUsageDetail_20' ) end [2025-03-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762964', 'tblTempVendorCDR_20' ) start [2025-03-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762964', 'tblTempVendorCDR_20' ) end [2025-03-25 23:50:19] Production.INFO: ProcessCDR(1,14762964,1,1,2) [2025-03-25 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762964', 'tblTempUsageDetail_20' ) start [2025-03-25 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762964', 'tblTempUsageDetail_20' ) end [2025-03-25 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:50:22] Production.INFO: ==8174== Releasing lock... [2025-03-25 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:51:06 [end_date_ymd] => 2025-03-25 23:51:06 [RateCDR] => 1 ) [2025-03-25 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:51:06' and `end` < '2025-03-25 23:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:51:18] Production.INFO: count ==913 [2025-03-25 23:51:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:51:06 - End Time 2025-03-25 23:51:06 [2025-03-25 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762969', 'tblTempUsageDetail_20' ) start [2025-03-25 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762969', 'tblTempUsageDetail_20' ) end [2025-03-25 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762969', 'tblTempVendorCDR_20' ) start [2025-03-25 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762969', 'tblTempVendorCDR_20' ) end [2025-03-25 23:51:19] Production.INFO: ProcessCDR(1,14762969,1,1,2) [2025-03-25 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762969', 'tblTempUsageDetail_20' ) start [2025-03-25 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762969', 'tblTempUsageDetail_20' ) end [2025-03-25 23:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:51:24] Production.INFO: ==8251== Releasing lock... [2025-03-25 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:51:24] Production.INFO: 35 MB #Memory Used# [2025-03-25 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:52:05 [end_date_ymd] => 2025-03-25 23:52:05 [RateCDR] => 1 ) [2025-03-25 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:52:05' and `end` < '2025-03-25 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:52:18] Production.INFO: count ==907 [2025-03-25 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:52:05 - End Time 2025-03-25 23:52:05 [2025-03-25 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762974', 'tblTempUsageDetail_20' ) start [2025-03-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762974', 'tblTempUsageDetail_20' ) end [2025-03-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762974', 'tblTempVendorCDR_20' ) start [2025-03-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762974', 'tblTempVendorCDR_20' ) end [2025-03-25 23:52:18] Production.INFO: ProcessCDR(1,14762974,1,1,2) [2025-03-25 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762974', 'tblTempUsageDetail_20' ) start [2025-03-25 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762974', 'tblTempUsageDetail_20' ) end [2025-03-25 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:52:21] Production.INFO: ==8322== Releasing lock... [2025-03-25 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:52:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-25 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:53:05 [end_date_ymd] => 2025-03-25 23:53:05 [RateCDR] => 1 ) [2025-03-25 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:53:05' and `end` < '2025-03-25 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:53:18] Production.INFO: count ==905 [2025-03-25 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:53:05 - End Time 2025-03-25 23:53:05 [2025-03-25 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762979', 'tblTempUsageDetail_20' ) start [2025-03-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762979', 'tblTempUsageDetail_20' ) end [2025-03-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762979', 'tblTempVendorCDR_20' ) start [2025-03-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762979', 'tblTempVendorCDR_20' ) end [2025-03-25 23:53:18] Production.INFO: ProcessCDR(1,14762979,1,1,2) [2025-03-25 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762979', 'tblTempUsageDetail_20' ) start [2025-03-25 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762979', 'tblTempUsageDetail_20' ) end [2025-03-25 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:53:22] Production.INFO: ==8401== Releasing lock... [2025-03-25 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:53:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:54:05 [end_date_ymd] => 2025-03-25 23:54:05 [RateCDR] => 1 ) [2025-03-25 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:54:05' and `end` < '2025-03-25 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:54:18] Production.INFO: count ==905 [2025-03-25 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:54:05 - End Time 2025-03-25 23:54:05 [2025-03-25 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762984', 'tblTempUsageDetail_20' ) start [2025-03-25 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762984', 'tblTempUsageDetail_20' ) end [2025-03-25 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762984', 'tblTempVendorCDR_20' ) start [2025-03-25 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762984', 'tblTempVendorCDR_20' ) end [2025-03-25 23:54:18] Production.INFO: ProcessCDR(1,14762984,1,1,2) [2025-03-25 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762984', 'tblTempUsageDetail_20' ) start [2025-03-25 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762984', 'tblTempUsageDetail_20' ) end [2025-03-25 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:54:21] Production.INFO: ==8476== Releasing lock... [2025-03-25 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-25 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:55:05 [end_date_ymd] => 2025-03-25 23:55:05 [RateCDR] => 1 ) [2025-03-25 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:55:05' and `end` < '2025-03-25 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:55:18] Production.INFO: count ==905 [2025-03-25 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:55:05 - End Time 2025-03-25 23:55:05 [2025-03-25 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762989', 'tblTempUsageDetail_20' ) start [2025-03-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762989', 'tblTempUsageDetail_20' ) end [2025-03-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762989', 'tblTempVendorCDR_20' ) start [2025-03-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762989', 'tblTempVendorCDR_20' ) end [2025-03-25 23:55:18] Production.INFO: ProcessCDR(1,14762989,1,1,2) [2025-03-25 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762989', 'tblTempUsageDetail_20' ) start [2025-03-25 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762989', 'tblTempUsageDetail_20' ) end [2025-03-25 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:55:22] Production.INFO: ==8549== Releasing lock... [2025-03-25 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:55:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-25 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:56:05 [end_date_ymd] => 2025-03-25 23:56:05 [RateCDR] => 1 ) [2025-03-25 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:56:05' and `end` < '2025-03-25 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:56:17] Production.INFO: count ==904 [2025-03-25 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:56:05 - End Time 2025-03-25 23:56:05 [2025-03-25 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762994', 'tblTempUsageDetail_20' ) start [2025-03-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762994', 'tblTempUsageDetail_20' ) end [2025-03-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762994', 'tblTempVendorCDR_20' ) start [2025-03-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762994', 'tblTempVendorCDR_20' ) end [2025-03-25 23:56:18] Production.INFO: ProcessCDR(1,14762994,1,1,2) [2025-03-25 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762994', 'tblTempUsageDetail_20' ) start [2025-03-25 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762994', 'tblTempUsageDetail_20' ) end [2025-03-25 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:56:21] Production.INFO: ==8623== Releasing lock... [2025-03-25 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:56:21] Production.INFO: 35 MB #Memory Used# [2025-03-25 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:57:06 [end_date_ymd] => 2025-03-25 23:57:06 [RateCDR] => 1 ) [2025-03-25 23:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:57:06' and `end` < '2025-03-25 23: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-03-25 23:57:18] Production.INFO: count ==902 [2025-03-25 23:57:19] Production.ERROR: pbx CDR StartTime 2025-03-25 20:57:06 - End Time 2025-03-25 23:57:06 [2025-03-25 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762999', 'tblTempUsageDetail_20' ) start [2025-03-25 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14762999', 'tblTempUsageDetail_20' ) end [2025-03-25 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762999', 'tblTempVendorCDR_20' ) start [2025-03-25 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14762999', 'tblTempVendorCDR_20' ) end [2025-03-25 23:57:19] Production.INFO: ProcessCDR(1,14762999,1,1,2) [2025-03-25 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14762999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14762999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14762999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14762999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762999', 'tblTempUsageDetail_20' ) start [2025-03-25 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14762999', 'tblTempUsageDetail_20' ) end [2025-03-25 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:57:22] Production.INFO: ==8697== Releasing lock... [2025-03-25 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:57:22] Production.INFO: 35 MB #Memory Used# [2025-03-25 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:58:04 [end_date_ymd] => 2025-03-25 23:58:04 [RateCDR] => 1 ) [2025-03-25 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:58:04' and `end` < '2025-03-25 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:58:17] Production.INFO: count ==910 [2025-03-25 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-25 20:58:04 - End Time 2025-03-25 23:58:04 [2025-03-25 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763004', 'tblTempUsageDetail_20' ) start [2025-03-25 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763004', 'tblTempUsageDetail_20' ) end [2025-03-25 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763004', 'tblTempVendorCDR_20' ) start [2025-03-25 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763004', 'tblTempVendorCDR_20' ) end [2025-03-25 23:58:17] Production.INFO: ProcessCDR(1,14763004,1,1,2) [2025-03-25 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763004', 'tblTempUsageDetail_20' ) start [2025-03-25 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763004', 'tblTempUsageDetail_20' ) end [2025-03-25 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:58:21] Production.INFO: ==8814== Releasing lock... [2025-03-25 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:58:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-25 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-25 20:59:05 [end_date_ymd] => 2025-03-25 23:59:05 [RateCDR] => 1 ) [2025-03-25 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-25 20:59:05' and `end` < '2025-03-25 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-25 23:59:18] Production.INFO: count ==909 [2025-03-25 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-25 20:59:05 - End Time 2025-03-25 23:59:05 [2025-03-25 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763009', 'tblTempUsageDetail_20' ) start [2025-03-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14763009', 'tblTempUsageDetail_20' ) end [2025-03-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763009', 'tblTempVendorCDR_20' ) start [2025-03-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14763009', 'tblTempVendorCDR_20' ) end [2025-03-25 23:59:18] Production.INFO: ProcessCDR(1,14763009,1,1,2) [2025-03-25 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14763009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14763009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-25 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14763009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14763009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-25 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763009', 'tblTempUsageDetail_20' ) start [2025-03-25 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14763009', 'tblTempUsageDetail_20' ) end [2025-03-25 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-25 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-25 23:59:22] Production.INFO: ==8891== Releasing lock... [2025-03-25 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-25 23:59:22] Production.INFO: 34.75 MB #Memory Used#